/* style/slot-games.css */

/* Variables and Base Styles */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --accent-register: #C30808;
    --accent-login: #C30808;
    --font-register-login: #FFFF00;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f5f5f5; /* Using a light grey for contrast in light sections */
}

.page-slot-games {
    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 page background is white */
}

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

.page-slot-games__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-slot-games__paragraph {
    font-size: 1.1em;
    margin-bottom: 1em;
    text-align: justify;
}

.page-slot-games__text-center {
    text-align: center;
}

/* Color Contrast Safeguards */
.page-slot-games__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-slot-games__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-slot-games__dark-bg .page-slot-games__section-title,
.page-slot-games__dark-bg .page-slot-games__hero-title {
    color: var(--text-light);
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-slot-games__btn-primary {
    background-color: var(--accent-register); /* Custom color for register */
    color: var(--font-register-login); /* Custom font color for register/login */
    border: 2px solid var(--accent-register);
}

.page-slot-games__btn-primary:hover {
    background-color: #a30707; /* Slightly darker red for hover */
    border-color: #a30707;
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-slot-games__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 600px;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Explicitly add header offset here */
}

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

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: brightness(0.7); /* Darken image for text contrast */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Enhance text readability on image */
}

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

.page-slot-games__hero-description {
    font-size: 1.4em;
    margin-bottom: 30px;
}

/* Intro Section */
.page-slot-games__intro-section {
    padding: 60px 0;
}

/* Why Choose Section */
.page-slot-games__why-choose-section {
    padding: 60px 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-card {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-slot-games__feature-title {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-slot-games__feature-description {
    font-size: 1em;
    color: var(--text-dark);
}

/* Popular Games Section */
.page-slot-games__popular-games-section {
    padding: 60px 0;
}

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

.page-slot-games__game-item {
    background-color: var(--bg-light);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-slot-games__game-name {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-slot-games__game-name a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-slot-games__game-name a:hover {
    text-decoration: underline;
}

.page-slot-games__game-description {
    font-size: 0.95em;
    color: var(--text-dark);
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
    padding: 60px 0;
}

.page-slot-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid var(--secondary-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-slot-games__dark-bg .page-slot-games__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--secondary-color);
    color: var(--text-light);
}

.page-slot-games__step-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}