/* style/casino.css */

/* Variables for colors (from provided palette) */
:root {
    --phdream-main: #F2C14E;
    --phdream-auxiliary: #FFD36B;
    --phdream-card-bg: #111111;
    --phdream-background: #0A0A0A;
    --phdream-text-main: #FFF6D6;
    --phdream-border: #3A2A12;
    --phdream-glow: #FFD36B;
    --phdream-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --text-on-dark: #FFF6D6; /* Explicitly light text for dark backgrounds */
    --text-on-light: #333333; /* Explicitly dark text for light backgrounds */
    --header-offset: 122px; /* Default from shared.css, for reference */
}

/* Base styles for the casino page content */
.page-casino {
    background-color: var(--phdream-background); /* Very dark background */
    color: var(--phdream-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 0; /* body already handles padding-top from header-offset */
}

.page-casino__section-title {
    font-size: 2.5em;
    color: var(--phdream-main);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-casino__section-description {
    font-size: 1.1em;
    color: var(--phdream-text-main);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-casino__btn-primary {
    background: var(--phdream-btn-gradient);
    color: #ffffff; /* White text on gradient button */
    border: 2px solid transparent;
}

.page-casino__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-casino__btn-secondary {
    background: transparent;
    color: var(--phdream-main);
    border: 2px solid var(--phdream-main);
}

.page-casino__btn-secondary:hover {
    background: var(--phdream-main);
    color: #0A0A0A; /* Dark text on main color background */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    padding-top: 10px; /* Small padding, body handles --header-offset */
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure no overflow from image */
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure wrapper doesn't overflow */
    margin-bottom: 40px; /* Space between image and content */
    overflow: hidden;
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height for hero image */
}

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

.page-casino__main-title {
    font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size */
    color: var(--phdream-main);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-casino__intro-text {
    font-size: 1.2em;
    color: var(--phdream-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
}

/* General Section Styling */
.page-casino__features-section,
.page-casino__how-to-start-section,
.page-casino__games-section,
.page-casino__app-section,
.page-casino__responsible-gaming-section,
.page-casino__customer-support-section,
.page-casino__faq-section,
.page-casino__cta-bottom-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

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

.page-casino__feature-card {
    background-color: var(--phdream-card-bg); /* Dark card background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--phdream-border);
}

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

.page-casino__feature-icon {
    width: 80px; /* Example size, adjust as needed */
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--phdream-glow)); /* Only allowed for glow, not color change */
}

.page-casino__feature-title {
    font-size: 1.5em;
    color: var(--phdream-main);
    margin-bottom: 15px;
}

.page-casino__feature-text {
    font-size: 1em;
    color: var(--phdream-text-main);
}

/* How to Start Section */
.page-casino__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__step-card {
    background-color: var(--phdream-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--phdream-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
}

.page-casino__step-title {
    font-size: 1.6em;
    color: var(--phdream-main);
    margin-bottom: 15px;
}

.page-casino__step-text {
    font-size: 1em;
    color: var(--phdream-text-main);
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-casino__step-text a {
    color: var(--phdream-auxiliary);
    text-decoration: underline;
}

.page-casino__step-text a:hover {
    color: var(--phdream-main);
}

/* Games Section */
.page-casino__game-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.page-casino__category-item {
    display: flex;
    align-items: center;
    background-color: var(--phdream-card-bg);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--phdream-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-casino__category-item:hover {
    background-color: rgba(242, 193, 78, 0.1);
    border-color: var(--phdream-main);
}

.page-casino__category-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    filter: drop-shadow(0 0 3px var(--phdream-glow));
}

.page-casino__category-link {
    color: var(--phdream-text-main);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
}

.page-casino__category-link:hover {
    color: var(--phdream-main);
}

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

.page-casino__game-card {
    background-color: var(--phdream-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--phdream-border);
    display: flex;
    flex-direction: column;
}

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

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

.page-casino__game-title {
    font-size: 1.4em;
    color: var(--phdream-main);
    padding: 20px 20px 10px 20px;
}

.page-casino__game-description {
    font-size: 0.95em;
    color: var(--phdream-text-main);
    padding: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-secondary {
    margin: 0 20px 20px 20px;
    width: calc(100% - 40px);
}

/* App Section */
.page-casino__app-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    justify-content: center;
}

.page-casino__app-text {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.page-casino__app-subtitle {
    font-size: 1.8em;
    color: var(--phdream-main);
    margin-bottom: 20px;
}

.page-casino__app-features ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-casino__app-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: var(--phdream-text-main);
    font-size: 1.1em;
}

.page-casino__app-features li img {
    
    
    margin-right: 15px;
    filter: drop-shadow(0 0 3px var(--phdream-glow));
}

.page-casino__app-review-link {
    margin-top: 20px;
    font-size: 1em;
    color: var(--phdream-text-main);
}

.page-casino__app-review-link a {
    color: var(--phdream-auxiliary);
    text-decoration: underline;
}

.page-casino__app-review-link a:hover {
    color: var(--phdream-main);
}

.page-casino__app-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
}

.page-casino__app-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--phdream-border);
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-content {
    background-color: var(--phdream-card-bg);
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--phdream-border);
    color: var(--phdream-text-main);
}

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

.page-casino__responsible-gaming-content ul {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-casino__responsible-gaming-content li {
    margin-bottom: 8px;
    font-size: 1em;
}

.page-casino__responsible-gaming-content a {
    color: var(--phdream-auxiliary);
    text-decoration: underline;
}

.page-casino__responsible-gaming-content a:hover {
    color: var(--phdream-main);
}

/* Customer Support Section */
.page-casino__support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__support-card {
    background-color: var(--phdream-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--phdream-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__support-title {
    font-size: 1.5em;
    color: var(--phdream-main);
    margin-bottom: 15px;
}

.page-casino__support-text {
    font-size: 1em;
    color: var(--phdream-text-main);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* FAQ Section */
.page-casino__faq-list {
    margin-top: 40px;
    border: 1px solid var(--phdream-border);
    border-radius: 12px;
    overflow: hidden;
}

.page-casino__faq-item {
    background-color: var(--phdream-card-bg);
    border-bottom: 1px solid var(--phdream-border);
}

.page-casino__faq-item:last-child {
    border-bottom: none;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.05);
}

.page-casino__faq-question h3 {
    font-size: 1.2em;
    color: var(--phdream-main);
    margin: 0;
    flex-grow: 1;
}

.page-casino__faq-toggle {
    font-size: 1.8em;
    color: var(--phdream-auxiliary);
    margin-left: 20px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg);
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--phdream-text-main);
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Sufficiently large for content */
    padding: 15px 20px 20px 20px;
}

.page-casino__faq-answer p {
    margin: 0;
    font-size: 0.95em;
}

.page-casino__faq-answer a {
    color: var(--phdream-auxiliary);
    text-decoration: underline;
}

.page-casino__faq-answer a:hover {
    color: var(--phdream-main);
}

/* Bottom CTA Section */
.page-casino__cta-bottom-section {
    text-align: center;
    margin-bottom: 80px;
}

.page-casino__cta-bottom-section .page-casino__cta-buttons {
    margin-top: 40px;
}

/* General Link Styling */
.page-casino a {
    color: var(--phdream-auxiliary);
    text-decoration: none;
}

.page-casino a:hover {
    color: var(--phdream-main);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-casino__hero-image {
        max-height: 500px;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-casino__hero-section {
        padding-top: 10px !important; /* Ensure small padding, body handles --header-offset */
    }

    .page-casino__hero-image {
        max-height: 400px;
    }

    .page-casino__main-title {
        font-size: clamp(2em, 8vw, 2.8em);
    }

    .page-casino__intro-text {
        font-size: 1.1em;
    }

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__features-section,
    .page-casino__how-to-start-section,
    .page-casino__games-section,
    .page-casino__app-section,
    .page-casino__responsible-gaming-section,
    .page-casino__customer-support-section,
    .page-casino__faq-section,
    .page-casino__cta-bottom-section {
        padding: 0 15px;
        margin: 40px auto;
    }

    .page-casino__section-title {
        font-size: 1.8em;
    }

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

    .page-casino__feature-card,
    .page-casino__step-card,
    .page-casino__game-card,
    .page-casino__support-card {
        padding: 25px;
    }

    .page-casino__feature-icon {
        width: 60px;
        height: 60px;
    }

    .page-casino__feature-title,
    .page-casino__step-title,
    .page-casino__game-title,
    .page-casino__support-title {
        font-size: 1.3em;
    }

    .page-casino__game-image {
        height: 180px;
    }

    .page-casino__app-content {
        flex-direction: column-reverse; /* Image above text on mobile */
    }

    .page-casino__app-text {
        max-width: 100%;
    }

    .page-casino__app-image-wrapper {
        max-width: 300px;
    }

    .page-casino__app-image {
        border-radius: 10px;
    }

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

    .page-casino__faq-question h3 {
        font-size: 1.1em;
    }

    .page-casino__faq-toggle {
        font-size: 1.5em;
        width: 25px;
    }

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

    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 10px 15px 15px 15px;
    }

    /* All images must be responsive */
    .page-casino img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__hero-image-wrapper,
    .page-casino__app-image-wrapper,
    .page-casino__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding added to individual elements as needed, not container */
    }
}

/* Ensure content area images are at least 200x200px, except specified exceptions */
.page-casino__feature-icon,
.page-casino__app-features li img {
    /* These are small icons, allowed by specific exceptions (30x30, 80x80) */
    /* No need to enforce 200x200 for them */
}

.page-casino__game-image {
    /* Enforced minimum size via height: 200px and width: 100% (which will be >200px on desktop) */
}

/* For any other img not explicitly sized, ensure it's large enough */
.page-casino img:not(.page-casino__category-icon):not(.page-casino__feature-icon):not(.page-casino__app-features li img) {
    min-width: 200px; /* General rule for content images */
    min-height: 200px;
}