/* style/cockfighting.css */

/* Variables for colors (from provided palette) */
:root {
    --page-cockfighting-primary: #11A84E; /* Main color */
    --page-cockfighting-secondary: #22C768; /* Auxiliary color */
    --page-cockfighting-button-gradient-start: #2AD16F;
    --page-cockfighting-button-gradient-end: #13994A;
    --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;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--page-cockfighting-text-main); /* Text Main for dark background */
    background-color: var(--page-cockfighting-background); /* Body background from shared.css, but setting here for consistency with palette */
    line-height: 1.6;
}

/* Base styles for sections and containers */
.page-cockfighting__section {
    padding: 60px 20px;
    text-align: center;
}

.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add padding for inner content */
}

.page-cockfighting__section-title {
    font-size: clamp(28px, 4vw, 42px); /* Clamp for responsive H2 */
    margin-bottom: 30px;
    color: var(--page-cockfighting-gold); /* Gold for titles */
    font-weight: bold;
    line-height: 1.2;
}

.page-cockfighting__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--page-cockfighting-text-secondary); /* Secondary text for paragraphs */
}

.page-cockfighting__highlight {
    color: var(--page-cockfighting-gold);
    font-weight: bold;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Ensure image is above content for DOM order */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
}

.page-cockfighting__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 15px;
}

.page-cockfighting__hero-title {
    font-size: clamp(32px, 5vw, 56px); /* Responsive H1 */
    color: var(--page-cockfighting-gold);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.page-cockfighting__hero-description {
    font-size: clamp(18px, 2vw, 24px);
    color: var(--page-cockfighting-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for wrapping */
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button takes full width on small screens */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, var(--page-cockfighting-button-gradient-start) 0%, var(--page-cockfighting-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid var(--page-cockfighting-primary);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, var(--page-cockfighting-button-gradient-end) 0%, var(--page-cockfighting-button-gradient-start) 100%);
    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-secondary);
    border: 2px solid var(--page-cockfighting-secondary);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--page-cockfighting-secondary);
    color: var(--page-cockfighting-background);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-center {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    width: 100%;
}

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

.page-cockfighting__card {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-cockfighting-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-cockfighting-text-main); /* Ensure contrast */
}

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

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

.page-cockfighting__card-text {
    font-size: 16px;
    color: var(--page-cockfighting-text-secondary);
}

/* Image styles */
.page-cockfighting__image-full {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    min-width: 200px; /* Min image size requirement */
    min-height: 200px;
}

/* Step list (How to Play) */
.page-cockfighting__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting__step-item {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-cockfighting-border);
    color: var(--page-cockfighting-text-main); /* Ensure contrast */
}

.page-cockfighting__step-title {
    font-size: 22px;
    color: var(--page-cockfighting-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-cockfighting__step-description a {
    color: var(--page-cockfighting-secondary);
    text-decoration: underline;
}

.page-cockfighting__step-description a:hover {
    color: var(--page-cockfighting-glow);
}

/* Promotions */
.page-cockfighting__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting__promo-item {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-cockfighting-border);
    color: var(--page-cockfighting-text-main); /* Ensure contrast */
}

.page-cockfighting__promo-title {
    font-size: 22px;
    color: var(--page-cockfighting-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__promo-description {
    font-size: 16px;
    color: var(--page-cockfighting-text-secondary);
}

/* Security section - dark background */
.page-cockfighting__security-info {
    background-color: var(--page-cockfighting-deep-green); /* Use Deep Green for this section */
    color: var(--page-cockfighting-text-main); /* Ensure text is light on dark background */
}

.page-cockfighting__security-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting__security-item {
    background-color: var(--page-cockfighting-card-bg); /* Use card background for items */
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-cockfighting-border);
    color: var(--page-cockfighting-text-main); /* Ensure contrast */
}

.page-cockfighting__security-title {
    font-size: 22px;
    color: var(--page-cockfighting-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__security-description {
    font-size: 16px;
    color: var(--page-cockfighting-text-secondary);
}

/* FAQ Section */
.page-cockfighting__faq {
    text-align: left;
}

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

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--page-cockfighting-border);
    color: var(--page-cockfighting-text-main); /* Ensure contrast */
}

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

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

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

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-cockfighting__section {
        padding: 40px 15px;
    }
    .page-cockfighting__hero-title {
        font-size: clamp(30px, 4.5vw, 48px);
    }
    .page-cockfighting__hero-description {
        font-size: clamp(16px, 1.8vw, 20px);
    }
    .page-cockfighting__section-title {
        font-size: clamp(26px, 3.5vw, 38px);
    }
    .page-cockfighting__card-title,
    .page-cockfighting__step-title,
    .page-cockfighting__promo-title,
    .page-cockfighting__security-title {
        font-size: 20px;
    }
    .page-cockfighting__faq-question {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section {
        padding: 30px 10px;
    }
    .page-cockfighting__container {
        padding: 0 10px;
    }
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
        padding-bottom: 40px;
    }
    .page-cockfighting__hero-title {
        font-size: clamp(28px, 6vw, 40px);
    }
    .page-cockfighting__hero-description {
        font-size: clamp(15px, 2.5vw, 18px);
    }
    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 90%; /* Make buttons full width on mobile */
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__card,
    .page-cockfighting__step-item,
    .page-cockfighting__promo-item,
    .page-cockfighting__security-item,
    .page-cockfighting__faq-item {
        padding: 20px;
    }
    .page-cockfighting__section-title {
        font-size: clamp(24px, 5vw, 32px);
    }
    .page-cockfighting__text-block {
        font-size: 16px;
    }
    .page-cockfighting__card-title,
    .page-cockfighting__step-title,
    .page-cockfighting__promo-title,
    .page-cockfighting__security-title {
        font-size: 18px;
    }
    .page-cockfighting__card-text,
    .page-cockfighting__step-description,
    .page-cockfighting__promo-description,
    .page-cockfighting__security-description,
    .page-cockfighting__faq-answer {
        font-size: 15px;
    }
    .page-cockfighting__faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }
    /* Image responsiveness */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-cockfighting__hero-image {
        margin-bottom: 20px;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-section,
    .page-cockfighting__introduction,
    .page-cockfighting__betting-types,
    .page-cockfighting__how-to-play,
    .page-cockfighting__promotions,
    .page-cockfighting__security-info,
    .page-cockfighting__faq,
    .page-cockfighting__conclusion {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}