/* style/slot-games.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark background */
    background-color: var(--secondary-color); /* #1A1A1A from shared.css */
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-slot-games__section {
    padding: 60px 0;
    text-align: center;
}

.page-slot-games__section-title {
    font-size: 2.8em;
    color: #FFD700; /* Gold for titles */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-slot-games__section-subtitle {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
    text-align: left;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding-top: 0; /* Header offset handled by main, hero is full screen */
}

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

.page-slot-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: 2;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

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

.page-slot-games__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* For mobile responsiveness */
}

/* Buttons */
.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;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-slot-games__btn-primary {
    background-color: #FFD700;
    color: #1A1A1A; /* Dark text on gold button for contrast */
    border: 2px solid #FFD700;
}

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

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

.page-slot-games__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A1A1A;
}

/* Video Section */
.page-slot-games__video-section {
    padding: 60px 0;
    text-align: center;
    background-color: #1A1A1A;
}

.page-slot-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 40px auto;
    background-color: #000;
    border-radius: 10px;
}

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure it behaves like a block element for max-width */
    cursor: pointer; /* Indicate it's clickable */
}

.page-slot-games__video-cta {
    margin-top: 30px;
}

/* Image styles for content areas */
.page-slot-games__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px auto;
    display: block; /* Center block images */
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

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

.page-slot-games__card {
    background-color: #ffffff; /* Light background for cards */
    color: #1A1A1A; /* Dark text on light background */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 200px; /* Ensure card content area is not too small */
}

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

.page-slot-games__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce minimum size for card images */
    min-height: 200px;
}

.page-slot-games__card-title {
    font-size: 1.5em;
    color: #FFD700; /* Gold for card titles */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__card-text {
    font-size: 1em;
    color: #333333; /* Darker text for readability on light card background */
    margin-bottom: 20px;
}

.page-slot-games__card-button {
    margin-top: auto; /* Push button to the bottom */
}

/* Lists */
.page-slot-games__ordered-list,
.page-slot-games__unordered-list {
    text-align: left;
    margin: 20px auto;
    max-width: 800px;
    padding-left: 25px;
    color: #f0f0f0;
}

.page-slot-games__ordered-list li,
.page-slot-games__unordered-list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-slot-games__ordered-list li strong,
.page-slot-games__unordered-list li strong {
    color: #FFD700;
}

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

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

.page-slot-games__feature-item {
    background-color: #1A1A1A; /* Dark background for features to match page */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid #FFD700; /* Gold border */
}

.page-slot-games__feature-icon {
    width: 200px; /* Enforce minimum size for icons */
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 50%;
    border: 2px solid #FFD700;
}

.page-slot-games__feature-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-slot-games__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-slot-games__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

.page-slot-games__faq-item {
    background-color: #1A1A1A; /* Dark background for FAQ items */
    border: 1px solid #FFD700;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: #2a2a2a; /* Slightly lighter dark for question header */
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: #3a3a3a;
}

.page-slot-games__faq-title {
    font-size: 1.2em;
    color: #FFD700;
    margin: 0;
}

.page-slot-games__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg);
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 20px;
}

.page-slot-games__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.5;
}

/* Call to Action Section */
.page-slot-games__cta-section {
    padding-bottom: 80px;
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap; /* For mobile responsiveness */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 3em;
    }
    .page-slot-games__hero-description {
        font-size: 1.2em;
    }
    .page-slot-games__section-title {
        font-size: 2.2em;
    }
    .page-slot-games__grid,
    .page-slot-games__promo-grid,
    .page-slot-games__feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-slot-games__container {
        padding: 0 15px !important; /* Mobile padding */
    }

    .page-slot-games__hero-section {
        height: auto;
        min-height: 600px;
        padding: 80px 0;
    }

    .page-slot-games__hero-title {
        font-size: 2.5em;
    }
    .page-slot-games__hero-description {
        font-size: 1.1em;
    }
    .page-slot-games__hero-cta-buttons,
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-slot-games__section {
        padding: 40px 0;
    }

    .page-slot-games__section-title {
        font-size: 2em;
    }

    /* Images responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-slot-games__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-slot-games__feature-icon {
        max-width: 200px !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Video responsiveness */
    .page-slot-games video,
    .page-slot-games__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-slot-games__video-section,
    .page-slot-games__video-container,
    .page-slot-games__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }

    /* Card and general container responsiveness */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__content-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-slot-games__grid,
    .page-slot-games__promo-grid,
    .page-slot-games__feature-grid {
        grid-template-columns: 1fr; /* Single column layout for mobile */
    }

    .page-slot-games__faq-list {
        padding: 0 15px;
    }
    .page-slot-games__faq-question {
        padding: 12px 15px;
    }
    .page-slot-games__faq-answer {
        padding: 0 15px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 12px 15px;
    }
}

/* Specific contrast fixes if needed, though designed for dark bg/light text */
.page-slot-games__dark-bg {
    background-color: #1A1A1A; /* Ensure dark background */
    color: #ffffff; /* Ensure light text */
}

.page-slot-games__light-bg {
    background-color: #ffffff; /* Ensure light background */
    color: #1A1A1A; /* Ensure dark text */
}

/* Links within content */
.page-slot-games__text-block a,
.page-slot-games__ordered-list a,
.page-slot-games__unordered-list a,
.page-slot-games__faq-answer a {
    color: #FFD700; /* Gold for links */
    text-decoration: underline;
}

.page-slot-games__text-block a:hover,
.page-slot-games__ordered-list a:hover,
.page-slot-games__unordered-list a:hover,
.page-slot-games__faq-answer a:hover {
    color: #e6c200;
}