/**
 * SugarPlay - Core Stylesheet
 * Version: 1.0.0
 * All classes use 'va69-' prefix for namespace isolation
 * Color Palette: #FF0000 | #8B0000 | #CD853F | #34495E | #FFC0CB
 */

/* CSS Variables */
:root {
    --va69-primary: #FF0000;
    --va69-primary-dark: #8B0000;
    --va69-accent: #CD853F;
    --va69-bg-dark: #34495E;
    --va69-bg-light: #FFC0CB;
    --va69-text-light: #FFFFFF;
    --va69-text-dark: #1a1a2e;
    --va69-gradient: linear-gradient(135deg, #8B0000 0%, #FF0000 50%, #CD853F 100%);
    --va69-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --va69-radius: 12px;
    --va69-radius-sm: 8px;
    --va69-transition: all 0.3s ease;
}

/* Reset and Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--va69-text-light);
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.va69-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.va69-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: var(--va69-transition);
}

.va69-header-scrolled {
    background: rgba(139, 0, 0, 0.95);
    box-shadow: var(--va69-shadow);
}

.va69-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.va69-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.va69-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.va69-logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--va69-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.va69-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.va69-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
    font-weight: 600;
    border: none;
    border-radius: var(--va69-radius-sm);
    cursor: pointer;
    transition: var(--va69-transition);
    text-decoration: none;
    min-height: 44px;
    min-width: 44px;
}

.va69-btn-primary {
    background: var(--va69-gradient);
    color: var(--va69-text-light);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

.va69-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
}

.va69-btn-secondary {
    background: transparent;
    color: var(--va69-text-light);
    border: 2px solid var(--va69-accent);
}

.va69-btn-secondary:hover {
    background: var(--va69-accent);
    color: var(--va69-text-dark);
}

.va69-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.va69-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--va69-text-light);
    border-radius: 2px;
    transition: var(--va69-transition);
}

/* Mobile Menu */
.va69-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #0f0f23 100%);
    z-index: 9999;
    padding: 8rem 2rem 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.va69-menu-active {
    right: 0;
}

.va69-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: var(--va69-transition);
}

.va69-overlay-active {
    opacity: 1;
    visibility: visible;
}

.va69-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--va69-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}

.va69-nav-list {
    list-style: none;
}

.va69-nav-item {
    margin-bottom: 1rem;
}

.va69-nav-link {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--va69-text-light);
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: var(--va69-radius-sm);
    transition: var(--va69-transition);
}

.va69-nav-link:hover {
    background: rgba(255, 0, 0, 0.2);
    color: var(--va69-primary);
}

/* Main Content */
.va69-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Carousel */
.va69-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 0 0 var(--va69-radius) var(--va69-radius);
}

.va69-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.va69-slide-active {
    opacity: 1;
}

.va69-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Section */
.va69-hero {
    padding: 2rem 0;
    text-align: center;
}

.va69-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--va69-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.va69-hero p {
    font-size: 1.5rem;
    color: var(--va69-text-light);
    opacity: 0.9;
}

/* Section */
.va69-section {
    padding: 2rem 0;
}

.va69-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--va69-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--va69-accent);
}

/* Game Grid */
.va69-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.va69-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--va69-radius-sm);
    cursor: pointer;
    transition: var(--va69-transition);
    text-decoration: none;
}

.va69-game-card:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: translateY(-3px);
}

.va69-game-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--va69-radius-sm);
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.va69-game-name {
    font-size: 1.1rem;
    color: var(--va69-text-light);
    text-align: center;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Feature Cards */
.va69-feature-card {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.3) 0%, rgba(52, 73, 94, 0.3) 100%);
    border-radius: var(--va69-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(205, 133, 63, 0.3);
}

.va69-feature-card h3 {
    font-size: 1.8rem;
    color: var(--va69-accent);
    margin-bottom: 1rem;
}

.va69-feature-card p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: var(--va69-text-light);
    opacity: 0.9;
}

/* Bottom Navigation */
.va69-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.98) 0%, rgba(15, 15, 35, 1) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 0, 0, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.va69-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--va69-text-light);
    text-decoration: none;
    transition: var(--va69-transition);
    cursor: pointer;
    opacity: 0.7;
}

.va69-bottom-nav-item:hover,
.va69-bottom-nav-item.active {
    opacity: 1;
    color: var(--va69-primary);
}

.va69-bottom-nav-item i,
.va69-bottom-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.va69-bottom-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

/* Footer */
.va69-footer {
    background: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);
    padding: 2rem 0;
    border-top: 1px solid rgba(205, 133, 63, 0.2);
}

.va69-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.va69-footer-link {
    color: var(--va69-text-light);
    text-decoration: none;
    font-size: 1.3rem;
    opacity: 0.8;
    transition: var(--va69-transition);
}

.va69-footer-link:hover {
    color: var(--va69-primary);
    opacity: 1;
}

.va69-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.va69-partner-logo {
    width: 50px;
    height: 30px;
    object-fit: contain;
    opacity: 0.6;
    transition: var(--va69-transition);
}

.va69-partner-logo:hover {
    opacity: 1;
}

.va69-copyright {
    text-align: center;
    font-size: 1.2rem;
    color: var(--va69-text-light);
    opacity: 0.6;
}

/* Text Link */
.va69-text-link {
    color: var(--va69-accent);
    text-decoration: underline;
    transition: var(--va69-transition);
}

.va69-text-link:hover {
    color: var(--va69-primary);
}

/* Promo Text */
.va69-promo-text {
    font-weight: 700;
    color: var(--va69-primary);
    cursor: pointer;
    transition: var(--va69-transition);
}

.va69-promo-text:hover {
    color: var(--va69-accent);
    text-decoration: underline;
}

/* RTP Section */
.va69-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.va69-rtp-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--va69-radius-sm);
    text-align: center;
}

.va69-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--va69-primary);
}

.va69-rtp-label {
    font-size: 1.2rem;
    color: var(--va69-text-light);
    opacity: 0.8;
}

/* Responsive */
@media (min-width: 769px) {
    .va69-bottom-nav {
        display: none;
    }

    .va69-main {
        padding-bottom: 2rem;
    }

    .va69-container {
        max-width: 768px;
    }

    .va69-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 768px) {
    .va69-main {
        padding-bottom: 80px;
    }
}

/* Utility */
.va69-text-center {
    text-align: center;
}

.va69-mt-2 {
    margin-top: 2rem;
}

.va69-mb-2 {
    margin-bottom: 2rem;
}

.va69-hidden {
    display: none;
}
