/* style/casino.css */

/* Custom CSS Variables */
:root {
    --primary-color: #017439; /* Brand Green */
    --secondary-color: #FFFFFF; /* White */
    --register-button-bg: #C30808; /* Red for Register */
    --login-button-bg: #C30808; /* Red for Login */
    --register-login-font: #FFFF00; /* Yellow for Register/Login text */
    --text-dark: #333333;
    --text-light: #ffffff;
    --border-light: #e0e0e0;
    --background-light: #f9f9f9;
}

/* Base styles for the page content */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Default light background, as per shared.css if not specified */
}

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

.page-casino__section {
    padding: 60px 0;
}

.page-casino__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-casino__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--register-button-bg); /* Use a strong accent color */
    border-radius: 2px;
}

.page-casino__section-title--light {
    color: var(--text-light);
}

.page-casino__section-title--light::after {
    background-color: var(--register-login-font); /* Yellow accent for dark backgrounds */
}

.page-casino__text-block {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-casino__text-block--light {
    color: var(--text-light);
}

.page-casino__center-button {
    text-align: center;
    margin-top: 40px;
}

/* General Buttons */
.page-casino__cta-button,
.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.page-casino__btn-large {
    padding: 18px 50px;
    font-size: 20px;
}

.page-casino__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.page-casino__btn-primary:hover {
    background: #005f2e; /* Manually darkened */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-casino__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Specific button styles for Register/Login */
.page-casino__btn-register {
    background: var(--register-button-bg);
    color: var(--register-login-font);
    border-color: var(--register-button-bg);
    margin-right: 15px;
}

.page-casino__btn-register:hover {
    background: #a90707; /* Manually darkened */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-login {
    background: var(--login-button-bg);
    color: var(--register-login-font);
    border-color: var(--login-button-bg);
}

.page-casino__btn-login:hover {
    background: #a90707; /* Manually darkened */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* HERO Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not covered by fixed header */
    background: linear-gradient(135deg, var(--primary-color) 0%, #333333 100%); /* Darker gradient for contrast */
    color: var(--text-light);
    overflow: hidden; /* Prevent image overflow */
}

.page-casino__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above background effects if any */
}

.page-casino__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-casino__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-casino__hero-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--register-login-font); /* Yellow for high impact */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-casino__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

/* Section specific styles */
.page-casino__introduction {
    background: var(--secondary-color);
}

.page-casino__introduction .page-casino__image-content {
    margin-top: 40px;
    text-align: center;
}

.page-casino__introduction .page-casino__image-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__game-types {
    background: var(--primary-color); /* Dark background */
    color: var(--text-light);
}

.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: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-casino__game-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 15px 10px;
}

.page-casino__game-description {
    font-size: 15px;
    color: var(--text-dark);
    margin: 0 15px 20px;
    flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-primary {
    margin: 0 15px;
    width: calc(100% - 30px);
}

.page-casino__promotions {
    background: var(--background-light);
}

.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: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__promo-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-casino__promo-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0 15px 10px;
}

.page-casino__promo-description {
    font-size: 15px;
    color: var(--text-dark);
    margin: 0 15px 20px;
    flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-primary {
    margin: 0 15px;
    width: calc(100% - 30px);
}

.page-casino__security-support {
    background: var(--secondary-color); /* Light background */
}

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

.page-casino__feature-item {
    background: var(--background-light);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.page-casino__feature-item img {
    width: 200px; /* Enforcing minimum size 200x200 */
    height: 200px; /* Enforcing minimum size 200x200 */
    margin-bottom: 20px;
    object-fit: contain; /* Use contain for icons to prevent cropping */
    display: inline-block; /* Center block elements */
}

.page-casino__feature-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-casino__feature-description {
    font-size: 15px;
    color: var(--text-dark);
}