/* style/slot-games.css */

/* Custom Colors */
:root {
    --uk88-primary-color: #11A84E;
    --uk88-secondary-color: #22C768;
    --uk88-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --uk88-card-bg: #11271B;
    --uk88-background: #08160F;
    --uk88-text-main: #F2FFF6;
    --uk88-text-secondary: #A7D9B8;
    --uk88-border: #2E7A4E;
    --uk88-glow: #57E38D;
    --uk88-gold: #F2C14E;
    --uk88-divider: #1E3A2A;
    --uk88-deep-green: #0A4B2C;
}

/* Base styles for the slot-games page */
.page-slot-games {
    font-family: Arial, sans-serif;
    color: var(--uk88-text-main); /* Default text color for dark background */
    background-color: var(--uk88-background);
}

.page-slot-games h1, .page-slot-games h2, .page-slot-games h3, .page-slot-games h4, .page-slot-games h5, .page-slot-games h6 {
    color: var(--uk88-text-main);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-slot-games h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-slot-games h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: 30px;
}

.page-slot-games h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 10px;
}

.page-slot-games p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--uk88-text-secondary);
}

.page-slot-games a {
    color: var(--uk88-gold);
    text-decoration: none;
}

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

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

.page-slot-games__dark-bg {
    background-color: var(--uk88-background);
    color: var(--uk88-text-main);
}

.page-slot-games__card-bg {
    background-color: var(--uk88-card-bg);
    border: 1px solid var(--uk88-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background: var(--uk88-button-gradient);
    color: var(--uk88-text-main);
    border: none;
    margin-right: 15px;
}

.page-slot-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-slot-games__btn-secondary:hover {
    background-color: var(--uk88-gold);
    color: var(--uk88-background);
    transform: translateY(-2px);
}

.page-slot-games__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: 15px;
    margin-right: 10px;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden;
}

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

.page-slot-games__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin: -100px auto 0 auto; /* Pull up slightly over the image for visual flow */
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background for readability */
    border-radius: 15px;
    z-index: 10;
    position: relative;
}

.page-slot-games__hero-content .page-slot-games__main-title {
    color: var(--uk88-text-main);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.page-slot-games__hero-content .page-slot-games__description {
    color: var(--uk88-text-secondary);
    font-size: 1.1em;
    margin-bottom: 30px;
}

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

/* Introduction Section */
.page-slot-games__introduction-section {
    padding: 80px 0;
    text-align: center;
}

.page-slot-games__introduction-section .page-slot-games__image-content {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-slot-games__card {
    text-align: center;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-slot-games__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-slot-games__card-title {
    color: var(--uk88-gold);
    margin-top: 0;
}

.page-slot-games__card-text {
    flex-grow: 1; /* Allows text to take up available space */
}

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

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

.page-slot-games__feature-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.page-slot-games__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%; /* Example for circular icons, adjust as needed */
    border: 3px solid var(--uk88-gold);
    padding: 10px;
    box-sizing: border-box;
    display: block;
}

.page-slot-games__feature-title {
    color: var(--uk88-text-main);
    margin-top: 0;
    margin-bottom: 10px;
}

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

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

.page-slot-games__step-item {
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.page-slot-games__step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--uk88-gold);
    color: var(--uk88-background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    box-shadow: 0 0 0 5px var(--uk88-card-bg);
}

.page-slot-games__step-title {
    color: var(--uk88-text-main);
    margin-top: 20px;
}

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

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

.page-slot-games__tip-item {
    display: flex;
    flex-direction: column;
    text-align: left;
    height: 100%;
}

.page-slot-games__tip-title {
    color: var(--uk88-gold);
    margin-bottom: 10px;
}

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

.page-slot-games__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-slot-games__faq-item {
    background-color: var(--uk88-card-bg);
    border: 1px solid var(--uk88-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

.page-slot-games__faq-question .page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--uk88-gold);
}

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

.page-slot-games__faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--uk88-text-secondary);
    font-size: 0.95em;
}

/* Conclusion Section */
.page-slot-games__conclusion-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-slot-games video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-slot-games__hero-content {
        margin-top: -80px;
        padding: 30px 20px;
    }
    .page-slot-games__card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-slot-games h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
    .page-slot-games h2 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-slot-games h3 {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }
    .page-slot-games p {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-slot-games__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-slot-games__hero-content {
        margin-top: -60px;
        padding: 25px 15px;
    }

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games a[class*="button"],
    .page-slot-games a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-right: 0 !important; /* Override desktop margin */
    }

    .page-slot-games__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-slot-games__container,
    .page-slot-games__introduction-section,
    .page-slot-games__types-section,
    .page-slot-games__why-choose-section,
    .page-slot-games__guide-section,
    .page-slot-games__tips-section,
    .page-slot-games__faq-section,
    .page-slot-games__conclusion-section {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .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;
    }

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

    .page-slot-games__feature-icon {
        width: 80px;
        height: 80px;
    }

    .page-slot-games__step-item {
        padding-top: 50px;
    }

    .page-slot-games__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }

    .page-slot-games__card-image {
        height: 180px;
    }

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

    .page-slot-games__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-content {
        margin-top: -40px;
        padding: 20px 10px;
    }
    .page-slot-games__cta-buttons {
        gap: 10px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        padding: 12px 20px;
        font-size: 0.9em;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
    }
}