/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default dark text on light background */
    line-height: 1.6;
    background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    overflow: hidden;
    text-align: center;
}

.page-casino__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Make it subtle */
}

.page-casino__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

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

.page-casino__hero-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

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

.page-casino__section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0; /* Primary brand color */
}

.page-casino__section-title--light {
    color: #ffffff;
}

.page-casino__section-description {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-casino__section-description--light {
    color: #f0f0f0;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-casino__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-casino__btn-primary:hover {
    background-color: #d16b05;
    border-color: #d16b05;
    transform: translateY(-2px);
}

.page-casino__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.3rem;
}

.page-casino__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-casino__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.page-casino__btn-tertiary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-casino__btn-tertiary:hover {
    background-color: #1f8ec4;
    border-color: #1f8ec4;
    transform: translateY(-2px);
}

/* Video Section */
.page-casino__video-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

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

.page-casino__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* Make sure the link is above the video for clicking */
  cursor: pointer;
  background: transparent; /* Make it invisible */
}

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

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

.page-casino__game-card {
    background-color: #fefefe;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-casino__game-title {
    font-size: 1.5rem;
    color: #26A9E0;
    margin-bottom: 15px;
    padding: 0 20px;
}

.page-casino__game-text {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1; /* Allows text to take available space */
    padding: 0 20px;
}

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

.page-casino__promo-content {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-casino__promo-text {
    flex: 1;
    min-width: 300px;
}

.page-casino__promo-subtitle {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-casino__promo-text p {
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-casino__promo-image {
    flex: 1;
    min-width: 400px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: block; /* Ensure it respects max-width */
}

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

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

.page-casino__feature-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-casino__feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #26A9E0;
}

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

.page-casino__feature-text {
    font-size: 1rem;
    color: #555555;
}

.page-casino__why-choose-image {
    width: 100%;
    max-width: 800px;
    margin: 50px auto 0 auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-casino__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: #fefefe;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #eaf7ff;
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: #d8efff;
}

.page-casino__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg); /* Plus to X */
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background-color: #fefefe;
}

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

.page-casino__faq-answer p {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 0;
}

/* Call to Action Section */
.page-casino__cta-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3rem;
    }
    .page-casino__section-title {
        font-size: 2rem;
    }
    .page-casino__promo-content {
        flex-direction: column;
        text-align: center;
    }
    .page-casino__promo-image {
        min-width: unset;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
}

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

    /* Hero Section */
    .page-casino__hero-section {
        min-height: 500px;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-casino__hero-title {
        font-size: 2.2rem;
    }
    .page-casino__hero-description {
        font-size: 1.1rem;
    }
    .page-casino__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-tertiary,
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-casino__btn-primary--large {
        font-size: 1.2rem;
        padding: 15px 30px;
    }

    /* Common Section Adjustments */
    .page-casino__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-casino__section-title {
        font-size: 1.8rem;
    }
    .page-casino__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Images responsiveness */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__game-image {
        height: auto !important; /* Allow auto height on mobile */
    }
    .page-casino__promo-image,
    .page-casino__why-choose-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Video Responsiveness */
    .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-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }

    /* Game Grid */
    .page-casino__game-grid {
        grid-template-columns: 1fr;
    }
    .page-casino__game-card {
        padding-bottom: 20px;
    }

    /* Promotions Section */
    .page-casino__promo-content {
        gap: 30px;
    }
    .page-casino__promo-subtitle {
        font-size: 1.5rem;
    }

    /* Why Choose Section */
    .page-casino__features-grid {
        grid-template-columns: 1fr;
    }
    .page-casino__feature-item {
        padding: 25px;
    }

    /* FAQ Section */
    .page-casino__faq-list {
      padding: 0;
    }
    .page-casino__faq-item {
      margin-left: 0;
      margin-right: 0;
    }
    .page-casino__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    .page-casino__faq-toggle {
        font-size: 1.5rem;
    }
    .page-casino__faq-answer {
        padding: 0 20px;
    }
    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-casino__hero-title {
        font-size: 1.8rem;
    }
    .page-casino__hero-description {
        font-size: 1rem;
    }
    .page-casino__section-title {
        font-size: 1.5rem;
    }
    .page-casino__section-description {
        font-size: 0.9rem;
    }
}