/* style/slot-games.css */

/* Custom Colors */
:root {
    --color-primary: #C91F17;
    --color-secondary: #E53935;
    --color-button-gradient-start: #FFD86A;
    --color-button-gradient-end: #E6B800;
    --color-card-bg: #D32F2F;
    --color-background: #B71C1C;
    --color-text-main: #FFF5E1;
    --color-border: #F2B544;
    --color-glow: #FFCC66;
    --color-gold: #F4D34D;
    --color-deep-red: #7A0E0E;
    --text-dark: #333333; /* Default dark text for light backgrounds */
    --text-light: #ffffff; /* Default light text for dark backgrounds */
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for the page, assuming light body bg */
    background-color: transparent; /* Use transparent to inherit body bg */
}

/* Container for general content width */
.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    background: var(--color-background); /* Custom background color */
    color: var(--color-text-main); /* Light text for dark background */
    overflow: hidden;
}

.page-slot-games__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for desktop hero image */
    overflow: hidden;
}

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-slot-games__hero-content-wrapper {
    padding: 60px 0;
    text-align: center;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, rgba(var(--color-background), 0.8) 0%, var(--color-background) 100%);
}

.page-slot-games__main-title {
    font-size: clamp(2.5em, 5vw, 4em); /* Min 2.5em, preferred 5vw, max 4em */
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-gold); /* Gold text for main title */
    text-shadow: 0 0 10px rgba(var(--color-glow), 0.7);
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__subtitle {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: var(--color-text-main);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure button container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__game-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    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%;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-slot-games__btn-primary {
    background: var(--color-button-gradient-start); /* Start with custom button gradient */
    background-image: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-deep-red); /* Deep red text for gold button */
    border: 2px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-slot-games__btn-secondary {
    background: transparent;
    color: var(--color-text-main); /* Light text for secondary button */
    border: 2px solid var(--color-border);
}

.page-slot-games__btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1);
}

/* Section Titles */
.page-slot-games__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary); /* Primary color for section titles */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* Paragraphs */
.page-slot-games__paragraph {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px auto;
    color: var(--text-dark);
}
.page-slot-games__paragraph a {
    color: var(--color-primary);
    text-decoration: underline;
}
.page-slot-games__paragraph a:hover {
    color: var(--color-secondary);
}

/* Highlighted text */
.page-slot-games .highlight {
    color: var(--color-primary);
    font-weight: bold;
}

/* Intro Section */
.page-slot-games__intro-section {
    padding: 60px 0;
    background-color: #f8f8f8; /* Light background for contrast */
    color: var(--text-dark);
}

/* Features Section */
.page-slot-games__features-section {
    padding: 60px 0;
    background: var(--color-background); /* Dark background */
    color: var(--color-text-main); /* Light text */
}

.page-slot-games__features-section .page-slot-games__section-title {
    color: var(--color-gold); /* Gold title on dark background */
}
.page-slot-games__features-section .page-slot-games__paragraph {
    color: var(--color-text-main);
}

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

.page-slot-games__feature-card {
    background: var(--color-card-bg); /* Custom card background */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--color-text-main); /* Light text on dark card */
}

.page-slot-games__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-slot-games__feature-image {
    width: 100%;
    height: 250px; /* Fixed height for feature images */
    object-fit: cover;
    margin-bottom: 20px;
    display: block;
}

.page-slot-games__feature-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-gold); /* Gold title on card */
    padding: 0 20px;
}

.page-slot-games__feature-description {
    font-size: 1em;
    color: var(--color-text-main);
    padding: 0 20px;
}

/* Game Showcase Section */
.page-slot-games__game-showcase-section {
    padding: 60px 0;
    background-color: #f8f8f8;
    color: var(--text-dark);
}

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

.page-slot-games__game-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
}

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

.page-slot-games__game-image {
    width: 100%;
    height: 200px; /* Fixed height for game images */
    object-fit: cover;
    margin-bottom: 15px;
    display: block;
}

.page-slot-games__game-title {
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-primary);
    padding: 0 20px;
}

.page-slot-games__game-description {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
    padding: 0 20px;
}

.page-slot-games__game-btn {
    background: var(--color-primary);
    color: var(--text-light);
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 20px;
    display: inline-block;
    max-width: calc(100% - 40px); /* Adjust for padding */
    width: auto;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__game-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
    padding: 60px 0;
    background: var(--color-deep-red); /* Deep red background */
    color: var(--color-text-main); /* Light text */
}

.page-slot-games__how-to-play-section .page-slot-games__section-title {
    color: var(--color-gold); /* Gold title on deep red background */
}
.page-slot-games__how-to-play-section .page-slot-games__paragraph {
    color: var(--color-text-main);
}
.page-slot-games__how-to-play-section a {
    color: var(--color-button-gradient-start); /* Gold link on deep red */
}
.page-slot-games__how-to-play-section a:hover {
    color: var(--color-glow);
}


.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-slot-games__step-item {
    background: var(--color-card-bg); /* Card background for steps */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--color-text-main);
}

.page-slot-games__step-title {
    font-size: 1.8em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-gold);
}

.page-slot-games__step-description {
    font-size: 1.1em;
    color: var(--color-text-main);
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding: 60px 0;
    background-color: #f8f8f8;
    color: var(--text-dark);
}

details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question::-webkit-details-marker {
  display: none;
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: #f5f5f5;
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-dark);
}
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-primary); /* Use primary color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}
.page-slot-games__faq-answer p {
    margin-bottom: 0;
}
.page-slot-games__faq-answer a {
    color: var(--color-primary);
    text-decoration: underline;
}
.page-slot-games__faq-answer a:hover {
    color: var(--color-secondary);
}


/* CTA Bottom Section */
.page-slot-games__cta-bottom-section {
    padding: 80px 0;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%); /* Gradient background */
    color: var(--color-text-main);
    text-align: center;
}

.page-slot-games__cta-bottom-section .page-slot-games__section-title {
    color: var(--color-gold); /* Gold title on gradient background */
    margin-bottom: 20px;
}

.page-slot-games__cta-bottom-section .page-slot-games__paragraph {
    color: var(--color-text-main);
    margin-bottom: 40px;
}
.page-slot-games__cta-bottom-section .page-slot-games__paragraph a {
    color: var(--color-button-gradient-start); /* Gold link on gradient */
}
.page-slot-games__cta-bottom-section .page-slot-games__paragraph a:hover {
    color: var(--color-glow);
}

/* Global Image styles */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: 3.5em;
    }
    .page-slot-games__subtitle {
        font-size: 1.3em;
    }
    .page-slot-games__section-title {
        font-size: 2.2em;
    }
    .page-slot-games__hero-image-wrapper {
        height: 500px;
    }
    .page-slot-games__features-grid,
    .page-slot-games__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    .page-slot-games__feature-image {
        height: 200px;
    }
    .page-slot-games__game-image {
        height: 180px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-slot-games__hero-section {
        padding-top: 10px !important; /* Small top padding */
    }
    .page-slot-games__hero-image-wrapper {
        height: 300px !important;
    }
    .page-slot-games__main-title {
        font-size: 2.5em !important;
        margin-bottom: 15px;
    }
    .page-slot-games__subtitle {
        font-size: 1.1em !important;
        margin-bottom: 30px;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 1em !important;
        padding: 12px 20px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Section Titles and Paragraphs */
    .page-slot-games__section-title {
        font-size: 1.8em !important;
        margin-bottom: 30px;
    }
    .page-slot-games__paragraph {
        font-size: 1em !important;
        padding: 0 15px;
    }

    /* General Padding */
    .page-slot-games__container {
        padding: 0 15px !important;
    }
    .page-slot-games__intro-section,
    .page-slot-games__features-section,
    .page-slot-games__game-showcase-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-bottom-section {
        padding: 40px 0 !important;
    }

    /* Features Grid */
    .page-slot-games__features-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    .page-slot-games__feature-card {
        padding-bottom: 20px;
    }
    .page-slot-games__feature-image {
        height: 180px !important;
    }
    .page-slot-games__feature-title {
        font-size: 1.5em;
    }

    /* Game Grid */
    .page-slot-games__game-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    .page-slot-games__game-image {
        height: 160px !important;
    }
    .page-slot-games__game-title {
        font-size: 1.4em;
    }
    .page-slot-games__game-btn {
        max-width: calc(100% - 30px) !important; /* Adjust for 15px padding on container */
        width: 100% !important;
        font-size: 0.9em;
        padding: 10px 15px;
    }

    /* How to Play Section */
    .page-slot-games__steps-list {
        gap: 20px;
    }
    .page-slot-games__step-item {
        padding: 25px;
    }
    .page-slot-games__step-title {
        font-size: 1.5em;
    }
    .page-slot-games__step-description {
        font-size: 1em;
    }

    /* FAQ Section */
    details.page-slot-games__faq-item summary.page-slot-games__faq-question { padding: 15px !important; }
    .page-slot-games__faq-qtext { font-size: 15px !important; }
    details.page-slot-games__faq-item .page-slot-games__faq-answer { padding: 0 15px 15px !important; }
    .page-slot-games__faq-toggle {
        font-size: 20px !important;
        width: 24px !important;
        height: 24px !important;
        margin-left: 10px !important;
    }

    /* All images and containers must be responsive */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}