/**
 * Lucky Taya - Main Stylesheet
 * Website: luckytaya.click
 * All classes use 'vaff-' prefix for namespace isolation
 * Mobile-first responsive design (max-width: 430px)
 */

/* CSS Variables with vaff prefix */
:root {
    --vaff-primary: #FF9500;
    --vaff-secondary: #ADB5BD;
    --vaff-bg: #0C0C0C;
    --vaff-bg-light: #1a1a1a;
    --vaff-text: #ADB5BD;
    --vaff-text-light: #ffffff;
    --vaff-accent: #FF9500;
    --vaff-border: #2a2a2a;
    --vaff-shadow: rgba(255, 149, 0, 0.2);
    --vaff-gradient: linear-gradient(135deg, #FF9500 0%, #ff6b00 100%);
}

/* Reset and 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, Oxygen, Ubuntu, sans-serif;
    background-color: var(--vaff-bg);
    color: var(--vaff-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    overflow-x: hidden;
}

a {
    color: var(--vaff-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--vaff-text-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container Styles */
.vaff-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.vaff-wrapper {
    width: 100%;
    padding: 1.5rem;
}

/* Header Styles */
.vaff-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(12, 12, 12, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--vaff-border);
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.vaff-header-scrolled {
    background-color: rgba(12, 12, 12, 0.98);
    box-shadow: 0 2px 20px var(--vaff-shadow);
}

.vaff-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.vaff-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.vaff-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.vaff-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--vaff-text-light);
}

.vaff-logo-text span {
    color: var(--vaff-accent);
}

.vaff-header-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.vaff-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    min-height: 36px;
    min-width: 70px;
}

.vaff-btn-primary {
    background: var(--vaff-gradient);
    color: var(--vaff-text-light);
}

.vaff-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--vaff-shadow);
}

.vaff-btn-outline {
    background: transparent;
    border: 1px solid var(--vaff-accent);
    color: var(--vaff-accent);
}

.vaff-btn-outline:hover {
    background: var(--vaff-accent);
    color: var(--vaff-bg);
}

.vaff-menu-toggle {
    background: none;
    border: none;
    color: var(--vaff-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.vaff-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--vaff-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.vaff-menu-active {
    right: 0;
}

.vaff-mobile-nav {
    list-style: none;
    padding: 0;
    margin-top: 3rem;
}

.vaff-mobile-nav li {
    margin-bottom: 1rem;
}

.vaff-mobile-nav a {
    display: block;
    padding: 1rem;
    color: var(--vaff-text);
    font-size: 1.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.vaff-mobile-nav a:hover {
    background-color: var(--vaff-border);
    color: var(--vaff-accent);
}

.vaff-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vaff-overlay-active {
    opacity: 1;
    visibility: visible;
}

.vaff-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--vaff-text);
    font-size: 2rem;
    cursor: pointer;
}

/* Main Content */
main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Hero Carousel */
.vaff-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.vaff-slides {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.vaff-slide {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.vaff-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.vaff-slide-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 0;
}

.vaff-slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--vaff-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.vaff-dot-active {
    background-color: var(--vaff-accent);
    width: 20px;
    border-radius: 4px;
}

/* Section Styles */
.vaff-section {
    padding: 2rem 0;
}

.vaff-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vaff-text-light);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.vaff-section-title i {
    color: var(--vaff-accent);
}

/* Game Grid */
.vaff-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.vaff-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.vaff-game-item:hover {
    transform: scale(1.05);
}

.vaff-game-icon {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.5rem;
    border: 2px solid var(--vaff-border);
    transition: border-color 0.3s ease;
}

.vaff-game-item:hover .vaff-game-icon {
    border-color: var(--vaff-accent);
}

.vaff-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vaff-game-name {
    font-size: 1.1rem;
    color: var(--vaff-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Tabs */
.vaff-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vff-text-light);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--vaff-accent);
    display: inline-block;
}

/* Info Cards */
.vaff-info-card {
    background-color: var(--vaff-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--vaff-border);
}

.vaff-info-card h3 {
    font-size: 1.5rem;
    color: var(--vaff-text-light);
    margin-bottom: 1rem;
}

.vaff-info-card p {
    color: var(--vaff-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.vaff-info-card ul {
    list-style: none;
    padding: 0;
}

.vaff-info-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--vaff-text);
}

.vaff-info-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--vaff-accent);
}

/* Promo Banner */
.vaff-promo-banner {
    background: var(--vaff-gradient);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin: 2rem 0;
}

.vaff-promo-banner h3 {
    color: var(--vaff-text-light);
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.vaff-promo-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Footer Styles */
.vaff-footer {
    background-color: var(--vaff-bg-light);
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--vaff-border);
}

.vaff-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.vaff-footer-links a {
    font-size: 1.2rem;
    color: var(--vaff-text);
    padding: 0.5rem;
}

.vaff-footer-links a:hover {
    color: var(--vaff-accent);
}

.vaff-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.vaff-partners img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.vaff-partners img:hover {
    opacity: 1;
}

.vaff-copyright {
    text-align: center;
    font-size: 1.1rem;
    color: var(--vaff-text);
    opacity: 0.7;
}

/* Mobile Bottom Navigation */
.vaff-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--vaff-bg-light);
    border-top: 1px solid var(--vaff-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.vaff-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--vaff-text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vaff-nav-item:hover,
.vaff-nav-item.active {
    color: var(--vaff-accent);
    transform: scale(1.1);
}

.vaff-nav-item i {
    font-size: 22px;
    margin-bottom: 2px;
}

.vaff-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Responsive Design */
@media (min-width: 431px) {
    .vaff-container {
        max-width: 430px;
    }
}

@media (min-width: 769px) {
    .vaff-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 2rem;
    }

    .vaff-header-inner {
        max-width: 800px;
    }

    .vaff-game-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Utility Classes */
.vaff-text-center {
    text-align: center;
}

.vaff-mb-1 {
    margin-bottom: 1rem;
}

.vaff-mb-2 {
    margin-bottom: 2rem;
}

.vaff-mt-2 {
    margin-top: 2rem;
}

.vaff-hidden {
    display: none;
}

.vaff-promo-link {
    color: var(--vaff-accent);
    font-weight: 600;
    cursor: pointer;
}

.vaff-promo-link:hover {
    color: var(--vaff-text-light);
    text-decoration: underline;
}

/* Animations */
@keyframes vaff-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.vaff-pulse {
    animation: vaff-pulse 2s infinite;
}
