/* style/casino.css */

/* Base styles for the page-casino scope */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Ensure all content containers are within max-width */
.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-casino__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

/* Text blocks */
.page-casino__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #ffffff; /* Ensure contrast on dark background */
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__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;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

.page-casino__btn-primary {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for contrast */
    border: 2px solid #26A9E0;
}

.page-casino__btn-primary:hover {
    background-color: #1e87c2;
    border-color: #1e87c2;
}

.page-casino__btn-secondary {
    background-color: #ffffff; /* White background */
    color: #26A9E0; /* Brand primary color for text */
    border: 2px solid #26A9E0;
}

.page-casino__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87c2;
    border-color: #1e87c2;
}

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    padding: 80px 0;
    background-color: #000000; /* Dark background */
    color: #ffffff; /* White text for contrast */
    overflow: hidden;
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-casino__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Darken image for text readability */
}

/* About Section */
.page-casino__about-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
    color: #ffffff;
}

.page-casino__video-wrapper {
    margin: 40px auto;
    max-width: 800px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}

.page-casino__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 1; /* Ensure link is clickable over video */
}

.page-casino__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-casino__video-caption {
  text-align: center;
  margin-top: 15px;
  font-style: italic;
  color: #cccccc;
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 0;
    background-color: #000000; /* Dark background */
    color: #ffffff;
}

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

.page-casino__game-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-casino__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-casino__card-description {
    font-size: 0.95em;
    color: #e0e0e0;
    padding: 0 15px;
    text-align: justify;
    flex-grow: 1;
}

/* Promotions Section */
.page-casino__promotions-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    color: #ffffff;
}

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

.page-casino__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* Why Choose Section */
.page-casino__why-choose-section {
    padding: 80px 0;
    background-color: #000000;
    color: #ffffff;
}

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

.page-casino__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-casino__feature-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-casino__feature-description {
    font-size: 1em;
    color: #e0e0e0;
    text-align: justify;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    color: #ffffff;
}

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

.page-casino__tip-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__tip-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
    background-color: #000000;
    color: #ffffff;
}

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

.page-casino__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-casino__faq-qtext {
    flex-grow: 1;
    color: #ffffff; /* Ensure text is white */
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar, or just to - */
}

.page-casino__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: #e0e0e0;
    text-align: justify;
}

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

/* Final CTA Section */
.page-casino__cta-final-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    color: #ffffff;
}

.page-casino__text-center {
    text-align: center;
}

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

@media (max-width: 768px) {
    .page-casino__hero-section {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }

    .page-casino__hero-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__hero-content {
        order: 2; /* Content below image on mobile */
        max-width: 100%;
    }
    .page-casino__hero-image-wrapper {
        position: relative;
        height: 300px; /* Fixed height for mobile image */
        order: 1;
        margin-bottom: 30px;
    }

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

    .page-casino__text-block,
    .page-casino__card-description,
    .page-casino__feature-description,
    .page-casino__faq-answer p {
        font-size: 15px;
    }

    .page-casino__game-categories,
    .page-casino__promo-grid,
    .page-casino__feature-list,
    .page-casino__responsible-tips {
        grid-template-columns: 1fr;
    }

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        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-casino__container,
    .page-casino__video-wrapper,
    .page-casino__hero-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

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

    /* All videos responsive */
    .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;
    }

    /* Content area images minimum size constraint */
    .page-casino__game-image,
    .page-casino__promo-image,
    .page-casino__tip-image {
      min-width: 200px !important;
      min-height: 200px !important;
    }

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

/* Color Contrast Fixes (as per instructions) */
.page-casino__dark-bg {
    color: #ffffff; /* Deep dark background, use white text */
}

.page-casino__light-bg {
    color: #ffffff; /* Slightly lighter dark background, still use white text for contrast with body #000000 */
}

/* Specific button colors and contrasts are already set */