/* style/cockfighting.css */

/* Custom Colors */
:root {
    --page-cockfighting-primary-color: #11A84E;
    --page-cockfighting-secondary-color: #22C768;
    --page-cockfighting-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-cockfighting-card-bg: #11271B;
    --page-cockfighting-background: #08160F;
    --page-cockfighting-text-main: #F2FFF6;
    --page-cockfighting-text-secondary: #A7D9B8;
    --page-cockfighting-border-color: #2E7A4E;
    --page-cockfighting-glow: #57E38D;
    --page-cockfighting-gold: #F2C14E;
    --page-cockfighting-divider: #1E3A2A;
    --page-cockfighting-deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-cockfighting {
    background-color: var(--page-cockfighting-background); /* Explicitly set page background to match custom dark background */
    color: var(--page-cockfighting-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--page-cockfighting-deep-green); /* Darker green for hero background */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure content does not overflow */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-cockfighting__hero-content {
    padding: 40px 20px 60px;
    max-width: 900px;
    z-index: 1; /* Ensure text is above any potential background elements */
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Use clamp for H1 font size */
    color: var(--page-cockfighting-gold); /* Gold color for main title */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__description {
    font-size: 1.15em;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure button container takes full width */
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break */
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-text-main); /* White text for dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--page-cockfighting-gold); /* Gold text for secondary button */
    border: 2px solid var(--page-cockfighting-gold);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--page-cockfighting-gold);
    color: var(--page-cockfighting-background); /* Dark text on hover */
    transform: translateY(-2px);
}

/* Section General Styles */
.page-cockfighting__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--page-cockfighting-gold);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__text-block {
    font-size: 1em;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__about-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__features-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
    padding: 60px 0;
}

.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-card-bg); /* Use Card BG for dark sections */
    color: var(--page-cockfighting-text-main);
}

/* How to Play Section */
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-cockfighting__step-item {
    background-color: var(--page-cockfighting-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--page-cockfighting-border-color);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__step-title {
    font-size: 1.4em;
    color: var(--page-cockfighting-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__step-description {
    font-size: 0.95em;
    color: var(--page-cockfighting-text-secondary);
}

/* Features Section */
.page-cockfighting__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-cockfighting__feature-card {
    background-color: var(--page-cockfighting-deep-green); /* Use deep green for feature cards */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--page-cockfighting-border-color);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__feature-title {
    font-size: 1.3em;
    color: var(--page-cockfighting-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__feature-description {
    font-size: 0.95em;
    color: var(--page-cockfighting-text-secondary);
}

/* Promotions Section */
.page-cockfighting__promotion-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.page-cockfighting__promotion-item {
    background-color: var(--page-cockfighting-card-bg);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--page-cockfighting-border-color);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__promotion-title {
    font-size: 1.3em;
    color: var(--page-cockfighting-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting__promotion-description {
    font-size: 0.95em;
    color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__cta-wrapper {
    text-align: center;
    margin-top: 30px;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 30px;
}

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-deep-green); /* Deep green for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--page-cockfighting-border-color);
    overflow: hidden;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--page-cockfighting-gold);
    list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95em;
    color: var(--page-cockfighting-text-secondary);
    line-height: 1.6;
}

/* Images */
.page-cockfighting__image-wrapper {
    text-align: center;
    margin: 40px auto;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-cockfighting__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        padding: 30px 20px 50px;
    }
    .page-cockfighting__main-title {
        margin-bottom: 15px;
    }
    .page-cockfighting__description {
        margin-bottom: 25px;
    }
    .page-cockfighting__section-title {
        margin-bottom: 25px;
    }
    .page-cockfighting__about-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__features-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__hero-content {
        padding: 20px 15px 40px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }

    .page-cockfighting__description {
        font-size: 1em;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        max-width: 90%;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 20px;
    }

    .page-cockfighting__text-block {
        font-size: 0.95em;
    }

    .page-cockfighting__steps-grid,
    .page-cockfighting__features-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-cockfighting__step-item,
    .page-cockfighting__feature-card,
    .page-cockfighting__promotion-item {
        padding: 20px;
    }

    .page-cockfighting__step-title,
    .page-cockfighting__feature-title,
    .page-cockfighting__promotion-title {
        font-size: 1.2em;
    }

    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.9em;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__about-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__features-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section,
    .page-cockfighting__image-wrapper,
    .page-cockfighting__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }
    .page-cockfighting__about-section .page-cockfighting__container,
    .page-cockfighting__how-to-play-section .page-cockfighting__container,
    .page-cockfighting__features-section .page-cockfighting__container,
    .page-cockfighting__promotions-section .page-cockfighting__container,
    .page-cockfighting__faq-section .page-cockfighting__container,
    .page-cockfighting__cta-section .page-cockfighting__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-content {
        padding: 15px 10px 30px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        font-size: 0.95em;
        padding: 10px 15px;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.3em, 7vw, 1.8em);
    }
}