/* style/cockfighting.css */

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

.page-cockfighting {
    background-color: var(--page-cockfighting-bg);
    color: var(--page-cockfighting-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Ensure body padding for fixed header is handled by shared.css */
/* First section padding-top: 10px; is for decorative spacing, not header offset */

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 60px 20px; /* General padding */
    padding-top: 10px; /* Small top padding, header offset handled by body */
    text-align: center;
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and text */
    border-radius: 8px;
}

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

.page-cockfighting__hero-content {
    max-width: 800px;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-cockfighting__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--page-cockfighting-gold); /* Using gold for main title */
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-link,
.page-cockfighting__btn-small {
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-btn-gradient);
    color: var(--page-cockfighting-text-main); /* White text on green gradient */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--page-cockfighting-glow); /* Green glow text */
    border: 2px solid var(--page-cockfighting-glow);
}

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

.page-cockfighting__btn-link {
    color: var(--page-cockfighting-glow);
    text-decoration: underline;
    font-weight: normal;
    padding: 0;
    background: none;
    border: none;
}

.page-cockfighting__btn-link:hover {
    color: var(--page-cockfighting-gold);
}

.page-cockfighting__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 25px;
    background: var(--page-cockfighting-btn-gradient);
    color: var(--page-cockfighting-text-main);
    border: none;
    margin-top: 10px;
}
.page-cockfighting__btn-small:hover {
    transform: translateY(-1px);
}


/* General Sections */
.page-cockfighting__section-title {
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--page-cockfighting-gold);
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

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

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* About Section */
.page-cockfighting__about-section {
    padding: 80px 0;
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 80px 0;
    background-color: var(--page-cockfighting-deep-green); /* Use deep green for dark sections */
}

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

.page-cockfighting__feature-card {
    background-color: var(--page-cockfighting-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-cockfighting-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__card-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--page-cockfighting-gold);
}

.page-cockfighting__card-description {
    font-size: 1rem;
    color: var(--page-cockfighting-text-secondary);
}

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

/* How-to-Play Section */
.page-cockfighting__how-to-play-section {
    padding: 80px 0;
}

.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.page-cockfighting__list-item {
    background-color: var(--page-cockfighting-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__list-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--page-cockfighting-glow);
}

.page-cockfighting__list-description {
    font-size: 1.05rem;
    color: var(--page-cockfighting-text-secondary);
}

/* Game Types Section */
.page-cockfighting__game-types-section {
    padding: 80px 0;
    background-color: var(--page-cockfighting-deep-green);
}

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

.page-cockfighting__type-card {
    background-color: var(--page-cockfighting-card-bg);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-cockfighting-border);
    text-align: center;
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 80px 0;
}

.page-cockfighting__promo-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.page-cockfighting__promo-list .page-cockfighting__list-item {
    background-color: var(--page-cockfighting-card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--page-cockfighting-border);
    font-size: 1rem;
    color: var(--page-cockfighting-text-secondary);
    display: flex;
    align-items: center;
}
.page-cockfighting__promo-list .page-cockfighting__list-item::before {
    content: "✅";
    margin-right: 10px;
    font-size: 1.2em;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--page-cockfighting-deep-green);
}

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

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--page-cockfighting-border);
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--page-cockfighting-gold);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

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

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

/* For <details> tag */
.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: "−";
}
.page-cockfighting__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--page-cockfighting-text-secondary);
    line-height: 1.7;
}
.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
}

/* CTA Banner Section */
.page-cockfighting__cta-banner {
    padding: 80px 0;
    background-color: var(--page-cockfighting-bg);
    text-align: center;
}

.page-cockfighting__cta-banner .page-cockfighting__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

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

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

/* Floating Buttons */
.page-cockfighting__floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.page-cockfighting__floating-btn {
    width: 120px;
    height: 45px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-decoration: none;
    color: var(--page-cockfighting-text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--page-cockfighting-btn-gradient);
    border: 2px solid var(--page-cockfighting-glow);
}

.page-cockfighting__floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Dark background text color override for specific elements */
.page-cockfighting__text-main {
    color: var(--page-cockfighting-text-main);
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting__section-title {
        font-size: 2rem;
    }
    .page-cockfighting__features-grid,
    .page-cockfighting__types-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Small top padding */
    }
    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Constrain buttons for mobile */
        margin: 0 auto;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-cockfighting__about-section,
    .page-cockfighting__features-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__game-types-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-banner {
        padding: 40px 0;
    }
    .page-cockfighting__container {
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Image responsive rules */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__image-content,
    .page-cockfighting__card-image,
    .page-cockfighting__cta-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Video responsive rules (if any, not explicitly in HTML for this page, but good to include) */
    .page-cockfighting video,
    .page-cockfighting__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .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;
    }

    .page-cockfighting__floating-buttons {
        flex-direction: row;
        width: calc(100% - 40px);
        bottom: 15px;
        right: 20px;
        left: 20px;
        justify-content: space-around;
        gap: 10px;
    }
    .page-cockfighting__floating-btn {
        flex: 1;
        width: auto;
        max-width: 150px; /* Adjust max-width for smaller screens */
    }
    
    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: clamp(1.5rem, 9vw, 2rem);
    }
    .page-cockfighting__section-title {
        font-size: 1.5rem;
    }
    .page-cockfighting__feature-card,
    .page-cockfighting__type-card,
    .page-cockfighting__list-item {
        padding: 20px;
    }
    .page-cockfighting__card-title,
    .page-cockfighting__list-title {
        font-size: 1.2rem;
    }
    .page-cockfighting__floating-buttons {
      bottom: 10px;
      right: 10px;
      left: 10px;
    }
    .page-cockfighting__floating-btn {
      width: auto;
      flex: 1;
      max-width: unset; /* Let flex handle width */
      font-size: 0.9em;
      padding: 10px 15px;
    }
}