/**
 * Luckygame Ph - CSS Design System
 * Version: 1.0.0
 * All classes use s295- prefix for namespace isolation
 * Color Palette: #00CED1 (cyan), #3A3A3A (dark gray), #20B2AA (teal), #00B8D4 (light blue)
 */

/* CSS Variables */
:root {
    --s295-primary: #00CED1;
    --s295-secondary: #20B2AA;
    --s295-accent: #00B8D4;
    --s295-bg-dark: #1a1a2e;
    --s295-bg-darker: #16213e;
    --s295-bg-card: #0f3460;
    --s295-text-light: #ffffff;
    --s295-text-muted: #a0a0a0;
    --s295-border: #2a2a4a;
    --s295-gradient: linear-gradient(135deg, #00CED1 0%, #20B2AA 50%, #00B8D4 100%);
    --s295-shadow: 0 4px 15px rgba(0, 206, 209, 0.3);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--s295-bg-dark);
    color: var(--s295-text-light);
    line-height: 1.5;
    font-size: 1.6rem;
    overflow-x: hidden;
}

a {
    color: var(--s295-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--s295-accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.s295-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.s295-wrapper {
    padding: 2rem 0;
}

/* Header */
.s295-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--s295-bg-darker);
    padding: 1rem 1.5rem;
    z-index: 1000;
    border-bottom: 1px solid var(--s295-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s295-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.s295-logo img {
    width: 32px;
    height: 32px;
}

.s295-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--s295-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.s295-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.s295-btn {
    padding: 0.8rem 1.6rem;
    border-radius: 2.5rem;
    font-weight: 600;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.s295-btn-primary {
    background: var(--s295-gradient);
    color: var(--s295-bg-dark);
}

.s295-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: var(--s295-shadow);
}

.s295-btn-outline {
    background: transparent;
    border: 2px solid var(--s295-primary);
    color: var(--s295-primary);
}

.s295-btn-outline:hover {
    background: var(--s295-primary);
    color: var(--s295-bg-dark);
}

.s295-menu-toggle {
    background: none;
    border: none;
    color: var(--s295-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.s295-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--s295-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.s295-menu-active {
    right: 0;
}

.s295-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.s295-overlay-active {
    opacity: 1;
    visibility: visible;
}

.s295-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--s295-border);
}

.s295-menu-close {
    background: none;
    border: none;
    color: var(--s295-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.s295-nav-list {
    list-style: none;
}

.s295-nav-item {
    margin-bottom: 1rem;
}

.s295-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--s295-text-light);
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.s295-nav-link:hover {
    background: var(--s295-bg-card);
    color: var(--s295-primary);
}

/* Hero Slider */
.s295-slider {
    position: relative;
    height: 200px;
    overflow: hidden;
    margin-top: 60px;
}

.s295-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.s295-slide-active {
    opacity: 1;
}

.s295-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Content */
.s295-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Section Styles */
.s295-section {
    padding: 2rem 0;
}

.s295-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--s295-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.s295-section-text {
    color: var(--s295-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Game Grid */
.s295-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.s295-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.s295-game-item:hover {
    transform: translateY(-5px);
}

.s295-game-icon {
    width: 70px;
    height: 70px;
    border-radius: 1rem;
    margin: 0 auto 0.5rem;
    overflow: hidden;
    border: 2px solid var(--s295-border);
    transition: border-color 0.3s ease;
}

.s295-game-item:hover .s295-game-icon {
    border-color: var(--s295-primary);
}

.s295-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.s295-game-name {
    font-size: 1.1rem;
    color: var(--s295-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Title */
.s295-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--s295-primary);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid var(--s295-accent);
}

/* Card Component */
.s295-card {
    background: var(--s295-bg-card);
    border-radius: 1.2rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--s295-border);
}

.s295-card-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--s295-primary);
    margin-bottom: 1rem;
}

/* Features List */
.s295-features {
    display: grid;
    gap: 1rem;
}

.s295-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.s295-feature-icon {
    width: 40px;
    height: 40px;
    background: var(--s295-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.s295-feature-icon i {
    font-size: 1.8rem;
    color: var(--s295-bg-dark);
}

.s295-feature-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.s295-feature-content p {
    font-size: 1.2rem;
    color: var(--s295-text-muted);
}

/* Promo Link */
.s295-promo-link {
    color: var(--s295-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.s295-promo-link:hover {
    color: var(--s295-accent);
    text-decoration: underline;
}

/* Footer */
.s295-footer {
    background: var(--s295-bg-darker);
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--s295-border);
}

.s295-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.s295-footer-link {
    font-size: 1.2rem;
    color: var(--s295-text-muted);
}

.s295-footer-link:hover {
    color: var(--s295-primary);
}

.s295-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.s295-partner-logo {
    height: 24px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.s295-partner-logo:hover {
    opacity: 1;
}

.s295-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--s295-text-muted);
}

/* Bottom Navigation */
.s295-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--s295-bg-darker);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--s295-border);
}

.s295-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    background: none;
    border: none;
    color: var(--s295-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.s295-nav-btn:hover,
.s295-nav-btn-active {
    color: var(--s295-primary);
}

.s295-nav-btn i {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
}

.s295-nav-btn span {
    font-size: 1rem;
}

/* FAQ Accordion */
.s295-faq-item {
    background: var(--s295-bg-card);
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.s295-faq-question {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.s295-faq-answer {
    padding: 0 1.5rem 1.2rem;
    color: var(--s295-text-muted);
    font-size: 1.3rem;
}

/* Responsive */
@media (min-width: 769px) {
    .s295-bottom-nav {
        display: none;
    }

    .s295-menu-toggle {
        display: none;
    }

    .s295-slider {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .s295-main {
        padding-bottom: 80px;
    }

    .s295-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.8rem;
    }

    .s295-game-icon {
        width: 60px;
        height: 60px;
    }

    .s295-game-name {
        font-size: 1rem;
    }
}
