/* style/cockfighting.css */

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark background */
    background-color: var(--secondary-color, #1A1A1A); /* Inherit from shared or default to dark */
}

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

/* Hero Section (first section, not the homepage HERO) */
.page-cockfighting__hero-section {
    padding: 60px 0;
    background-color: var(--secondary-color, #1A1A1A);
    text-align: center;
    padding-top: var(--header-offset, 120px);
}

.page-cockfighting__main-title {
    font-size: 3.2em;
    color: #FFD700; /* Gold color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__intro-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

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

.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: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background-color: #FFD700;
    color: #1A1A1A; /* Dark text on gold button for contrast */
    border: 2px solid #FFD700;
}

.page-cockfighting__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A1A1A;
    transform: translateY(-2px);
}

.page-cockfighting__btn-primary--small,
.page-cockfighting__btn-secondary--small {
    padding: 10px 20px;
    font-size: 1em;
}

.page-cockfighting__btn-primary--large,
.page-cockfighting__btn-secondary--large {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* General Section Styles */
.page-cockfighting__section {
    padding: 80px 0;
    background-color: var(--secondary-color, #1A1A1A);
}

.page-cockfighting__section:nth-of-type(even) {
    background-color: #1a1a1a; /* Slightly darker for distinction */
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__sub-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-top: 30px;
    margin-bottom: 20px;
}

.page-cockfighting__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-cockfighting__image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-cockfighting__image-wrapper img:hover {
    transform: scale(1.03);
}

.page-cockfighting__text-content {
    flex: 1;
    color: #f0f0f0;
}

.page-cockfighting__text-content p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-cockfighting__list-item {
    background-color: rgba(255, 215, 0, 0.1); /* Light gold background for list items */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-left: 5px solid #FFD700;
    border-radius: 5px;
    color: #f0f0f0;
    font-size: 1.05em;
}

.page-cockfighting__list-item strong {
    color: #FFD700;
}

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

.page-cockfighting__step-card {
    background-color: #2a2a2a; /* Darker background for cards */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__step-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-cockfighting__step-card p {
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Advantages Grid */
.page-cockfighting__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__advantage-card {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__card-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-cockfighting__advantage-card p {
    color: #e0e0e0;
}

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

.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background-color: #2a2a2a; /* Darker background for FAQ item */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #1A1A1A; /* Dark background for question */
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-cockfighting__faq-question:hover {
    background: #252525;
    border-color: #4a4a4a;
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    color: #FFD700; /* Gold text for FAQ question */
    pointer-events: none;
}

.page-cockfighting__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    color: #f0f0f0; /* Light color when active */
    transform: rotate(45deg); /* Plus to X */
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    color: #e0e0e0;
    font-size: 1em;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 15px !important;
    opacity: 1;
    background: #2a2a2a; /* Darker background for answer */
    border-radius: 0 0 5px 5px;
}

/* Conclusion Section */
.page-cockfighting__section--conclusion {
    text-align: center;
    padding-bottom: 100px;
}

.page-cockfighting__section--conclusion .page-cockfighting__section-title {
    margin-bottom: 30px;
}

.page-cockfighting__section--conclusion p {
    font-size: 1.2em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Image specific styles - general for all images */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 2.8em;
    }

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

    .page-cockfighting__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-cockfighting__content-wrapper--reverse {
        flex-direction: column;
    }

    .page-cockfighting__image-wrapper {
        width: 100%;
        max-width: 600px;
        margin: 0 auto 30px auto;
    }

    .page-cockfighting__text-content {
        width: 100%;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100%;
        max-width: 300px; /* Constrain button width */
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-cockfighting__hero-section {
        padding: 40px 0;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-cockfighting__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-cockfighting__intro-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    /* 通用图片与容器 */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__container,
    .page-cockfighting__content-wrapper,
    .page-cockfighting__steps-grid,
    .page-cockfighting__advantages-grid,
    .page-cockfighting__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

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

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-cockfighting__sub-title {
        font-size: 1.4em;
    }

    .page-cockfighting__list-item {
        padding: 10px 15px;
        font-size: 0.95em;
    }

    /* 按钮与按钮容器 */
    .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;
        padding-right: 15px;
    }
    
    .page-cockfighting__btn-primary--small,
    .page-cockfighting__btn-secondary--small {
        padding: 12px 15px;
        font-size: 0.9em;
    }

    .page-cockfighting__btn-primary--large,
    .page-cockfighting__btn-secondary--large {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    /* FAQ Section */
    .page-cockfighting__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-cockfighting__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-cockfighting__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px !important;
    }

    /* Other content modules (steps, advantages) */
    .page-cockfighting__steps-grid,
    .page-cockfighting__advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__step-card,
    .page-cockfighting__advantage-card {
        padding: 20px;
    }
}