/* style/cockfighting.css */

:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --background-dark: #0D0E12;
    --card-background: #17191F;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
}

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

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

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
    border-radius: 10px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__description {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 130, 26, 0.4);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 130, 26, 0.6);
}

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

.page-cockfighting__btn-secondary:hover {
    background: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

.page-cockfighting__section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    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(--primary-color);
    border-radius: 2px;
}

.page-cockfighting__dark-section {
    background-color: var(--card-background);
    padding: 80px 0;
}

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

.page-cockfighting__text-block .highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

.page-cockfighting__about-section {
    padding: 80px 0;
}

.page-cockfighting__features-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

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

.page-cockfighting__feature-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
}

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

.page-cockfighting__feature-icon {
    width: 200px; /* Min size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    object-fit: cover;
}

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

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

.page-cockfighting__how-to-play-section {
    padding: 80px 0;
}

.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.page-cockfighting__step-item {
    background-color: var(--card-background);
    border-left: 5px solid var(--primary-color);
    padding: 25px 30px 25px 70px;
    margin-bottom: 20px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.page-cockfighting__step-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-cockfighting__step-description {
    color: var(--text-main);
}

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

.page-cockfighting__tips-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

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

.page-cockfighting__tip-card {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
}

.page-cockfighting__video-section {
    padding: 80px 0;
    text-align: center;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto 0;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    width: 100%;
}

.page-cockfighting__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

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

.page-cockfighting__faq-item {
    background-color: var(--card-background);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

.page-cockfighting__faq-item summary {
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    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;
    font-size: 1.05rem;
    color: var(--text-main);
}

.page-cockfighting__faq-answer p {
    margin: 0;
}

.page-cockfighting__floating-button {
    position: fixed;
    right: 20px;
    bottom: 80px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 130, 26, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease;
    display: none; /* Hidden by default, shown by JS if needed */
    cursor: pointer;
}

.page-cockfighting__floating-button:hover {
    transform: scale(1.05);
}

.page-cockfighting__floating-login-btn {
    bottom: 20px;
}

/* Highlight color */
.page-cockfighting .highlight {
    color: var(--secondary-color);
}

/* --- Responsive Styles --- */

@media (min-width: 769px) {
    .page-cockfighting__floating-button {
        display: block; /* Show floating buttons on desktop */
    }
}

@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2.2rem, 6vw, 3rem);
    }
    .page-cockfighting__section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-content {
        padding: 20px 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-cockfighting__description {
        font-size: 1rem;
    }
    .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 15px;
        font-size: 1rem;
    }
    .page-cockfighting__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-cockfighting__dark-section,
    .page-cockfighting__about-section,
    .page-cockfighting__features-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__video-section,
    .page-cockfighting__faq-section {
        padding: 40px 0;
    }
    .page-cockfighting__container {
        padding: 0 15px;
    }
    .page-cockfighting__text-block,
    .page-cockfighting__card-description,
    .page-cockfighting__step-description,
    .page-cockfighting__faq-answer {
        font-size: 0.95rem;
    }
    .page-cockfighting__feature-icon {
        width: 200px !important;
        height: auto !important;
    }
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__video-wrapper,
    .page-cockfighting__feature-card,
    .page-cockfighting__tip-card,
    .page-cockfighting__step-item,
    .page-cockfighting__faq-item,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }
    .page-cockfighting__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__floating-button {
        display: block; /* Always show floating buttons on mobile */
        right: 15px;
        bottom: 15px; /* Adjust for footer */
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .page-cockfighting__floating-login-btn {
        bottom: 75px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__features-grid,
    .page-cockfighting__tips-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.5rem, 8vw, 2.2rem);
    }
    .page-cockfighting__section-title {
        font-size: 1.6rem;
    }
    .page-cockfighting__step-item {
        padding: 20px 20px 20px 60px;
    }
    .page-cockfighting__step-item::before {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        left: 15px;
    }
    .page-cockfighting__faq-item summary {
        font-size: 1.1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }
}