/* style/casino.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* Base styles for the page-casino scope */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background); /* Overall page background */
}

/* Sections */
.page-casino__hero-section,
.page-casino__about-section,
.page-casino__games-section,
.page-casino__promotions-section,
.page-casino__security-section,
.page-casino__how-to-section,
.page-casino__mobile-app-section,
.page-casino__support-section,
.page-casino__faq-section,
.page-casino__final-cta-section {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow */
}

/* Specific background colors */
.page-casino__dark-section,
.page-casino__dark-bg {
    background-color: var(--color-card-bg); /* Use card background for dark sections */
    color: var(--color-text-main);
}

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

/* Hero Section */
.page-casino__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 80px;
    display: flex;
    flex-direction: column; /* Image then content */
    align-items: center;
    text-align: center;
    background-color: var(--color-background);
}

.page-casino__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
    margin-bottom: 40px; /* Space between image and content */
}

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

.page-casino__hero-content {
    max-width: 800px;
    /* No negative margin to prevent overlap with image */
    position: relative;
    z-index: 10;
    background: linear-gradient(to top, var(--color-background) 70%, transparent); /* This will apply to the content block itself */
    padding: 20px;
    border-radius: 10px;
    margin-top: 0; /* Ensure no overlap */
}

.page-casino__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-casino__hero-description {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Titles */
.page-casino__section-title {
    font-size: 2.5rem;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-casino__section-description {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-text {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure button doesn't exceed container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-casino__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: 2px solid var(--color-button-gradient-start);
}

.page-casino__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--color-button-gradient-start), 0.4);
}

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

.page-casino__btn-secondary:hover {
    background-color: var(--color-gold);
    color: var(--color-background);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--color-gold), 0.2);
}