/* style/casino.css */

/* Variables from custom colors */
:root {
    --hip-club-primary: #113B7A;
    --hip-club-secondary: #1D5FD1;
    --hip-club-text-main: #F3F8FF;
    --hip-club-text-secondary: #AFC4E8;
    --hip-club-card-bg: #10233F;
    --hip-club-border: #244D84;
    --hip-club-glow: #4FA8FF;
    --hip-club-gold: #F2C14E;
    --hip-club-divider: #1B3357;
    --hip-club-deep-navy: #08162B;
    --hip-club-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-casino {
    background-color: var(--hip-club-deep-navy); /* Assumed body background from shared.css is dark */
    color: var(--hip-club-text-secondary); /* Default text color for the page */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--hip-club-deep-navy);
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for text readability, not color change */
}

.page-casino__hero-content {
    position: relative;
    text-align: center;
    padding: 40px 20px 80px;
    max-width: 900px;
    margin: -80px auto 0; /* Negative margin to pull content slightly over the bottom of the image */
    background: linear-gradient(to top, var(--hip-club-deep-navy) 80%, transparent); /* Gradient fade to deep navy */
    border-radius: 10px 10px 0 0;
}

.page-casino__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: var(--hip-club-text-main);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
    font-size: 1.1rem;
    color: var(--hip-club-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__game-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
}

.page-casino__btn-primary {
    background: var(--hip-club-button-gradient);
    color: var(--hip-club-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-casino__btn-secondary {
    background: transparent;
    color: var(--hip-club-gold);
    border: 2px solid var(--hip-club-gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary:hover {
    background: var(--hip-club-gold);
    color: var(--hip-club-deep-navy);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Section Titles & Descriptions */
.page-casino__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--hip-club-text-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    padding-top: 40px;
}

.page-casino__section-description {
    font-size: 1.05rem;
    color: var(--hip-club-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Games Overview Section */
.page-casino__games-overview {
    padding: 60px 0;
    background-color: var(--hip-club-deep-navy);
}

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

.page-casino__game-card {
    background-color: var(--hip-club-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-casino__game-image {
    width: 100%;
    height: 200px; /* Fixed height for cards */
    object-fit: cover;
    display: block;
}

.page-casino__game-title {
    font-size: 1.4rem;
    color: var(--hip-club-text-main);
    margin: 20px 15px 10px;
    font-weight: 600;
}

.page-casino__game-text {
    font-size: 0.95rem;
    color: var(--hip-club-text-secondary);
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-casino__game-btn {
    background: var(--hip-club-secondary);
    color: var(--hip-club-text-main);
    padding: 12px 25px;
    margin: 0 15px 20px;
    border-radius: 6px;
    font-size: 1rem;
    align-self: center;
    width: calc(100% - 30px);
}

.page-casino__game-btn:hover {
    background: var(--hip-club-primary);
    transform: scale(1.02);
}

/* Features Section */
.page-casino__features-section {
    padding: 60px 0;
    background-color: var(--hip-club-primary);
}

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

.page-casino__feature-item {
    background-color: var(--hip-club-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-casino__feature-item:hover {
    transform: translateY(-5px);
}

.page-casino__feature-heading {
    font-size: 1.5rem;
    color: var(--hip-club-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-casino__feature-text {
    font-size: 1rem;
    color: var(--hip-club-text-secondary);
}

/* CTA Banner */
.page-casino__cta-banner {
    background: linear-gradient(135deg, var(--hip-club-primary), var(--hip-club-secondary));
    padding: 80px 20px;
    text-align: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-casino__cta-title {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    color: var(--hip-club-text-main);
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-casino__cta-text {
    font-size: 1.2rem;
    color: var(--hip-club-text-main);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
    border-radius: 10px;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 60px 0 80px;
    background-color: var(--hip-club-deep-navy);
}

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

details.page-casino__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--hip-club-border);
    overflow: hidden;
    background: var(--hip-club-card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

details.page-casino__faq-item summary.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--hip-club-text-main);
}

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

details.page-casino__faq-item summary.page-casino__faq-question:hover {
    background: rgba(var(--hip-club-primary), 0.5); /* Lighter hover for dark background */
}

.page-casino__faq-qtext {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

.page-casino__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: var(--hip-club-gold);
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 20px 20px;
    background: rgba(var(--hip-club-deep-navy), 0.7); /* Slightly lighter background for answer */
    border-radius: 0 0 5px 5px;
    color: var(--hip-club-text-secondary);
}

/* Universal image styles */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* General adjustments for mobile */
    .page-casino__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino {
        font-size: 15px;
        line-height: 1.6;
    }

    /* Hero Section */
    .page-casino__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-casino__hero-content {
        padding: 30px 15px 60px;
        margin-top: -60px; /* Adjust negative margin */
    }

    .page-casino__main-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .page-casino__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-casino__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 25px;
        font-size: 1rem;
    }

    /* Section Titles & Descriptions */
    .page-casino__section-title {
        font-size: 2rem;
        padding-top: 30px;
        margin-bottom: 15px;
    }

    .page-casino__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Games Overview Section */
    .page-casino__games-overview {
        padding: 40px 0;
    }

    .page-casino__games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-casino__game-image {
        height: 180px; /* Adjust height for mobile cards */
    }

    .page-casino__game-title {
        font-size: 1.3rem;
        margin: 15px 10px 8px;
    }

    .page-casino__game-text {
        font-size: 0.9rem;
        padding: 0 10px 15px;
    }

    .page-casino__game-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        margin: 0 10px 15px;
        width: calc(100% - 20px);
    }

    /* Features Section */
    .page-casino__features-section {
        padding: 40px 0;
    }

    .page-casino__features-list {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-casino__feature-item {
        padding: 25px;
    }

    .page-casino__feature-heading {
        font-size: 1.4rem;
    }

    .page-casino__feature-text {
        font-size: 0.95rem;
    }

    /* CTA Banner */
    .page-casino__cta-banner {
        padding: 60px 15px;
    }

    .page-casino__cta-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .page-casino__cta-text {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }

    .page-casino__btn-large {
        padding: 16px 30px;
        font-size: 1.1rem;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* FAQ Section */
    .page-casino__faq-section {
        padding: 40px 0 60px;
    }

    .page-casino__faq-list {
        margin-top: 30px;
    }

    details.page-casino__faq-item summary.page-casino__faq-question {
        padding: 15px;
    }

    .page-casino__faq-qtext {
        font-size: 1rem;
    }

    details.page-casino__faq-item .page-casino__faq-answer {
        padding: 0 15px 15px;
    }

    /* Universal image styles for mobile */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}