/* style/game-guides.css */

:root {
    --primary-color: #1A2A4A;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0d0d0d;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
}

.page-game-guides {
    font-family: Arial, sans-serif;
    color: var(--text-light); /* Body background is dark, so text is light */
    background-color: var(--bg-dark);
    line-height: 1.6;
}

.page-game-guides__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    background-color: var(--primary-color);
    color: var(--text-light);
    overflow: hidden;
}

.page-game-guides__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-game-guides__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.4); /* Darken video to improve text readability */
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

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

.page-game-guides__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Section Styles */
.page-game-guides__intro-section, 
.page-game-guides__management-section, 
.page-game-guides__faq-section {
    background-color: var(--bg-dark);
    padding: 60px 0;
}

.page-game-guides__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-game-guides__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

/* Guide Cards Grid */
.page-game-guides__guide-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-guides__guide-card {
    background-color: var(--card-bg-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--text-light);
}

.page-game-guides__guide-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-game-guides__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-game-guides__card-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin: 20px 20px 10px 20px;
    flex-grow: 1;
}

.page-game-guides__card-title a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
    color: #ffd700;
}

.page-game-guides__card-text {
    font-size: 1em;
    color: #cccccc;
    margin: 0 20px 20px 20px;
}

.page-game-guides__btn-link {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 0 20px 20px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

.page-game-guides__btn-link:hover {
    background-color: #e0b800;
    color: var(--primary-color);
}

/* List Styles */
.page-game-guides__list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto;
}

.page-game-guides__list-item {
    background-color: var(--card-bg-dark);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.1em;
    color: #f0f0f0;
    border-left: 5px solid var(--secondary-color);
}

.page-game-guides__list-item strong {
    color: var(--secondary-color);
}

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

.page-game-guides__benefit-item {
    text-align: center;
    background-color: var(--card-bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.page-game-guides__benefit-icon {
    width: 200px; /* Min size 200px */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-game-guides__benefit-title {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-game-guides__benefit-text {
    font-size: 1em;
    color: #cccccc;
}

/* FAQ Section */
.page-game-guides__faq-list {
    max-width: 800px;
    margin: 40px auto;
}

.page-game-guides__faq-item {
    background-color: var(--card-bg-dark);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-game-guides__faq-title {
    font-size: 1.2em;
    color: var(--text-light);
    margin: 0;
}

.page-game-guides__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
    transform: rotate(45deg);
}

.page-game-guides__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #cccccc;
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
    padding-top: 0;
}

.page-game-guides__faq-answer p {
    margin-bottom: 10px;
}

.page-game-guides__faq-answer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-game-guides__faq-answer a:hover {
    text-decoration: underline;
}

/* Call to Action Section */
.page-game-guides__cta-section {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: var(--text-light);
}

.page-game-guides__cta-title {
    font-size: 2.8em;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.page-game-guides__cta-description {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-game-guides__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-game-guides__btn-primary:hover {
    background-color: #e0b800;
    border-color: #e0b800;
}

.page-game-guides__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-game-guides__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__hero-title {
        font-size: 2.8em;
    }
    .page-game-guides__section-title {
        font-size: 2em;
    }
    .page-game-guides__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-game-guides {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-game-guides__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-game-guides__hero-title {
        font-size: 2.2em;
    }
    .page-game-guides__hero-description {
        font-size: 1em;
    }
    .page-game-guides__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-game-guides__btn-primary, .page-game-guides__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
    }

    .page-game-guides__container {
        padding: 0 15px;
    }
    .page-game-guides__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-game-guides__section-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-game-guides__guide-cards-grid, 
    .page-game-guides__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile image responsiveness */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container,
    .page-game-guides__cta-buttons,
    .page-game-guides__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-game-guides__hero-video-wrapper {
        padding: 0;
    }
    .page-game-guides__hero-video {
        max-width: none !important; /* Allow video to stretch beyond 100% to fill background */
        width: auto !important;
        height: auto !important;
        min-width: 100%;
        min-height: 100%;
    }

    /* Mobile video responsiveness */
    .page-game-guides video,
    .page-game-guides__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-game-guides__video-section,
    .page-game-guides__video-container,
    .page-game-guides__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-game-guides__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-game-guides__cta-title {
        font-size: 1.8em;
    }
    .page-game-guides__cta-description {
        font-size: 0.95em;
    }
    .page-game-guides__faq-question {
        padding: 15px;
    }
    .page-game-guides__faq-title {
        font-size: 1.1em;
    }
    .page-game-guides__faq-answer {
        padding: 0 15px;
    }
    .page-game-guides__faq-item.active .page-game-guides__faq-answer {
        padding: 15px;
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .page-game-guides__hero-title {
        font-size: 1.8em;
    }
    .page-game-guides__section-title {
        font-size: 1.5em;
    }
    .page-game-guides__cta-title {
        font-size: 1.5em;
    }
}