/* style/casino.css */

/* Custom Variables */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color-page: #08160F; /* Using a distinct name to avoid conflict with shared.css body background */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-casino {
    background-color: var(--background-color-page); /* Use the specific page background color */
    color: var(--text-main); /* Default text color for the page, light text on dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from layout issues */
}

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    background-color: var(--deep-green); /* Fallback background if image fails */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    text-align: center;
}

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

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
}

.page-casino__hero-content {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

.page-casino__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size for H1 */
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-casino__description {
    font-size: 1.2em;
    color: var(--text-main);
    margin-bottom: 30px;
}

.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

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

.page-casino__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-casino__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-casino__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-casino__btn-secondary:hover {
    background-color: var(--gold-color);
    color: var(--background-color-page);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

/* General Section Styling */
.page-casino__introduction-section,
.page-casino__games-section,
.page-casino__guide-section,
.page-casino__promotions-section,
.page-casino__security-section,
.page-casino__support-section,
.page-casino__faq-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--divider-color);
}

.page-casino__introduction-section {
    background-color: var(--card-bg);
}

.page-casino__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-casino__text-block {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-casino__text-block a {
    color: var(--gold-color);
    text-decoration: none;
    font-weight: bold;
}

.page-casino__text-block a:hover {
    text-decoration: underline;
}

/* Game Categories */
.page-casino__game-category {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    color: var(--text-main);
}

.page-casino__game-category-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.page-casino__game-image,
.page-casino__guide-image,
.page-casino__promotion-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 25px;
    min-width: 200px; /* Ensure min image size */
    min-height: 200px; /* Ensure min image size */
    object-fit: cover;
}

/* Guide Section */
.page-casino__step-by-step {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.page-casino__step-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.page-casino__step-list {
    list-style: decimal;
    margin-left: 20px;
    color: var(--text-secondary);
    font-size: 1.05em;
}

.page-casino__step-list li {
    margin-bottom: 10px;
}

.page-casino__step-list li strong {
    color: var(--text-main);
}

/* Promotions Section */
.page-casino__promotion-list {
    list-style: disc;
    margin-left: 20px;
    color: var(--text-secondary);
    font-size: 1.05em;
}

.page-casino__promotion-list li {
    margin-bottom: 10px;
}

/* Security Section */
.page-casino__security-features,
.page-casino__support-channels {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-casino__security-features li,
.page-casino__support-channels li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-casino__security-features li::before,
.page-casino__support-channels li::before {
    content: '✅'; /* Checkmark icon */
    margin-right: 10px;
    color: var(--glow-color);
    font-size: 1.2em;
}

/* FAQ Section */
.page-casino__faq-list {
    margin-top: 30px;
}

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--border-color);
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: var(--primary-color);
}

.page-casino__faq-item[open] .page-casino__faq-question {
    border-bottom: 1px solid var(--border-color);
}

.page-casino__faq-qtext {
    flex-grow: 1;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--gold-color);
    margin-left: 15px;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-casino__container {
        padding: 0 15px; /* Adjust padding for mobile */
    }

    .page-casino__hero-section {
        padding-bottom: 40px;
    }

    .page-casino__main-title {
        font-size: 2em; /* Smaller H1 on mobile */
    }

    .page-casino__description {
        font-size: 1em;
    }

    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        width: 100% !important; /* Full width buttons on mobile */
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-casino__introduction-section,
    .page-casino__games-section,
    .page-casino__guide-section,
    .page-casino__promotions-section,
    .page-casino__security-section,
    .page-casino__support-section,
    .page-casino__faq-section {
        padding: 40px 0;
    }

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

    .page-casino__game-category,
    .page-casino__step-by-step {
        padding: 20px;
    }

    .page-casino__game-category-title,
    .page-casino__step-title {
        font-size: 1.4em;
    }

    .page-casino__text-block,
    .page-casino__step-list,
    .page-casino__promotion-list,
    .page-casino__security-features li,
    .page-casino__support-channels li,
    .page-casino__faq-answer {
        font-size: 0.95em;
    }

    .page-casino__faq-question {
        font-size: 1em;
        padding: 15px;
    }

    /* Mobile image responsiveness */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min image size is still respected */
        min-height: 200px !important; /* Ensure min image size is still respected */
    }

    /* Mobile container responsiveness for images/videos */
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__hero-image-wrapper,
    .page-casino__game-category,
    .page-casino__step-by-step,
    .page-casino__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Important for preventing horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile video responsiveness (if any were added, not in this draft) */
    .page-casino video,
    .page-casino__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-casino__video-section,
    .page-casino__video-container,
    .page-casino__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-casino__video-section {
      padding-top: 10px !important; /* Small top padding for video section */
    }

    /* Mobile button responsiveness */
    .page-casino__cta-button,
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino a[class*="button"],
    .page-casino a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
    }
    .page-casino__cta-buttons,
    .page-casino__button-group,
    .page-casino__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-casino__cta-buttons {
      flex-direction: column !important; /* Stack buttons vertically on mobile */
    }
}