/* style/game-guides.css */

/* General Styles */
.page-game-guides {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main, #FFF6D6); /* Default text color from custom palette */
    background-color: var(--color-background-dark, #0A0A0A); /* Default background from custom palette */
    line-height: 1.6;
}

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

.page-game-guides__section-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--color-text-main, #FFF6D6);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-game-guides__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFD86A 0%, #DDA11D 100%);
    border-radius: 2px;
}

/* Hero Section */
.page-game-guides__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    background: var(--color-background-dark, #0A0A0A);
    position: relative;
    overflow: hidden;
}

.page-game-guides__hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 30px;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    max-width: 100%; /* Ensure responsiveness */
    display: block;
}

.page-game-guides__hero-text-block {
    text-align: center;
    max-width: 800px;
}

.page-game-guides__main-title {
    font-size: 52px;
    font-weight: 800;
    color: var(--color-text-main, #FFF6D6);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.page-game-guides__lead-text {
    font-size: 20px;
    color: #E0E0E0;
    margin-bottom: 30px;
}

/* Buttons */
.page-game-guides__btn-primary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 25px;
    background: var(--color-card-bg, #111111);
    color: var(--color-main, #F2C14E);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--color-border, #3A2A12);
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-secondary:hover {
    background: var(--color-main, #F2C14E);
    color: #1a1a1a;
    border-color: var(--color-main, #F2C14E);
}

.page-game-guides__btn-large {
    padding: 18px 45px;
    font-size: 20px;
    border-radius: 35px;
}

/* Intro Section */
.page-game-guides__intro-section {
    padding: 60px 0;
    background-color: var(--color-background-dark, #0A0A0A);
}

.page-game-guides__intro-section p {
    font-size: 18px;
    color: #E0E0E0;
    text-align: center;
    max-width: 900px;
    margin: 20px auto;
}

/* Game Categories */
.page-game-guides__game-categories {
    padding: 60px 0;
    background-color: var(--color-background-dark, #0A0A0A);
}

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

.page-game-guides__card {
    background: var(--color-card-bg, #111111);
    border: 1px solid var(--color-border, #3A2A12);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-game-guides__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsiveness */
    display: block;
}

.page-game-guides__card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

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

.page-game-guides__card-title a:hover {
    color: var(--color-glow, #FFD36B);
}

.page-game-guides__card p {
    font-size: 16px;
    color: #B0B0B0;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* FAQ Section */
.page-game-guides__faq-section {
    padding: 60px 0;
    background-color: var(--color-background-dark, #0A0A0A);
}

details.page-game-guides__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--color-border, #3A2A12);
    overflow: hidden;
    background: var(--color-card-bg, #111111);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main, #FFF6D6); /* Ensure text color is light */
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-main, #FFF6D6);
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question::-webkit-details-marker {
    display: none;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question:hover {
    background: rgba(255, 255, 255, 0.05); /* Lighter hover for dark background */
}
.page-game-guides__faq-qtext {
    flex: 1;
    line-height: 1.5;
    text-align: left;
}
.page-game-guides__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-main, #F2C14E);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-game-guides__faq-item .page-game-guides__faq-answer {
    padding: 0 25px 20px;
    background: rgba(0, 0, 0, 0.1); /* Slightly darker for answer content */
    border-radius: 0 0 10px 10px;
    color: #E0E0E0;
    font-size: 16px;
}
.page-game-guides__faq-answer p {
    margin: 0;
}

/* CTA Section */
.page-game-guides__cta-section {
    padding: 80px 0;
    background-color: var(--color-background-dark, #0A0A0A);
    text-align: center;
}

.page-game-guides__cta-content {
    max-width: 800px;
}

.page-game-guides__cta-section p {
    font-size: 20px;
    color: #E0E0E0;
    margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-guides__main-title {
        font-size: 44px;
    }
    .page-game-guides__lead-text {
        font-size: 18px;
    }
    .page-game-guides__section-title {
        font-size: 32px;
    }
    .page-game-guides__category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-game-guides__card-title {
        font-size: 22px;
    }
    .page-game-guides__intro-section p,
    .page-game-guides__cta-section p {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-game-guides__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
    }
    .page-game-guides__hero-content-wrapper {
        padding: 30px 15px;
        gap: 20px;
    }
    .page-game-guides__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-game-guides__main-title {
        font-size: 36px;
        margin-bottom: 15px;
    }
    .page-game-guides__lead-text {
        font-size: 16px;
        margin-bottom: 25px;
    }

    /* General containers and images */
    .page-game-guides__container,
    .page-game-guides__intro-section,
    .page-game-guides__game-categories,
    .page-game-guides__faq-section,
    .page-game-guides__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* Section Titles */
    .page-game-guides__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* Intro Section */
    .page-game-guides__intro-section {
        padding: 40px 0;
    }
    .page-game-guides__intro-section p {
        font-size: 16px;
    }

    /* Game Categories */
    .page-game-guides__game-categories {
        padding: 40px 0;
    }
    .page-game-guides__category-grid {
        grid-template-columns: 1fr; /* Single column layout for mobile */
        gap: 20px;
    }
    .page-game-guides__card {
        padding: 20px;
    }
    .page-game-guides__card-image {
        height: 180px; /* Adjust height for mobile */
    }
    .page-game-guides__card-title {
        font-size: 20px;
    }
    .page-game-guides__card p {
        font-size: 15px;
    }

    /* FAQ Section */
    .page-game-guides__faq-section {
        padding: 40px 0;
    }
    details.page-game-guides__faq-item summary.page-game-guides__faq-question {
        padding: 15px;
        font-size: 16px;
    }
    .page-game-guides__faq-qtext {
        font-size: 16px;
    }
    .page-game-guides__faq-toggle {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    details.page-game-guides__faq-item .page-game-guides__faq-answer {
        padding: 0 15px 15px;
        font-size: 15px;
    }

    /* CTA Section */
    .page-game-guides__cta-section {
        padding: 50px 0;
    }
    .page-game-guides__cta-section p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Buttons */
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary,
    .page-game-guides a[class*="button"],
    .page-game-guides a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    
    .page-game-guides__cta-buttons,
    .page-game-guides__button-group,
    .page-game-guides__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    
    .page-game-guides__cta-buttons {
      display: flex;
      flex-direction: column;
    }
    .page-game-guides__btn-large {
        padding: 15px 25px;
        font-size: 18px;
    }
}