/* style/casino.css */

/* Base styles for the casino page content */
.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 from shared.css */
}

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

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

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 700px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-casino__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 30px;
    border-radius: 10px;
    background: rgba(38, 169, 224, 0.1); /* Semi-transparent brand color background */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #ffffff;
}

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
    line-height: 1.2;
}

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

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-casino__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

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

.page-casino__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Why Choose Section */
.page-casino__why-choose-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Explicitly set for this section to maintain dark theme */
}

.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: rgba(255, 255, 255, 0.05); /* Lighter dark background for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-casino__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px; /* Ensure images are not tiny icons */
}

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

.page-casino__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

.page-casino__game-category {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: center;
    color: #ffffff;
}

.page-casino__game-category-title {
    font-size: 2em;
    color: #26A9E0;
    margin-bottom: 20px;
}

.page-casino__game-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
}

.page-casino__game-category-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-casino__full-game-cta {
    text-align: center;
    margin-top: 40px;
}

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

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

.page-casino__promotion-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__promotion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-casino__promotion-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Allows description to take available space */
    margin-bottom: 20px;
}

.page-casino__promotion-card .page-casino__btn-primary {
    margin-top: auto; /* Pushes button to the bottom */
}

.page-casino__full-promo-cta {
    text-align: center;
    margin-top: 40px;
}

/* Security Section */
.page-casino__security-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

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

.page-casino__security-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-casino__security-icon {
    width: 150px; /* Larger than 100px for content images */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

.page-casino__security-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-casino__security-cta {
    text-align: center;
    margin-top: 40px;
}

/* Mobile Section */
.page-casino__mobile-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

.page-casino__mobile-content-wrapper {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap; /* For responsive stacking */
}

.page-casino__mobile-text-content {
    flex: 1;
    min-width: 300px; /* Ensure text content doesn't get too small */
    text-align: left;
}

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

.page-casino__mobile-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    color: #ffffff;
}

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

.page-casino__faq-title {
    font-size: 1.2em;
    color: #26A9E0;
    margin: 0;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.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 {
    margin: 0;
    color: #f0f0f0; /* Ensure paragraph text in FAQ is visible */
}

.page-casino__faq-cta {
    text-align: center;
    margin-top: 40px;
}

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

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

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

.page-casino__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Ensure buttons within CTA section have correct styling */
.page-casino__cta-section .page-casino__btn-primary {
    background-color: #ffffff;
    color: #26A9E0;
    border-color: #ffffff;
}
.page-casino__cta-section .page-casino__btn-primary:hover {
    background-color: #e0e0e0;
    border-color: #e0e0e0;
}

.page-casino__cta-section .page-casino__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}
.page-casino__cta-section .page-casino__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Styles */
@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 {
        height: 500px;
    }
    .page-casino__hero-title {
        font-size: 2.5em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        width: 100%;
        max-width: 300px; /* Constrain width for better look on small screens */
        margin-left: auto;
        margin-right: auto;
        padding: 12px 20px;
    }

    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__section-description {
        font-size: 1em;
    }
    .page-casino__features-grid,
    .page-casino__promotions-grid,
    .page-casino__security-features {
        grid-template-columns: 1fr;
    }
    .page-casino__mobile-content-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .page-casino__mobile-text-content {
        text-align: center;
    }
    .page-casino__game-category {
        padding: 30px 20px;
    }
    .page-casino__faq-question,
    .page-casino__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile image and container adaptation */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__hero-section,
    .page-casino__why-choose-section,
    .page-casino__games-section,
    .page-casino__promotions-section,
    .page-casino__security-section,
    .page-casino__mobile-section,
    .page-casino__faq-section,
    .page-casino__cta-section,
    .page-casino__hero-content,
    .page-casino__feature-card,
    .page-casino__game-category,
    .page-casino__promotion-card,
    .page-casino__security-item,
    .page-casino__mobile-content-wrapper,
    .page-casino__mobile-text-content,
    .page-casino__mobile-image-wrapper,
    .page-casino__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding for content safety */
        padding-right: 15px; /* Add padding for content safety */
    }

    /* Specific overrides for sections that might have different default padding */
    .page-casino__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
        padding-left: 0 !important; /* Hero section might not need horizontal padding if content is centered */
        padding-right: 0 !important;
    }

    /* Mobile button adaptation */
    .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;
      margin-left: auto;
      margin-right: auto;
      /* padding-left and padding-right should be handled by the parent container for consistency */
    }
    
    .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;
      flex-direction: column; /* Stack buttons vertically on mobile */
    }
}