/**
 * LuckyWin Theme CSS
 * Mobile-first responsive design with v09d- prefix classes
 */

/* CSS Custom Properties */
:root {
    --v09d-primary-dark: #1A1A2E;
    --v09d-primary-pink: #FF69B4;
    --v09d-primary-red: #B22222;
    --v09d-text-light: #FFFFFF;
    --v09d-text-gray: #E0E0E0;
    --v09d-text-dim: #AAAAAA;
    --v09d-bg-dark: #0F0F1E;
    --v09d-bg-medium: #1A1A2E;
    --v09d-bg-light: #252540;
    --v09d-border-color: #333344;
    --v09d-hover-pink: #FF85C1;
    --v09d-hover-red: #CC3333;
    --v09d-success: #4CAF50;
    --v09d-warning: #FF9800;
    --v09d-error: #F44336;
    --v09d-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --v09d-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --v09d-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --v09d-radius-sm: 4px;
    --v09d-radius-md: 8px;
    --v09d-radius-lg: 12px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--v09d-text-light);
    background: linear-gradient(135deg, var(--v09d-bg-dark) 0%, var(--v09d-primary-dark) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.v09d-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.v09d-wrapper {
    padding-bottom: 8rem;
}

/* Header Styles */
.v09d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--v09d-border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.v09d-header.v09d-scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: var(--v09d-shadow-md);
}

.v09d-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.6rem;
    max-width: 430px;
    margin: 0 auto;
}

.v09d-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--v09d-text-light);
    font-weight: 600;
    font-size: 1.8rem;
}

.v09d-logo img {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: var(--v09d-radius-sm);
}

.v09d-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.v09d-btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: var(--v09d-radius-md);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 4rem;
}

.v09d-btn-primary {
    background: linear-gradient(135deg, var(--v09d-primary-pink), var(--v09d-hover-pink));
    color: var(--v09d-text-light);
    box-shadow: var(--v09d-shadow-sm);
}

.v09d-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--v09d-shadow-md);
}

.v09d-btn-secondary {
    background: transparent;
    color: var(--v09d-text-light);
    border: 2px solid var(--v09d-primary-pink);
}

.v09d-btn-secondary:hover {
    background: var(--v09d-primary-pink);
    transform: translateY(-1px);
}

.v09d-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    gap: 0.4rem;
}

.v09d-hamburger span {
    width: 2.4rem;
    height: 2px;
    background: var(--v09d-text-light);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.v09d-hamburger.v09d-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.v09d-hamburger.v09d-active span:nth-child(2) {
    opacity: 0;
}

.v09d-hamburger.v09d-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.v09d-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--v09d-bg-medium);
    box-shadow: var(--v09d-shadow-lg);
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.v09d-mobile-menu.v09d-menu-open {
    left: 0;
}

.v09d-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.6rem;
    border-bottom: 1px solid var(--v09d-border-color);
}

.v09d-menu-close {
    background: transparent;
    border: none;
    color: var(--v09d-text-light);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.4rem;
}

.v09d-menu-nav {
    padding: 1.6rem 0;
}

.v09d-menu-item {
    display: block;
    padding: 1.2rem 1.6rem;
    color: var(--v09d-text-light);
    text-decoration: none;
    transition: background 0.3s ease;
    border-bottom: 1px solid var(--v09d-border-color);
}

.v09d-menu-item:hover {
    background: var(--v09d-bg-light);
    padding-left: 2.4rem;
}

/* Bottom Navigation */
.v09d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--v09d-primary-dark), var(--v09d-bg-light));
    border-top: 1px solid var(--v09d-border-color);
    z-index: 1000;
    height: 6.4rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

.v09d-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 6rem;
    text-decoration: none;
    color: var(--v09d-text-gray);
    transition: all 0.3s ease;
    gap: 0.4rem;
    padding: 0.8rem;
    border-radius: var(--v09d-radius-md);
}

.v09d-nav-item:hover {
    color: var(--v09d-primary-pink);
    background: rgba(255, 105, 180, 0.1);
    transform: scale(1.05);
}

.v09d-nav-item.v09d-active {
    color: var(--v09d-primary-pink);
    background: rgba(255, 105, 180, 0.15);
}

.v09d-nav-item i {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
}

.v09d-nav-item span {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Carousel Styles */
.v09d-carousel {
    position: relative;
    width: 100%;
    height: 20rem;
    margin: 7.2rem 0 2.4rem;
    overflow: hidden;
    border-radius: var(--v09d-radius-lg);
    box-shadow: var(--v09d-shadow-md);
}

.v09d-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.v09d-slide.v09d-active {
    opacity: 1;
}

.v09d-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v09d-dots {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.v09d-dot {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.v09d-dot.v09d-active {
    background: var(--v09d-primary-pink);
    transform: scale(1.2);
}

/* Main Content */
main {
    margin-top: 1.6rem;
}

.v09d-section {
    margin-bottom: 4.8rem;
}

.v09d-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--v09d-text-light);
    margin-bottom: 2.4rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.2rem;
}

.v09d-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 8rem;
    height: 3px;
    background: linear-gradient(90deg, var(--v09d-primary-pink), var(--v09d-primary-red));
    border-radius: 2px;
}

/* Game Grid */
.v09d-game-section {
    margin-bottom: 4.8rem;
}

.v09d-game-category {
    margin-bottom: 3.2rem;
}

.v09d-category-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--v09d-primary-pink);
    margin-bottom: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.v09d-category-title i {
    font-size: 2.2rem;
}

.v09d-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin-bottom: 2.4rem;
}

.v09d-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--v09d-text-light);
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: var(--v09d-radius-md);
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.v09d-game-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 105, 180, 0.1);
    border-color: var(--v09d-primary-pink);
    box-shadow: var(--v09d-shadow-md);
}

.v09d-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--v09d-radius-sm);
    margin-bottom: 0.8rem;
}

.v09d-game-name {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Feature Cards */
.v09d-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
    margin-bottom: 3.2rem;
}

.v09d-feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--v09d-border-color);
    border-radius: var(--v09d-radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.v09d-feature-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 105, 180, 0.1);
    border-color: var(--v09d-primary-pink);
    box-shadow: var(--v09d-shadow-md);
}

.v09d-feature-icon {
    font-size: 4rem;
    color: var(--v09d-primary-pink);
    margin-bottom: 1.6rem;
}

.v09d-feature-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--v09d-text-light);
    margin-bottom: 1.2rem;
}

.v09d-feature-description {
    font-size: 1.2rem;
    color: var(--v09d-text-gray);
    line-height: 1.6;
}

/* Promotions Section */
.v09d-promotion {
    background: linear-gradient(135deg, var(--v09d-primary-pink), var(--v09d-primary-red));
    border-radius: var(--v09d-radius-lg);
    padding: 3.2rem;
    text-align: center;
    margin-bottom: 4.8rem;
    box-shadow: var(--v09d-shadow-lg);
}

.v09d-promotion-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--v09d-text-light);
    margin-bottom: 1.6rem;
}

.v09d-promotion-description {
    font-size: 1.6rem;
    color: var(--v09d-text-light);
    margin-bottom: 2.4rem;
    line-height: 1.6;
}

.v09d-btn-large {
    padding: 1.2rem 3.2rem;
    font-size: 1.8rem;
    font-weight: 700;
    border-radius: var(--v09d-radius-lg);
    box-shadow: var(--v09d-shadow-lg);
}

/* FAQ Section */
.v09d-faq {
    margin-bottom: 4.8rem;
}

.v09d-faq-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--v09d-border-color);
    border-radius: var(--v09d-radius-md);
    margin-bottom: 1.2rem;
    overflow: hidden;
}

.v09d-faq-question {
    width: 100%;
    padding: 1.6rem;
    background: transparent;
    border: none;
    color: var(--v09d-text-light);
    font-size: 1.4rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.v09d-faq-question:hover {
    background: rgba(255, 105, 180, 0.1);
}

.v09d-faq-answer {
    padding: 0 1.6rem 1.6rem;
    color: var(--v09d-text-gray);
    font-size: 1.3rem;
    line-height: 1.6;
    display: none;
}

.v09d-faq-item.v09d-active .v09d-faq-answer {
    display: block;
}

.v09d-faq-item.v09d-active .v09d-faq-icon {
    transform: rotate(180deg);
}

/* Footer */
.v09d-footer {
    background: var(--v09d-bg-medium);
    border-top: 1px solid var(--v09d-border-color);
    padding: 3.2rem 0 8rem;
    margin-top: 6.4rem;
}

.v09d-footer-content {
    text-align: center;
}

.v09d-footer-logo {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--v09d-primary-pink);
    margin-bottom: 1.6rem;
}

.v09d-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin-bottom: 2.4rem;
}

.v09d-footer-link {
    color: var(--v09d-text-gray);
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.v09d-footer-link:hover {
    color: var(--v09d-primary-pink);
}

.v09d-partners {
    margin: 3.2rem 0;
}

.v09d-partners-title {
    font-size: 1.4rem;
    color: var(--v09d-text-dim);
    margin-bottom: 1.6rem;
}

.v09d-partners-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.6rem;
}

.v09d-partner-logo {
    width: 4rem;
    height: 4rem;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.v09d-partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

.v09d-copyright {
    color: var(--v09d-text-dim);
    font-size: 1.2rem;
    margin-top: 2.4rem;
}

/* Touch Feedback */
.v09d-touch-active {
    transform: scale(0.95) !important;
    opacity: 0.8 !important;
}

/* Lazy Loading */
.v09d-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.v09d-lazy:not(.v09d-lazy) {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .v09d-header-actions .v09d-btn {
        display: none;
    }

    .v09d-hamburger {
        display: flex;
    }

    .v09d-wrapper {
        padding-bottom: 8rem;
    }

    .v09d-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .v09d-feature-grid {
        grid-template-columns: 1fr;
    }

    .v09d-bottom-nav {
        display: flex;
    }
}

@media (min-width: 769px) {
    .v09d-mobile-menu {
        display: none;
    }

    .v09d-bottom-nav {
        display: none;
    }

    .v09d-wrapper {
        padding-bottom: 0;
    }

    .v09d-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .v09d-feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Page Visibility */
.v09d-page-hidden .v09d-carousel,
.v09d-page-hidden .v09d-animation {
    animation-play-state: paused;
}

/* Utility Classes */
.v09d-text-center {
    text-align: center;
}

.v09d-text-left {
    text-align: left;
}

.v09d-text-right {
    text-align: right;
}

.v09d-mb-1 { margin-bottom: 1rem; }
.v09d-mb-2 { margin-bottom: 1.6rem; }
.v09d-mb-3 { margin-bottom: 2.4rem; }
.v09d-mb-4 { margin-bottom: 3.2rem; }

.v09d-mt-1 { margin-top: 1rem; }
.v09d-mt-2 { margin-top: 1.6rem; }
.v09d-mt-3 { margin-top: 2.4rem; }
.v09d-mt-4 { margin-top: 3.2rem; }

.v09d-p-1 { padding: 1rem; }
.v09d-p-2 { padding: 1.6rem; }
.v09d-p-3 { padding: 2.4rem; }
.v09d-p-4 { padding: 3.2rem; }

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--v09d-bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--v09d-primary-pink);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--v09d-hover-pink);
}