/* Minecraft Programming Adventure - Styles */

:root {
    --minecraft-green: #7CB342;
    --minecraft-brown: #8D6E63;
    --minecraft-blue: #42A5F5;
    --minecraft-purple: #AB47BC;
    --minecraft-red: #EF5350;
    --minecraft-gold: #FFB300;
    --phase-1-color: #4CAF50;
    --phase-2-color: #2196F3;
    --phase-3-color: #9C27B0;
    --bg-light: #f5f5f5;
    --text-dark: #333;
    --border-color: #ddd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.95;
}

section {
    padding: 40px 30px;
}

section:nth-child(even) {
    background: var(--bg-light);
}

h2 {
    color: var(--minecraft-brown);
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--minecraft-green);
    padding-bottom: 10px;
}

h3 {
    color: var(--text-dark);
    font-size: 1.5em;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.intro {
    background: white;
}

.intro p strong {
    color: var(--minecraft-green);
    font-weight: 600;
}

/* Phase Cards */
.phase-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.phase-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 5px solid;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.phase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.phase-1 {
    border-top-color: var(--phase-1-color);
}

.phase-2 {
    border-top-color: var(--phase-2-color);
}

.phase-3 {
    border-top-color: var(--phase-3-color);
}

.phase-number {
    position: absolute;
    top: 10px;
    right: 15px;
    background: var(--minecraft-gold);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
	text-align: center;
}

.phase-card h3 {
    margin-top: 10px;
}

.phase-card ul {
    list-style: none;
    margin: 20px 0;
}

.phase-card li {
    padding: 8px 0;
    font-size: 0.95em;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-phase-1 {
    background: var(--phase-1-color);
}

.btn-phase-2 {
    background: var(--phase-2-color);
}

.btn-phase-3 {
    background: var(--phase-3-color);
}

/* Steps Section */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.step {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
    padding-top: 60px;
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--minecraft-green);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.3em;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* Resources */
.resource-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.resource-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border-left: 4px solid var(--minecraft-blue);
}

.resource-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.resource-card h3 {
    color: var(--minecraft-blue);
    margin-bottom: 10px;
}

.resource-card p {
    margin: 0;
    font-size: 1em;
}

/* Tips */
.tip-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 5px solid var(--minecraft-gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tip-box p {
    margin: 0;
}

/* Code blocks */
.code-block {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    position: relative;
}

.code-block code {
    font-family: 'Courier New', monospace;
}

.copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--minecraft-green);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.copy-button:hover {
    background: var(--minecraft-blue);
}

/* Tutorial specific styles */
.tutorial-nav {
    background: var(--bg-light);
    padding: 15px 30px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tutorial-nav a {
    color: var(--minecraft-blue);
    text-decoration: none;
    font-weight: 600;
}

.tutorial-nav a:hover {
    text-decoration: underline;
}

.tutorial-section {
    margin-bottom: 40px;
}

.tutorial-section h3 {
    color: var(--minecraft-green);
    margin-top: 30px;
}

.warning-box {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.success-box {
    background: #d4edda;
    border-left: 5px solid #28a745;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.info-box {
    background: #d1ecf1;
    border-left: 5px solid #17a2b8;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.command {
    background: #f4f4f4;
    padding: 10px 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    margin: 10px 0;
    border-left: 3px solid var(--minecraft-green);
}

.screenshot-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--border-color);
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 20px 0;
    color: #999;
}

ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

ol li {
    margin-bottom: 15px;
    font-size: 1.05em;
}

ul {
    margin-left: 25px;
    margin-bottom: 20px;
}

ul li {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 30px;
}

footer p {
    margin-bottom: 5px;
}

.muted {
    opacity: 0.7;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1em;
    }

    h2 {
        font-size: 1.6em;
    }

    section {
        padding: 30px 20px;
    }

    .phase-cards,
    .steps,
    .resource-links {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
    }

    .btn,
    .copy-button {
        display: none;
    }
}
