/* style/slot-games.css */

:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --border-color-dark-mode: rgba(255, 255, 255, 0.2);
    --faq-answer-bg-dark-mode: rgba(255, 255, 255, 0.05);
}

.page-slot-games {
    color: var(--text-color-dark-bg); /* Body background #121212 is dark, so text is light */
    background-color: #121212; /* Ensure consistency with shared.css body background */
}

/* === Video Section === */
.page-slot-games__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Desktop: Adjust for fixed header */
    background-color: #0a0a0a;
}

.page-slot-games__video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-slot-games__video-link {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__video-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-slot-games__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    object-fit: cover;
    pointer-events: none; /* Prevent video controls from interfering with click event on parent <a> */
}

.page-slot-games__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.page-slot-games__video-link:hover .page-slot-games__video-overlay {
    opacity: 1;
}

.page-slot-games__video-click-hint {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    background: rgba(0, 123, 255, 0.8);
    border-radius: 5px;
    white-space: nowrap;
}

.page-slot-games__video-cta {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.page-slot-games__play-now-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--primary-color);
    color: var(--text-color-dark-bg);
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: none;
    cursor: pointer;
}

.page-slot-games__play-now-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.page-slot-games__play-now-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* === General Layout & Typography === */
.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-slot-games__heading {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color); /* Use accent color for headings */
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-slot-games p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 1em;
    color: var(--text-color-dark-bg);
}

.page-slot-games ul {
    list-style: disc inside;
    padding-left: 20px;
    margin-bottom: 1em;
    color: var(--text-color-dark-bg);
}

.page-slot-games li {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 0.5em;
}

.page-slot-games__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__cta-center {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-slot-games__cta-button {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

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

.page-slot-games__btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__btn-secondary:hover {
    background: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* === Section Specific Styles === */
.page-slot-games__title-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: var(--text-color-dark-bg);
    box-shadow: inset 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-slot-games__title-description {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-slot-games__intro-section {
    background-color: #1a1a1a;
    padding: 60px 0;
}

.page-slot-games__advantages-section {
    background: #0d0d0d;
    padding: 60px 0;
    border-top: 1px solid var(--border-color-dark-mode);
    border-bottom: 1px solid var(--border-color-dark-mode);
}

.page-slot-games__dark-section {
    background-color: #0d0d0d;
    color: var(--text-color-dark-bg);
}

.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-item {
    background: var(--card-bg-dark-mode);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color-dark-mode);
}

.page-slot-games__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.page-slot-games__feature-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-slot-games__popular-games-section {
    background-color: #1a1a1a;
    padding: 60px 0;
}

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

.page-slot-games__game-card {
    background: var(--card-bg-dark-mode);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color-dark-mode);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-slot-games__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-slot-games__game-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-slot-games__game-description {
    font-size: 15px;
    line-height: 1.6;
    color: #ccc;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-slot-games__guide-section {
    background-color: #0d0d0d;
    padding: 60px 0;
}

.page-slot-games__guide-step {
    background: var(--card-bg-dark-mode);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color-dark-mode);
}

.page-slot-games__step-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-slot-games__promotions-section {
    background-color: #1a1a1a;
    padding: 60px 0;
}

.page-slot-games__promo-list li {
    list-style-type: '🌟 ';
    padding-left: 10px;
    margin-bottom: 10px;
}

.page-slot-games__promo-list li strong {
    color: var(--secondary-color);
}

.page-slot-games__responsible-gaming-section {
    background-color: #0d0d0d;
    padding: 60px 0;
}

.page-slot-games__responsible-list li {
    list-style-type: '✅ ';
    padding-left: 10px;
    margin-bottom: 10px;
}

/* === FAQ Section === */
.page-slot-games__faq-section {
    background-color: #1a1a1a;
    padding: 60px 0;
}

.page-slot-games__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-color-dark-mode);
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    color: var(--text-color-dark-bg);
    background: var(--faq-answer-bg-dark-mode);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 2000px !important; /* Ensure enough space for content */
    padding: 20px !important;
    opacity: 1;
    background: var(--faq-answer-bg-dark-mode);
    border-radius: 0 0 5px 5px;
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--card-bg-dark-mode);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-slot-games__faq-question:hover {
    background: rgba(255, 255, 255, 0.15);
}

.page-slot-games__faq-question:active {
    background: rgba(255, 255, 255, 0.2);
}

.page-slot-games__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-slot-games__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent toggle icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg); /* Change from + to X or - */
    color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-slot-games__faq-answer p {
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
}

/* === Brand Section === */
.page-slot-games__brand-section {
    background-color: #0d0d0d;
    padding: 60px 0;
    border-top: 1px solid var(--border-color-dark-mode);
}

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

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

.page-slot-games__brand-item-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* === Blog Section === */
.page-slot-games__blog-section {
    background-color: #1a1a1a;
    padding: 60px 0;
    border-top: 1px solid var(--border-color-dark-mode);
}

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

.page-slot-games__blog-item {
    background: var(--card-bg-dark-mode);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color-dark-mode);
}

.page-slot-games__blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__blog-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: var(--text-color-dark-bg);
}

.page-slot-games__blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-slot-games__blog-item-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-slot-games__blog-item-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 15px;
}

.page-slot-games__blog-item-date {
    font-size: 14px;
    color: #999;
    display: block;
    text-align: right;
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: 40px;
    }
    .page-slot-games__heading {
        font-size: 32px;
    }
    .page-slot-games__feature-title, .page-slot-games__game-title, .page-slot-games__step-title, .page-slot-games__brand-item-title, .page-slot-games__blog-item-title {
        font-size: 20px;
    }
    .page-slot-games p, .page-slot-games li, .page-slot-games__game-description, .page-slot-games__blog-item-excerpt {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-slot-games__video-section {
        padding-top: 10px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-slot-games__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    
    .page-slot-games__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-slot-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: 4px;
        overflow: hidden !important;
    }
    
    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 4px;
        object-fit: contain;
    }
    
    .page-slot-games__video-cta {
        margin-top: 20px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .page-slot-games__play-now-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 30px !important;
        font-size: 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-slot-games__video-click-hint {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }

    .page-slot-games__container {
        padding: 30px 15px;
    }
    .page-slot-games__main-title {
        font-size: 32px;
    }
    .page-slot-games__title-description {
        font-size: 16px;
    }
    .page-slot-games__heading {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-slot-games p, .page-slot-games li {
        font-size: 15px;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__cta-button {
        width: 100%;
        font-size: 16px;
        padding: 12px 25px;
    }
    .page-slot-games__features-grid, .page-slot-games__games-grid, .page-slot-games__brand-content, .page-slot-games__blog-list {
        grid-template-columns: 1fr;
    }
    .page-slot-games__feature-item, .page-slot-games__game-card, .page-slot-games__guide-step, .page-slot-games__brand-item, .page-slot-games__blog-item {
        padding: 20px;
    }
    .page-slot-games__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-slot-games__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-slot-games__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-slot-games__faq-answer {
        padding: 0 15px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px !important;
    }
    
    /* Ensure all images are responsive */
    .page-slot-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__section, .page-slot-games__card, .page-slot-games__container, .page-slot-games__game-card, .page-slot-games__feature-item, .page-slot-games__brand-item, .page-slot-games__blog-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-slot-games__video-section, .page-slot-games__title-section, .page-slot-games__intro-section, .page-slot-games__advantages-section, .page-slot-games__popular-games-section, .page-slot-games__guide-section, .page-slot-games__promotions-section, .page-slot-games__responsible-gaming-section, .page-slot-games__faq-section, .page-slot-games__brand-section, .page-slot-games__blog-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-slot-games__main-title {
        font-size: 28px;
    }
    .page-slot-games__heading {
        font-size: 24px;
    }
    .page-slot-games__play-now-button {
        font-size: 14px !important;
        padding: 10px 20px !important;
    }
    .page-slot-games__video-click-hint {
        font-size: 12px !important;
        padding: 6px 12px !important;
    }
    .page-slot-games__feature-title, .page-slot-games__game-title, .page-slot-games__step-title, .page-slot-games__brand-item-title, .page-slot-games__blog-item-title {
        font-size: 18px;
    }
    .page-slot-games p, .page-slot-games li, .page-slot-games__game-description, .page-slot-games__blog-item-excerpt {
        font-size: 14px;
    }
    .page-slot-games__faq-question h3 {
        font-size: 14px;
    }
    .page-slot-games__faq-toggle {
        font-size: 18px;
        width: 20px;
        height: 20px;
    }
}