/* style/cockfighting.css */

/* Custom Colors */
:root {
    --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: #2E7A4E;
    --page-cockfighting-glow: #57E38D;
    --page-cockfighting-gold: #F2C14E;
    --page-cockfighting-divider: #1E3A2A;
    --page-cockfighting-deep-green: #0A4B2C;
}

/* Global page-cockfighting styles */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-cockfighting-text-main); /* Default text color for dark background sections */
    background-color: var(--page-cockfighting-background); /* Default background for the page */
}

.page-cockfighting__section-title {
    font-size: clamp(2em, 4vw, 3em);
    font-weight: 700;
    color: var(--page-cockfighting-gold);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--page-cockfighting-button-gradient);
    border-radius: 2px;
}

.page-cockfighting__section-intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    font-size: 1.1em;
    color: var(--page-cockfighting-text-secondary);
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--page-cockfighting-background);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
    position: relative;
}

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly with image for visual flow */
    background: var(--page-cockfighting-card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    font-weight: 800;
    color: var(--page-cockfighting-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 30px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: #ffffff; /* White text for primary button */
    border: none;
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--page-cockfighting-gold);
    border: 2px solid var(--page-cockfighting-gold);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--page-cockfighting-gold);
    color: var(--page-cockfighting-background);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

/* General Section Styling */
.page-cockfighting__section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-cockfighting__dark-bg {
    background-color: var(--page-cockfighting-background);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__light-bg {
    background-color: #f8f9fa; /* A very light background to ensure dark text contrast */
    color: #333333; /* Dark text for light background */
}

/* Features Grid */
.page-cockfighting__features-grid,
.page-cockfighting__steps-grid,
.page-cockfighting__bets-grid,
.page-cockfighting__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__card,
.page-cockfighting__step-card,
.page-cockfighting__bet-card,
.page-cockfighting__tip-card {
    background: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--page-cockfighting-text-main); /* Ensure text is main color */
}

.page-cockfighting__light-bg .page-cockfighting__card,
.page-cockfighting__light-bg .page-cockfighting__step-card,
.page-cockfighting__light-bg .page-cockfighting__bet-card,
.page-cockfighting__light-bg .page-cockfighting__tip-card {
    background: #ffffff; /* White background for cards in light sections */
    color: #333333; /* Dark text for cards in light sections */
    border: 1px solid #e0e0e0;
}

.page-cockfighting__card:hover,
.page-cockfighting__step-card:hover,
.page-cockfighting__bet-card:hover,
.page-cockfighting__tip-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__card-image,
.page-cockfighting__step-image,
.page-cockfighting__bet-image,
.page-cockfighting__tip-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
}

.page-cockfighting__card-title,
.page-cockfighting__step-title,
.page-cockfighting__bet-title,
.page-cockfighting__tip-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--page-cockfighting-gold);
    margin-bottom: 15px;
}

.page-cockfighting__light-bg .page-cockfighting__card-title,
.page-cockfighting__light-bg .page-cockfighting__step-title,
.page-cockfighting__light-bg .page-cockfighting__bet-title,
.page-cockfighting__light-bg .page-cockfighting__tip-title {
    color: var(--page-cockfighting-deep-green); /* Dark green for titles in light cards */
}

.page-cockfighting__card-text,
.page-cockfighting__step-text,
.page-cockfighting__bet-text,
.page-cockfighting__tip-text {
    font-size: 1em;
    color: var(--page-cockfighting-text-secondary);
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-cockfighting__light-bg .page-cockfighting__card-text,
.page-cockfighting__light-bg .page-cockfighting__step-text,
.page-cockfighting__light-bg .page-cockfighting__bet-text,
.page-cockfighting__light-bg .page-cockfighting__tip-text {
    color: #555555; /* Darker grey for text in light cards */
}

/* How to Play section specific */
.page-cockfighting__how-to-play .page-cockfighting__btn-primary,
.page-cockfighting__how-to-play .page-cockfighting__btn-secondary {
    margin-top: auto;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-cockfighting__faq-item {
    background: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__light-bg .page-cockfighting__faq-item {
    background: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
}

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

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

.page-cockfighting__light-bg .page-cockfighting__faq-question {
    background: #e9ecef; /* Light background for FAQ question */
    color: var(--page-cockfighting-deep-green);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

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

.page-cockfighting__light-bg .page-cockfighting__faq-answer {
    color: #555555;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    text-align: center;
    padding-bottom: 80px;
}

/* All images must be responsive */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* All video elements must be responsive */
.page-cockfighting video,
.page-cockfighting__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* Video container desktop width */
.page-cockfighting__video-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__hero-content {
        margin-top: -50px;
        padding: 30px 15px;
    }

    .page-cockfighting__main-title {
        font-size: 2.2em;
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-cockfighting__section {
        padding: 40px 15px;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
    }

    .page-cockfighting__section-intro-text {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__bets-grid,
    .page-cockfighting__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card,
    .page-cockfighting__step-card,
    .page-cockfighting__bet-card,
    .page-cockfighting__tip-card {
        padding: 20px;
    }

    .page-cockfighting__card-image,
    .page-cockfighting__step-image,
    .page-cockfighting__bet-image,
    .page-cockfighting__tip-image {
        height: 180px;
    }

    .page-cockfighting__faq-list {
        margin-top: 30px;
    }

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

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

    /* Enforce image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__hero-content,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__features-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__bets-grid,
    .page-cockfighting__tips-grid,
    .page-cockfighting__faq-list,
    .page-cockfighting__faq-item,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }

    .page-cockfighting__video-section {
        padding-top: 10px !important;
    }

    /* Video specific mobile styles */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain 16:9 aspect ratio */
        position: relative;
        height: 0;
        overflow: hidden !important;
    }
    .page-cockfighting__video-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* Ensure text colors for contrast on various backgrounds */
.page-cockfighting p,
.page-cockfighting li {
    color: var(--page-cockfighting-text-secondary); /* Default for most text */
}

.page-cockfighting__light-bg p,
.page-cockfighting__light-bg li {
    color: #555555; /* Darker text for light backgrounds */
}

.page-cockfighting__light-bg .page-cockfighting__section-title {
    color: var(--page-cockfighting-deep-green);
}

.page-cockfighting__light-bg .page-cockfighting__section-intro-text {
    color: #666666;
}