/* style/casino.css */

/* Base styles for the page-casino scope */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff); /* Inherit from shared, fallback to white */
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height for hero */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-casino__hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    background-size: cover;
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

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

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

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

/* General Section Styles */
.page-casino__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #017439; /* Brand primary color for titles on light background */
}

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

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

/* Background Colors for Sections */
.page-casino__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-casino__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-casino__dark-bg .page-casino__section-title {
    color: #ffffff; /* White title on dark background */
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

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

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

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

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

/* Image styles */
.page-casino__image-wrapper {
    text-align: center;
    margin: 40px 0;
}

.page-casino__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element for max-width to work */
    margin: 0 auto;
}

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

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

.page-casino__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__game-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-casino__game-link {
    color: #FFFF00; /* Custom font color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__game-link:hover {
    color: #e02020;
    text-decoration: underline;
}

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

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

.page-casino__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-casino__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__promo-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

.page-casino__promo-link {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__promo-link:hover {
    color: #C30808;
    text-decoration: underline;
}

.page-casino__promo-description {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: #555555;
}

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

.page-casino__guide-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-casino__guide-link {
    color: #FFFF00; /* Custom font color for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__guide-link:hover {
    color: #e02020;
    text-decoration: underline;
}

.page-casino__guide-description {
    font-size: 0.9em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

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

.page-casino__feature-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__feature-icon {
    max-width: 100%;
    height: auto;
    width: 200px; /* Ensure minimum size */
    height: 200px; /* Ensure minimum size */
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}