/* style/casino.css */

/* Base Styles for page-casino */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

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

.page-casino__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-casino__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-casino__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__dark-section {
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
    padding: 60px 0;
}

.page-casino a {
    color: #26A9E0;
    text-decoration: none;
}

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

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

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

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

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

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

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Fallback height */
    color: #ffffff;
    text-align: center;
    padding-top: var(--header-offset, 120px);
}

.page-casino__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

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

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

.page-casino__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 20px;
}

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

.page-casino__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__hero-cta a {
    margin: 0 10px;
}

/* About Section */
.page-casino__about-section {
    padding: 80px 0;
}

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

.page-casino__grid-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

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

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

.page-casino__card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-casino__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

.page-casino__card-title a:hover {
    text-decoration: underline;
}

.page-casino__card-text {
    font-size: 0.95em;
    color: #e0e0e0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-casino__card-button {
    margin-top: auto; /* Push button to bottom */
}

/* Advantages Section */
.page-casino__advantages-section {
    padding: 80px 0;
}

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

.page-casino__advantage-item {
    background-color: rgba(38, 169, 224, 0.1); /* Light blue background for dark section */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.page-casino__advantage-item:hover {
    background-color: rgba(38, 169, 224, 0.2);
}

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

.page-casino__advantage-text {
    color: #e0e0e0;
    font-size: 1em;
}

/* Guide Section */
.page-casino__guide-section {
    padding: 80px 0;
    background-color: #0d0d1e;
}

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

.page-casino__guide-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #ffffff;
}

.page-casino__guide-step-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-casino__guide-text {
    font-size: 1em;
    color: #e0e0e0;
}

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

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

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

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

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

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

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

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

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

.page-casino__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    background-color: rgba(38, 169, 224, 0.1);
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: rgba(38, 169, 224, 0.2);
}

.page-casino__faq-question h3 {
    margin: 0;
    color: #ffffff;
}

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

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

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

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

.page-casino__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Final CTA Section */
.page-casino__cta-final-section {
    padding: 80px 0;
    background-color: #0d0d1e;
    text-align: center;
}

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

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

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-casino__hero-section {
        min-height: 450px;
    }
    .page-casino__hero-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__hero-cta a {
        display: block;
        margin: 10px auto;
        width: 100%;
        max-width: 280px;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__text-block {
        font-size: 0.95em;
    }
    .page-casino__image-grid,
    .page-casino__game-cards,
    .page-casino__advantage-grid,
    .page-casino__guide-list,
    .page-casino__promo-cards,
    .page-casino__security-list {
        grid-template-columns: 1fr;
    }
    .page-casino__card-image, .page-casino__grid-image {
        min-width: unset;
        min-height: unset;
    }

    /* Mobile specific overrides for images and videos */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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,
    .page-casino__section,
    .page-casino__card,
    .page-casino__container {
        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: var(--header-offset, 120px) !important; /* Ensure header offset */
    }

    /* Mobile specific overrides for buttons */
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    .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-direction: column !important;
        gap: 10px;
        overflow: hidden !important;
    }
    .page-casino__faq-question {
        padding: 15px 20px;
    }
    .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.8em;
    }
    .page-casino__hero-description {
        font-size: 0.9em;
    }
    .page-casino__section-title {
        font-size: 1.5em;
    }
}