/* style/casino.css */

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

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

.page-casino__section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.page-casino__section-title {
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.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;
    position: relative;
    z-index: 2;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
    padding-bottom: 80px;
    overflow: hidden;
    background-color: #0a0a0a; /* Fallback */
}

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

.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: 1;
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

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

.page-casino__hero-description {
    font-size: 1.4em;
    max-width: 900px;
    margin: 0 auto 40px;
    color: #f0f0f0;
}

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

/* 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;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
}

.page-casino__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

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

/* Intro Section */
.page-casino__intro-section {
    background-color: #ffffff; /* Light background for intro */
    color: #333333;
}

.page-casino__intro-section .page-casino__section-title {
    color: #017439;
}

.page-casino__intro-section .page-casino__section-description,
.page-casino__intro-section p {
    color: #333333;
}

.page-casino__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-casino__text-block {
    text-align: left;
}

.page-casino__text-block p {
    margin-bottom: 20px;
}

.page-casino__image-wrapper {
    text-align: center;
}

.page-casino__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Games Section */
.page-casino__games-section {
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
}

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

.page-casino__game-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark bg */
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-casino__game-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

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

.page-casino__game-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-casino__game-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__game-title a:hover {
    color: #017439;
}

.page-casino__game-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-casino__button-group {
    text-align: center;
    margin-top: 50px;
}

/* Advantages Section */
.page-casino__advantages-section {
    background-color: #ffffff;
    color: #333333;
}

.page-casino__advantages-section .page-casino__section-title {
    color: #017439;
}

.page-casino__advantages-section .page-casino__section-description {
    color: #333333;
}

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

.page-casino__advantage-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.page-casino__advantage-card:hover {
    transform: translateY(-5px);
}

.page-casino__advantage-icon {
    width: 200px; /* Min width */
    height: 150px; /* Adjusted to fit the 200x200 min rule, but can be smaller if aspect ratio demands */
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.page-casino__advantage-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-casino__advantage-text {
    font-size: 0.95em;
    color: #555555;
}

/* Guide Section */
.page-casino__guide-section {
    background-color: #0a0a0a;
    color: #ffffff;
}

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

.page-casino__guide-step {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.page-casino__step-icon {
    font-size: 3em;
    font-weight: bold;
    color: #017439;
    margin-bottom: 15px;
    display: inline-block;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background-color: rgba(1, 116, 57, 0.15);
}

.page-casino__step-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-casino__step-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-casino__step-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-top: 15px;
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: #ffffff;
    color: #333333;
}

.page-casino__faq-section .page-casino__section-title {
    color: #017439;
}

.page-casino__faq-section .page-casino__section-description {
    color: #333333;
}

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

.page-casino__faq-item {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
}

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

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

.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.3s ease, padding 0.3s ease;
    color: #555555;
}

.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;
    color: #555555;
}

/* CTA Section */
.page-casino__cta-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    text-align: center;
}

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

/* Floating Buttons for Mobile */
.page-casino__floating-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none; /* Hidden by default, shown on mobile */
    transition: transform 0.3s ease-in-out;
}

.page-casino__floating-buttons--hidden {
    transform: translateY(100%);
}

.page-casino__floating-btn {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    margin: 0 5px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.page-casino__floating-register-btn {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register font color */
}

.page-casino__floating-login-btn {
    background-color: #C30808; /* Login color */
    color: #FFFF00; /* Login font color */
}

/* Responsive Styles */
@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: 2.2em;
    }
    .page-casino__content-grid {
        grid-template-columns: 1fr;
    }
    .page-casino__text-block, .page-casino__image-wrapper {
        text-align: center;
    }
    .page-casino__image-wrapper {
        order: -1; /* Image first on smaller screens for intro */
    }
}

@media (max-width: 768px) {
    .page-casino__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below header on mobile */
    }
    .page-casino__hero-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__btn-primary, .page-casino__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-casino__section {
        padding: 60px 0;
    }
    .page-casino__section-title {
        font-size: 1.8em;
    }
    .page-casino__section-description {
        font-size: 0.9em;
    }

    .page-casino__intro-section .page-casino__content-grid {
        grid-template-columns: 1fr;
    }

    .page-casino__games-grid,
    .page-casino__advantages-grid,
    .page-casino__guide-steps {
        grid-template-columns: 1fr;
    }

    /* Ensure all images are responsive and meet minimum size */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
        object-fit: cover; /* Maintain aspect ratio and fill space */
    }
    .page-casino__game-image, .page-casino__step-image {
        height: 200px !important; /* Fixed height for mobile game/step images */
        min-height: 200px !important;
    }
    .page-casino__advantage-icon {
        width: 100% !important; /* Make sure it scales */
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
        object-fit: contain !important;
    }

    /* Container padding for mobile to prevent overflow */
    .page-casino__container,
    .page-casino__section,
    .page-casino__game-card,
    .page-casino__advantage-card,
    .page-casino__guide-step {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll for these elements */
    }
    
    /* Specific override for game/advantage/guide cards that have internal padding */
    .page-casino__game-card,
    .page-casino__advantage-card,
    .page-casino__guide-step {
        padding: 20px !important; /* Restore internal padding */
    }

    .page-casino__floating-buttons {
        display: flex; /* Show floating buttons on mobile */
    }
}

@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;
    }
    .page-casino__floating-btn {
        font-size: 0.9em;
        padding: 10px 0;
    }
}