/* style/game-rules.css */

:root {
    --primary-color: #1A2B4C; /* Deep Tech Blue / Royal Purple */
    --secondary-color: #FFD700; /* Imperial Gold / Vibrant Green */
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-color: #e0e0e0;
}

.page-game-rules {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.page-game-rules__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-game-rules__section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: var(--text-light);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-game-rules__section:nth-of-type(odd) {
    background-color: var(--bg-light);
}

.page-game-rules__hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3A4C6D 100%);
    color: var(--text-light);
    padding: 80px 20px;
    text-align: center;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-game-rules__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-game-rules__hero-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: rgba(255, 255, 255, 0.9);
}

.page-game-rules__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-game-rules__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.page-game-rules__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: -20px auto 50px auto;
    color: var(--text-dark);
}

.page-game-rules__cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.page-game-rules__cta-button:hover {
    background-color: #E6C200;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-game-rules__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-game-rules__grid-two-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-game-rules__principle-item,
.page-game-rules__card {
    background-color: var(--text-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-rules__principle-item:hover,
.page-game-rules__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-game-rules__principle-image,
.page-game-rules__card-image,
.page-game-rules__game-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-game-rules__principle-title,
.page-game-rules__card-title,
.page-game-rules__game-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-game-rules__game-category {
    background-color: var(--text-light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-game-rules__game-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-game-rules__game-category ul {
    list-style-type: disc;
    padding-left: 25px;
    margin-top: 15px;
    color: var(--text-dark);
}

.page-game-rules__game-category ul li {
    margin-bottom: 8px;
}

.page-game-rules__link-inline {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-game-rules__link-inline:hover {
    color: var(--secondary-color);
}

/* FAQ Styles */
.faq-list {
    margin-top: 30px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--text-light);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f5f5f5;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.25em;
    color: var(--primary-color);
}

.faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 25px;
    background: #fdfdfd;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Sufficient height to contain content */
    padding: 15px 25px;
    border-top: 1px solid var(--border-color);
}

.faq-answer p {
    margin: 0;
    color: var(--text-dark);
}

.page-game-rules__conclusion {
    text-align: center;
    padding-bottom: 80px;
}

.page-game-rules__cta-button--bottom {
    margin-top: 40px;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-game-rules__cta-button--bottom:hover {
    background-color: #3A4C6D;
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-rules__hero-title {
        font-size: 2.8em;
    }
    .page-game-rules__section-title {
        font-size: 2em;
    }
    .page-game-rules__principle-title,
    .page-game-rules__card-title,
    .page-game-rules__game-title {
        font-size: 1.6em;
    }
    .page-game-rules__hero-description,
    .page-game-rules__section-intro {
        font-size: 1em;
    }
    .page-game-rules__game-category {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-game-rules__hero {
        padding: 60px 15px;
    }
    .page-game-rules__hero-title {
        font-size: 2.2em;
    }
    .page-game-rules__section {
        padding: 40px 0;
    }
    .page-game-rules__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-game-rules__section-intro {
        margin-bottom: 40px;
    }
    .page-game-rules__grid, .page-game-rules__grid-two-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-rules__principle-item,
    .page-game-rules__card {
        padding: 20px;
    }
    .page-game-rules__game-category {
        padding: 25px;
    }
    .faq-question {
        padding: 15px 20px;
    }
    .faq-question h3 {
        font-size: 1.1em;
    }
    .faq-toggle {
        font-size: 20px;
    }
    .faq-item.active .faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-game-rules__hero-title {
        font-size: 1.8em;
    }
    .page-game-rules__section-title {
        font-size: 1.6em;
    }
    .page-game-rules__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-game-rules__hero-description {
        font-size: 0.9em;
    }
}