/* Common Styles for Rules Pages */

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
    padding: 40px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 50px;
}

.game-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.game-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.game-subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    font-weight: 300;
}

.section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fbbf24;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-icon {
    font-size: 2rem;
}

.subsection {
    margin-bottom: 25px;
}

.subsection:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 1.3rem;
    color: #f59e0b;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.rules-list {
    list-style: none;
    padding-left: 0;
}

.rules-list li {
    padding: 12px 0 12px 40px;
    position: relative;
    font-size: 1.05rem;
    color: #cbd5e1;
}

.rules-list li:before {
    content: '▸';
    position: absolute;
    left: 10px;
    color: #fbbf24;
    font-size: 1.2rem;
}

.highlight-box {
    background: rgba(251, 191, 36, 0.1);
    border-left: 4px solid #fbbf24;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
}

.highlight-title {
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.highlight-text {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.example-box {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
}

.example-title {
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.example-text {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid #ef4444;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
}

.warning-title {
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.warning-text {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.success-box {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid #22c55e;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
}

.success-title {
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.success-text {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.score-card {
    background: rgba(251, 191, 36, 0.05);
    border: 2px solid rgba(251, 191, 36, 0.3);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.score-type {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 10px;
}

.score-points {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.score-desc {
    font-size: 0.95rem;
    color: #94a3b8;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    gap: 20px;
}

.nav-button {
    display: inline-block;
    padding: 15px 35px;
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.nav-button:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }

    .game-title {
        font-size: 2.5rem;
    }

    .game-icon {
        font-size: 60px;
    }

    .section {
        padding: 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .navigation {
        flex-direction: column;
    }

    .nav-button {
        width: 100%;
        text-align: center;
    }

    .score-grid {
        grid-template-columns: 1fr;
    }
}
