/* style/slot-games.css */

/* Custom properties for colors */
:root {
    --primary-color: #11A84E; /* Main color Green */
    --secondary-color: #22C768; /* Auxiliary color Green */
    --card-bg: #11271B; /* Card Background Dark Green */
    --background-color: #08160F; /* Overall Background Deep Green */
    --text-main: #F2FFF6; /* Main text color Off-white */
    --text-secondary: #A7D9B8; /* Secondary text color Light Green */
    --border-color: #2E7A4E; /* Border color Medium Green */
    --glow-color: #57E38D; /* Glow color Light Green */
    --gold-color: #F2C14E; /* Gold color */
    --divider-color: #1E3A2A; /* Divider color Darker Green */
    --deep-green: #0A4B2C; /* Deep Green color */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);

    /* Header offset will be set by shared.css */
    --header-offset: 80px; /* Default value, will be overridden by shared.css */
}

/* Base styles for the page content */
.page-slot-games {
    background-color: var(--background-color);
    color: var(--text-main); /* Default text color for the page */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px;
}

.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;
    width: 100%;
    display: flex;
    flex-direction: column; /* Stack image and content vertically */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--deep-green);
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 1; /* Ensure image is below text if layered by mistake */
}

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

.page-slot-games__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    z-index: 2;
    color: var(--text-main);
}

.page-slot-games__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-slot-games__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem); /* Responsive font size */
    margin-bottom: 30px;
    color: var(--text-secondary);
}

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

/* 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: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-slot-games__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

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

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
    box-shadow: 0 2px 10px rgba(87, 227, 141, 0.2);
}

.page-slot-games__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--background-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}

/* Section Styling */
.page-slot-games__intro-section,
.page-slot-games__how-to-play-section,
.page-slot-games__popular-games-section,
.page-slot-games__why-choose-us-section,
.page-slot-games__faq-section {
    padding: 60px 0;
    text-align: center;
}

.page-slot-games__dark-bg {
    background-color: var(--deep-green);
}

.page-slot-games__card-bg {
    background-color: var(--card-bg);
}

.page-slot-games__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--gold-color);
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-slot-games__text {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 20px auto;
    color: var(--text-secondary);
}

.page-slot-games__highlight {
    color: var(--glow-color);
    font-weight: 700;
}

/* Features Section */
.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-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-slot-games__feature-icon {
    width: 100%; /* Ensure full width within card */
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px; /* Slightly rounded corners for icons */
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

.page-slot-games__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--glow-color);
}

.page-slot-games__feature-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* How To Play Section */
.page-slot-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-slot-games__step-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-slot-games__step-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gold-color);
}

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

.page-slot-games__cta-center {
    margin-top: 40px;
}

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

.page-slot-games__game-card {
    background-color: var(--deep-green);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.page-slot-games__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

.page-slot-games__game-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 20px 15px 10px 15px;
    color: var(--glow-color);
}

.page-slot-games__game-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0 15px 20px 15px;
    flex-grow: 1; /* Ensure description takes available space */
}

/* Why Choose Us Section */
.page-slot-games__advantage-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-slot-games__advantage-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-slot-games__advantage-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gold-color);
}

.page-slot-games__advantage-description {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* CTA Section */
.page-slot-games__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--deep-green);
}

.page-slot-games__cta-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.page-slot-games__cta-text-content {
    flex: 1;
    min-width: 300px;
    max-width: 700px;
    text-align: left;
}

.page-slot-games__cta-image-wrapper {
    flex-shrink: 0;
    width: 100%;
    max-width: 400px;
}

.page-slot-games__cta-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

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

.page-slot-games__faq-item {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    color: var(--text-main);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--gold-color);
    list-style: none; /* For details/summary */
}

.page-slot-games__faq-question::-webkit-details-marker {
    display: none;
}

.page-slot-games__faq-question:hover {
    background-color: var(--deep-green);
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
}

.page-slot-games__faq-toggle {
    font-size: 1.8rem;
    font-weight: bold;
    margin-left: 15px;
    color: var(--glow-color);
    line-height: 1;
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-slot-games__container {
        padding: 0 15px;
    }

    .page-slot-games__hero-content {
        padding: 30px 15px;
    }

    .page-slot-games__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .page-slot-games__subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    .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: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-slot-games__intro-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__popular-games-section,
    .page-slot-games__why-choose-us-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-section {
        padding: 40px 0;
    }

    .page-slot-games__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .page-slot-games__text {
        font-size: 1rem;
    }

    .page-slot-games__feature-grid,
    .page-slot-games__game-grid,
    .page-slot-games__advantage-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Mobile image responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__feature-card,
    .page-slot-games__game-card,
    .page-slot-games__cta-image-wrapper,
    .page-slot-games__step-item,
    .page-slot-games__advantage-item,
    .page-slot-games__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-slot-games__cta-flex {
        flex-direction: column;
        gap: 30px;
    }

    .page-slot-games__cta-text-content {
        text-align: center;
        max-width: 100%;
    }

    .page-slot-games__cta-image-wrapper {
        max-width: 100%;
    }

    .page-slot-games__faq-question {
        font-size: 1.1rem;
        padding: 15px 20px;
    }

    .page-slot-games__faq-answer {
        font-size: 0.95rem;
        padding: 0 20px 15px 20px;
    }

    .page-slot-games__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
    }
}

/* Ensure minimum image sizes */
.page-slot-games__hero-image,
.page-slot-games__feature-icon,
.page-slot-games__game-image,
.page-slot-games__cta-image {
    min-width: 200px;
    min-height: 200px;
}

/* Text contrast fix for any potential issues */
.page-slot-games__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-slot-games__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}