/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is #121212 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: #FFD700; /* Auxiliary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-casino__sub-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-casino__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-small,
.page-casino__btn-large {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word breaking */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-casino__btn-primary {
    background-color: #FFD700; /* Auxiliary color for primary action */
    color: #004AAD; /* Primary color for text on auxiliary background */
    border: 2px solid #FFD700;
}

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

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

.page-casino__btn-secondary:hover {
    background-color: #FFD700;
    color: #004AAD;
}

.page-casino__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    background-color: #004AAD;
    color: #FFD700;
    border: 1px solid #004AAD;
}
.page-casino__btn-small:hover {
    background-color: #003a8d;
    border-color: #003a8d;
    color: #ffffff;
}

.page-casino__btn-large {
    padding: 15px 35px;
    font-size: 1.2em;
}

.page-casino__dark-bg {
    background-color: #004AAD; /* Primary color for sections */
    color: #ffffff;
}

.page-casino__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-casino__feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-casino__feature-list li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23FFD700"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #f0f0f0;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    min-height: 70vh; /* Minimum height for hero section */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
}

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

.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 */
    z-index: 2;
}

.page-casino__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    color: #ffffff;
}

.page-casino__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

/* Video Section */
.page-casino__video-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    text-align: center;
}

.page-casino__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 20px auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    display: block; /* Ensure it takes full width */
    box-sizing: border-box;
}

.page-casino__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-casino__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Above the video */
    cursor: pointer;
}

.page-casino__video-caption {
    font-size: 0.9em;
    color: #ccc;
    margin-top: 10px;
}

/* Game Categories */
.page-casino__game-categories {
    padding: 80px 0;
}

.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: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

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

.page-casino__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    display: block;
}

.page-casino__card-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-casino__card-title .page-casino__card-link {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__card-title .page-casino__card-link:hover {
    color: #ffffff;
}

.page-casino__card-description {
    font-size: 0.95em;
    color: #ccc;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take up available space */
}

/* Image Text Layout (for Live Casino, Promotions, Security, Mobile Gaming) */
.page-casino__image-text-layout {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 60px;
}

.page-casino__image-text-layout--reverse {
    flex-direction: row-reverse;
}

.page-casino__image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.page-casino__text-content {
    flex: 1;
    color: #f0f0f0;
}

.page-casino__text-content p {
    margin-bottom: 15px;
}

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

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

/* How to Start Section */
.page-casino__how-to-start {
    padding: 80px 0;
}

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

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

.page-casino__step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: #FFD700;
    color: #004AAD;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

.page-casino__step-description {
    font-size: 1em;
    color: #ccc;
}