/* style/casino.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --bg-dark: #1a1a1a; /* Adjusted for better contrast on dark sections */
    --btn-login: #EA7C07;
}

.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

.page-casino__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-casino__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    overflow: hidden;
}

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 900px;
    padding: 20px;
}

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

.page-casino__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    font-weight: 300;
}

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

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

.page-casino__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

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

.page-casino__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-casino__btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 0;
    font-size: 1em;
    text-decoration: underline;
}

.page-casino__btn-link:hover {
    color: #1e87b7;
}

.page-casino__btn-center {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 300px;
}

/* Section Styles */
.page-casino__about-section,
.page-casino__guide-section,
.page-casino__security-section,
.page-casino__faq-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-casino__games-section,
.page-casino__promo-section,
.page-casino__mobile-section,
.page-casino__cta-section {
    padding: 60px 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.page-casino__games-section .page-casino__section-title,
.page-casino__promo-section .page-casino__section-title,
.page-casino__mobile-section .page-casino__section-title,
.page-casino__cta-section .page-casino__section-title {
    color: var(--text-light);
}

.page-casino__games-section .page-casino__text-block,
.page-casino__promo-section .page-casino__text-block,
.page-casino__mobile-section .page-casino__text-block,
.page-casino__cta-section .page-casino__text-block {
    color: rgba(255, 255, 255, 0.8);
}

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

.page-casino__game-card {
    background-color: #262626; /* Darker background for cards on dark section */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
}

.page-casino__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 10px 10px 0 0;
}

.page-casino__game-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-casino__game-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Guide Section */
.page-casino__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-casino__step-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-casino__step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-casino__step-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-casino__step-description {
    font-size: 1em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Promo Section */
.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: #262626; /* Darker background for cards on dark section */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
}

.page-casino__promo-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 10px 10px 0 0;
}

.page-casino__promo-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-casino__promo-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    padding: 0 15px;
}

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

.page-casino__feature-item {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-casino__feature-icon {
    width: 100%;
    max-width: 150px; /* Adjust max-width for icons */
    height: auto;
    margin-bottom: 20px;
}

.page-casino__feature-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-casino__feature-description {
    font-size: 1em;
    color: var(--text-dark);
}

/* Mobile Section */
.page-casino__mobile-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-casino__mobile-text {
    flex: 1;
}

.page-casino__mobile-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-casino__mobile-image {
    width: 100%;
    max-width: 400px; /* Max width for mobile image */
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-dark);
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-question {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-bottom: none;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    color: var(--text-light);
    transform: rotate(45deg);
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-dark);
}

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

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

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

/* Global image settings to prevent small icons */
.page-casino img:not(.page-casino__feature-icon) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Ensure images don't have color filters */
.page-casino img {
    filter: none !important;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 2.8em;
    }
    .page-casino__hero-description {
        font-size: 1.2em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__text-block {
        font-size: 1em;
    }
    .page-casino__mobile-content {
        flex-direction: column-reverse;
    }
    .page-casino__mobile-image-wrapper {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-casino__hero-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-casino__cta-buttons,
    .page-casino__hero-buttons {
        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__mobile-content {
        flex-direction: column-reverse;
    }
    .page-casino__mobile-image-wrapper {
        margin-bottom: 30px;
    }
    .page-casino img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__game-image,
    .page-casino__promo-image,
    .page-casino__feature-icon,
    .page-casino__mobile-image {
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-casino__game-card,
    .page-casino__promo-card,
    .page-casino__step-item,
    .page-casino__feature-item,
    .page-casino__faq-item,
    .page-casino__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
}

@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;
    }
}