/* style/casino.css */

/* Base styles for the page content */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Must use light text for dark body background from shared.css */
    background: var(--dark-bg-1); /* Inherit from shared.css */
}

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

.page-casino__section-title {
    font-size: 2.5rem;
    color: #ffffff; /* Default for dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-casino__section-subtitle {
    font-size: 1.2rem;
    color: #f0f0f0; /* Slightly lighter for subtitle */
    text-align: center;
    margin-bottom: 40px;
}

/* Sections with light background */
.page-casino__about-section, 
.page-casino__live-dealer-section, 
.page-casino__security-section, 
.page-casino__support-section, 
.page-casino__cta-final-section {
    padding: 80px 0;
    background: #FFFFFF; /* Light background for these sections */
    color: #333333; /* Dark text for light background */
}

.page-casino__about-section .page-casino__section-title,
.page-casino__live-dealer-section .page-casino__section-title,
.page-casino__security-section .page-casino__section-title,
.page-casino__support-section .page-casino__section-title,
.page-casino__cta-final-section .page-casino__section-title {
    color: #017439; /* Brand color for titles on light background */
}

.page-casino__about-section .page-casino__section-subtitle,
.page-casino__live-dealer-section .page-casino__section-subtitle,
.page-casino__security-section .page-casino__section-subtitle,
.page-casino__support-section .page-casino__section-subtitle,
.page-casino__cta-final-section .page-casino__section-subtitle {
    color: #666666; /* Darker grey for subtitles on light background */
}

/* Sections with dark background */
.page-casino__games-section,
.page-casino__promotions-section,
.page-casino__registration-guide,
.page-casino__faq-section {
    padding: 80px 0;
    background: #017439; /* Brand color dark background */
    color: #FFFFFF; /* Light text for dark background */
}

.page-casino__text-block p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.page-casino__read-more-link {
    display: inline-block;
    margin-top: 20px;
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
}

.page-casino__read-more-link:hover {
    color: #005a2e;
}

/* --- Hero Section --- */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

.page-casino__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.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.5rem;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Button styles */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-casino__btn-primary {
    background: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

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

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

.page-casino__btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

.page-casino__btn-tertiary {
    background: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
    padding: 10px 20px;
    font-size: 1rem;
}

.page-casino__btn-tertiary:hover {
    background: #005a2e;
    border-color: #005a2e;
}

.page-casino__btn-large {
    padding: 18px 35px;
    font-size: 1.2rem;
}

/* Image styles */
.page-casino__image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-casino__image {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure no extra space below image */
    filter: none !important; /* Ensure no image filters */
}

/* Content grid for sections with image and text */
.page-casino__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

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

.page-casino__game-card,
.page-casino__promo-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__game-image,
.page-casino__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, will be overridden by auto on mobile */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-casino__game-title,
.page-casino__promo-title {
    font-size: 1.5rem;
    color: #FFFFFF;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-casino__game-title a,
.page-casino__promo-title a {
    color: inherit;
    text-decoration: none;
}

.page-casino__game-title a:hover,
.page-casino__promo-title a:hover {
    text-decoration: underline;
}

.page-casino__game-description,
.page-casino__promo-description {
    color: #f0f0f0;
    font-size: 0.95rem;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow descriptions to take available space */
}

/* Steps Grid (Registration Guide) */
.page-casino__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-casino__step-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom font color for register */
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-casino__step-title {
    font-size: 1.4rem;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-casino__step-description {
    color: #f0f0f0;
    font-size: 1rem;
}

/* Button group for multiple buttons */
.page-casino__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}