/* style/slot-games.css */

/* Base Styles & Typography */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a1a; /* Inherited from body, but explicitly set for clarity */
}

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

.page-slot-games__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles on light backgrounds */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-slot-games__section-title--white {
    color: #ffffff; /* White color for titles on dark backgrounds */
}

.page-slot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #017439;
    border-radius: 2px;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #333333; /* Default for light backgrounds */
}

.page-slot-games__text-block--white {
    color: #ffffff; /* For dark backgrounds */
}

/* Color Contrast Safeguards */
.page-slot-games__dark-bg {
    background-color: #1a1a1a; /* Body background */
    color: #ffffff;
}

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.page-slot-games__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border-color: #C30808;
}

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

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand color */
    border-color: #017439;
}

.page-slot-games__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-slot-games__btn-center {
    display: block;
    margin: 30px auto 0 auto;
    max-width: 250px;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #1a1a1a; /* Fallback */
}

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

.page-slot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-slot-games__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

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

/* About Section */
.page-slot-games__about-section {
    padding: 80px 0;
}

/* Categories Section */
.page-slot-games__categories-section {
    padding: 80px 0;
    background-color: #017439; /* Brand color background */
}

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

.page-slot-games__game-card {
    background-color: rgba(255, 255, 255, 0.1); /* Light translucent on dark background */
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

.page-slot-games__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-slot-games__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-slot-games__card-title {
    font-size: 1.5em;
    color: #FFFF00; /* Custom font color for Register/Login, good for titles on dark bg */
    margin: 15px 0;
    padding: 0 15px;
}

.page-slot-games__card-title a {
    color: #FFFF00;
    text-decoration: none;
}

.page-slot-games__card-title a:hover {
    text-decoration: underline;
}

.page-slot-games__card-description {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 15px;
}

/* Why Choose Section */
.page-slot-games__why-choose-section {
    padding: 80px 0;
}

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

.page-slot-games__feature-item {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
    transition: transform 0.3s ease;
}

.page-slot-games__feature-item:hover {
    transform: translateY(-5px);
}

.page-slot-games__feature-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
}

.page-slot-games__feature-description {
    font-size: 1em;
    color: #555555;
}

/* Video Section */
.page-slot-games__video-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-slot-games__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__video,
.page-slot-games__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    cursor: pointer;
}

.page-slot-games__video-caption {
    text-align: center;
    font-style: italic;
    margin-top: 20px;
    color: #f0f0f0;
}