/* style/faq-game-rules.css */

:root {
    --mcw77-primary: #0A2342;
    --mcw77-accent: #FFD700;
    --mcw77-text-light: #F0F0F0;
    --mcw77-text-dark: #1A1A1A;
    --mcw77-bg-light: #F8F8F8;
    --mcw77-bg-dark: #071A31;
    --mcw77-border-color: #334D6B;
}

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

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

.page-faq-game-rules__hero-section {
    background: linear-gradient(135deg, var(--mcw77-primary) 0%, #1A3A6A 100%);
    color: var(--mcw77-text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-faq-game-rules__hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: page-faq-game-rules__rotate 20s linear infinite;
    z-index: 0;
}

@keyframes page-faq-game-rules__rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.page-faq-game-rules__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--mcw77-accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

.page-faq-game-rules__hero-subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.page-faq-game-rules__cta-button {
    display: inline-block;
    background-color: var(--mcw77-accent);
    color: var(--mcw77-primary);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.page-faq-game-rules__cta-button:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

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

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

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

.page-faq-game-rules__general-rules {
    padding: 60px 0;
    background-color: var(--mcw77-bg-light);
}

.page-faq-game-rules__content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-faq-game-rules__rule-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--mcw77-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-faq-game-rules__rule-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-faq-game-rules__rule-title {
    font-size: 1.6em;
    color: var(--mcw77-primary);
    margin-bottom: 15px;
}

.page-faq-game-rules__rule-item p {
    font-size: 1em;
    color: #555;
}

.page-faq-game-rules__secondary-cta {
    display: block;
    width: fit-content;
    margin: 50px auto 0;
    color: var(--mcw77-primary);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--mcw77-primary);
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-faq-game-rules__secondary-cta:hover {
    color: var(--mcw77-accent);
    border-color: var(--mcw77-accent);
}

.page-faq-game-rules__game-categories {
    padding: 60px 0;
    background-color: var(--mcw77-bg-dark);
    color: var(--mcw77-text-light);
}

.page-faq-game-rules__game-categories .page-faq-game-rules__section-title {
    color: var(--mcw77-accent);
}

.page-faq-game-rules__game-categories .page-faq-game-rules__section-title::after {
    background-color: var(--mcw77-primary);
}

.page-faq-game-rules__game-categories .page-faq-game-rules__section-description {
    color: var(--mcw77-text-light);
}

.page-faq-game-rules__category-item {
    background-color: var(--mcw77-primary);
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-faq-game-rules__category-title {
    font-size: 2em;
    color: var(--mcw77-accent);
    padding: 30px;
    text-align: center;
    background-color: #1A3A6A;
    border-bottom: 1px solid var(--mcw77-border-color);
}

.page-faq-game-rules__image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #071A31;
}

.page-faq-game-rules__category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.page-faq-game-rules__category-item:hover .page-faq-game-rules__category-image {
    transform: scale(1.05);
}

.page-faq-game-rules__category-content {
    padding: 30px;
    color: var(--mcw77-text-light);
}

.page-faq-game-rules__category-content h4 {
    font-size: 1.5em;
    color: var(--mcw77-accent);
    margin-top: 20px;
    margin-bottom: 10px;
}

.page-faq-game-rules__category-content ul {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-faq-game-rules__category-content ul li {
    margin-bottom: 8px;
}

.page-faq-game-rules__category-content p {
    margin-bottom: 15px;
}

.page-faq-game-rules__action-link {
    display: inline-block;
    background-color: var(--mcw77-accent);
    color: var(--mcw77-primary);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-faq-game-rules__action-link:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-faq-game-rules__faq-section {
    padding: 60px 0;
    background-color: var(--mcw77-bg-light);
}

.page-faq-game-rules__accordion {
    max-width: 900px;
    margin: 40px auto;
}

.page-faq-game-rules__accordion-item {
    background-color: #fff;
    border: 1px solid var(--mcw77-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-faq-game-rules__accordion-header {
    width: 100%;
    background-color: var(--mcw77-primary);
    color: var(--mcw77-text-light);
    padding: 18px 25px;
    text-align: left;
    font-size: 1.2em;
    font-weight: bold;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-faq-game-rules__accordion-header::after {
    content: '+';
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.page-faq-game-rules__accordion-header.active {
    background-color: #1A3A6A;
}

.page-faq-game-rules__accordion-header.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-faq-game-rules__accordion-content {
    padding: 0 25px;
    background-color: #fefefe;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-faq-game-rules__accordion-content p {
    padding: 15px 0;
    margin: 0;
    color: #444;
}

.page-faq-game-rules__accordion-content .page-faq-game-rules__inline-link {
    color: var(--mcw77-primary);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
    display: block;
    margin-top: 10px;
    margin-bottom: 15px;
}

.page-faq-game-rules__accordion-content .page-faq-game-rules__inline-link:hover {
    color: var(--mcw77-accent);
}

.page-faq-game-rules__contact-support {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: var(--mcw77-primary);
    color: var(--mcw77-text-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.page-faq-game-rules__contact-support p {
    font-size: 1.2em;
    margin-bottom: 25px;
}

.page-faq-game-rules__additional-info {
    padding: 60px 0;
    background-color: var(--mcw77-bg-dark);
    color: var(--mcw77-text-light);
    text-align: center;
}

.page-faq-game-rules__additional-info .page-faq-game-rules__section-title {
    color: var(--mcw77-accent);
}

.page-faq-game-rules__additional-info .page-faq-game-rules__section-title::after {
    background-color: var(--mcw77-primary);
}

.page-faq-game-rules__info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-faq-game-rules__info-item {
    background-color: var(--mcw77-primary);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--mcw77-border-color);
}

.page-faq-game-rules__info-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--mcw77-accent));
}

.page-faq-game-rules__info-item h3 {
    font-size: 1.8em;
    color: var(--mcw77-accent);
    margin-bottom: 15px;
}

.page-faq-game-rules__info-item p {
    color: var(--mcw77-text-light);
    font-size: 1em;
    margin-bottom: 15px;
}

.page-faq-game-rules__info-item .page-faq-game-rules__inline-link {
    color: var(--mcw77-accent);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px solid var(--mcw77-accent);
    padding-bottom: 2px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-faq-game-rules__info-item .page-faq-game-rules__inline-link:hover {
    color: #e6c200;
    border-color: #e6c200;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-faq-game-rules__hero-title {
        font-size: 2.8em;
    }
    .page-faq-game-rules__section-title {
        font-size: 2em;
    }
    .page-faq-game-rules__hero-subtitle,
    .page-faq-game-rules__section-description {
        font-size: 1em;
    }
    .page-faq-game-rules__category-title {
        font-size: 1.8em;
    }
    .page-faq-game-rules__image-wrapper {
        height: 250px;
    }
    .page-faq-game-rules__accordion-header {
        font-size: 1.1em;
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    .page-faq-game-rules__hero-section {
        padding: 60px 0;
    }
    .page-faq-game-rules__hero-title {
        font-size: 2.2em;
    }
    .page-faq-game-rules__hero-subtitle {
        font-size: 0.95em;
    }
    .page-faq-game-rules__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-faq-game-rules__section-title {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 20px;
    }
    .page-faq-game-rules__section-description {
        margin-bottom: 30px;
    }
    .page-faq-game-rules__content-grid,
    .page-faq-game-rules__info-grid {
        grid-template-columns: 1fr;
    }
    .page-faq-game-rules__rule-item {
        padding: 25px;
    }
    .page-faq-game-rules__category-title {
        font-size: 1.6em;
        padding: 25px;
    }
    .page-faq-game-rules__image-wrapper {
        height: 200px;
    }
    .page-faq-game-rules__category-content {
        padding: 25px;
    }
    .page-faq-game-rules__accordion-header {
        font-size: 1em;
        padding: 12px 18px;
    }
    .page-faq-game-rules__contact-support {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .page-faq-game-rules__hero-title {
        font-size: 1.8em;
    }
    .page-faq-game-rules__hero-subtitle {
        font-size: 0.9em;
    }
    .page-faq-game-rules__section-title {
        font-size: 1.5em;
    }
    .page-faq-game-rules__container {
        padding: 0 15px;
    }
}