/* style/cockfighting.css */

/* Variables for colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;

    /* Base dark text for light body background, but content sections will override */
    --color-body-text-default: #333333;
}

/* Base styles for the page content area */
.page-cockfighting {
    background-color: var(--color-background); /* Dark background for content */
    color: var(--color-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll for the main content */
}

/* Headings */
.page-cockfighting h1,
.page-cockfighting h2,
.page-cockfighting h3,
.page-cockfighting h4,
.page-cockfighting h5,
.page-cockfighting h6 {
    color: var(--color-text-main);
    margin-bottom: 0.8em;
    line-height: 1.2;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-gold); /* Gold for main title */
    text-shadow: 0 0 10px var(--color-glow);
}

.page-cockfighting__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 10px;
}

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

.page-cockfighting__sub-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-secondary);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Text elements */
.page-cockfighting__text-block {
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

.page-cockfighting__subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    text-align: center;
    margin-bottom: 30px;
    color: var(--color-text-main);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__note {
    font-style: italic;
    color: var(--color-text-secondary);
    margin-top: 20px;
    border-left: 4px solid var(--color-gold);
    padding-left: 15px;
}

.page-cockfighting__tip {
    font-style: italic;
    color: var(--color-text-secondary);
    margin-top: 20px;
    border-left: 4px solid var(--color-gold);
    padding-left: 15px;
}

/* Links */
.page-cockfighting a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting a:hover {
    color: var(--color-glow);
    text-decoration: underline;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, var(--color-button-gradient-end) 0%, var(--color-button-gradient-start) 100%);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

/* CTA Buttons container */
.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-cockfighting__cta-buttons--bottom {
    margin-top: 50px;
    margin-bottom: 30px;
}

/* Sections & Containers */
.page-cockfighting__section {
    padding: 60px 0;
    position: relative;
    z-index: 1; /* Ensure sections are above any potential background effects */
}

.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 */
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-background); /* Ensure dark background for text */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height of hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-cockfighting__hero-content {
    position: relative; /* Ensure content is above image */
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    text-align: center;
}

/* Images within content */
.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Download Cards */
.page-cockfighting__download-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__download-card {
    background-color: var(--color-card-bg);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__download-card .page-cockfighting__card-title {
    color: var(--color-gold);
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.page-cockfighting__download-card .page-cockfighting__card-text {
    color: var(--color-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-cockfighting__download-card .page-cockfighting__card-image {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin-bottom: 25px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05); /* Slight background for image */
    padding: 10px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-cockfighting__game-card {
    background-color: var(--color-card-bg);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

.page-cockfighting__game-card .page-cockfighting__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-cockfighting__game-card .page-cockfighting__card-title {
    color: var(--color-gold);
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.page-cockfighting__game-card .page-cockfighting__card-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Lists */
.page-cockfighting__list,
.page-cockfighting__list-ordered {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-cockfighting__list li,
.page-cockfighting__list-ordered li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--color-text-secondary);
}

.page-cockfighting__list li::before {
    content: '✓';
    color: var(--color-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-cockfighting__list-ordered li::before {
    content: counter(list-item) '.';
    counter-increment: list-item;
    color: var(--color-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

.page-cockfighting__feature-item {
    background-color: var(--color-card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    text-align: center;
}

.page-cockfighting__feature-title {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.page-cockfighting__feature-text {
    color: var(--color-text-secondary);
    flex-grow: 1;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-weight: bold;
    color: var(--color-gold);
    cursor: pointer;
    background-color: var(--color-deep-green);
    border-bottom: 1px solid var(--color-divider);
    list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-question:hover {
    background-color: var(--color-deep-green); /* Slightly darker on hover */
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    font-size: 1.1rem;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-glow);
}

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    background-color: var(--color-card-bg);
}

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
}
.page-cockfighting__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-section {
        padding-bottom: 60px;
    }
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    .page-cockfighting__subtitle {
        font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    }
}

@media (max-width: 768px) {
    /* Mobile image responsiveness */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    /* Mobile video responsiveness */
    .page-cockfighting video,
    .page-cockfighting__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    /* Video container mobile adaptation */
    .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: hidden !important;
    }

    /* Video section top padding on mobile */
    .page-cockfighting__video-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
    }

    /* Button responsiveness */
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting 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; /* Add padding to ensure text doesn't touch edges */
      padding-right: 15px;
    }

    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
      flex-wrap: wrap !important;
      gap: 15px; /* Adjust gap for mobile */
    }

    /* If buttons use flex layout, ensure wrapping on mobile */
    .page-cockfighting__cta-buttons {
      display: flex;
      flex-direction: column; /* Mobile vertical stacking */
    }

    /* General content container for mobile */
    .page-cockfighting__container,
    .page-cockfighting__section,
    .page-cockfighting__download-steps,
    .page-cockfighting__grid-cards,
    .page-cockfighting__feature-grid,
    .page-cockfighting__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
    }

    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }
    .page-cockfighting__section {
        padding: 30px 0;
    }
    .page-cockfighting__main-title {
        font-size: 2.2rem;
    }
    .page-cockfighting__section-title {
        font-size: 1.8rem;
    }
    .page-cockfighting__subtitle {
        font-size: 1rem;
    }
    .page-cockfighting__download-card,
    .page-cockfighting__game-card,
    .page-cockfighting__feature-item {
        padding: 20px;
    }
    .page-cockfighting__download-card .page-cockfighting__card-image {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 1.8rem;
    }
    .page-cockfighting__section-title {
        font-size: 1.5rem;
    }
    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-cockfighting__faq-qtext {
        font-size: 1rem;
    }
    .page-cockfighting__faq-answer {
        padding: 10px 20px 15px;
    }
}