/* LuckyGame PH CSS Styles */
/* All classes use prefix "v7dc-" for namespace isolation */

:root {
    /* Color palette */
    --v7dc-primary: #B8860B;
    --v7dc-secondary: #BDB76B;
    --v7dc-accent: #CD853F;
    --v7dc-highlight: #00FFFF;
    --v7dc-dark: #1B263B;

    /* Background colors */
    --v7dc-bg-primary: #1B263B;
    --v7dc-bg-secondary: #0F172A;
    --v7dc-bg-card: rgba(27, 38, 59, 0.8);

    /* Text colors */
    --v7dc-text-primary: #FFFFFF;
    --v7dc-text-secondary: #BDB76B;
    --v7dc-text-accent: #00FFFF;
    --v7dc-text-muted: #94A3B8;

    /* Status colors */
    --v7dc-success: #10B981;
    --v7dc-warning: #F59E0B;
    --v7dc-error: #EF4444;

    /* Spacing */
    --v7dc-spacing-xs: 0.25rem;
    --v7dc-spacing-sm: 0.5rem;
    --v7dc-spacing-md: 1rem;
    --v7dc-spacing-lg: 1.5rem;
    --v7dc-spacing-xl: 2rem;

    /* Typography */
    --v7dc-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --v7dc-font-mono: 'Fira Code', 'Courier New', monospace;

    /* Layout */
    --v7dc-max-width: 430px;
    --v7dc-header-height: 56px;
    --v7dc-bottom-nav-height: 64px;
    --v7dc-border-radius: 0.5rem;
    --v7dc-border-radius-sm: 0.25rem;
    --v7dc-border-radius-lg: 1rem;

    /* Transitions */
    --v7dc-transition-fast: 0.15s ease;
    --v7dc-transition-normal: 0.3s ease;
    --v7dc-transition-slow: 0.5s ease;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--v7dc-font-primary);
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--v7dc-text-primary);
    background: linear-gradient(135deg, var(--v7dc-bg-primary) 0%, var(--v7dc-bg-secondary) 100%);
    min-height: 100vh;
    max-width: var(--v7dc-max-width);
    margin: 0 auto;
    overflow-x: hidden;
}

/* Utility classes */
.v7dc-container {
    width: 100%;
    max-width: var(--v7dc-max-width);
    margin: 0 auto;
    padding: 0 var(--v7dc-spacing-md);
}

.v7dc-wrapper {
    min-height: 100vh;
    padding-top: var(--v7dc-header-height);
    padding-bottom: var(--v7dc-bottom-nav-height);
}

.v7dc-grid {
    display: grid;
    gap: var(--v7dc-spacing-md);
}

.v7dc-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v7dc-flex-col {
    display: flex;
    flex-direction: column;
}

.v7dc-text-center {
    text-align: center;
}

.v7dc-text-left {
    text-align: left;
}

.v7dc-text-right {
    text-align: right;
}

/* Header and Navigation */
.v7dc-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--v7dc-max-width);
    height: var(--v7dc-header-height);
    background: rgba(27, 38, 59, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
    z-index: 1000;
}

.v7dc-header-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--v7dc-spacing-md);
}

.v7dc-logo {
    display: flex;
    align-items: center;
    gap: var(--v7dc-spacing-sm);
    text-decoration: none;
    color: var(--v7dc-text-primary);
    font-weight: 700;
    font-size: 1.6rem;
}

.v7dc-logo img {
    width: 24px;
    height: 24px;
    border-radius: var(--v7dc-border-radius-sm);
}

.v7dc-header-actions {
    display: flex;
    align-items: center;
    gap: var(--v7dc-spacing-sm);
}

.v7dc-btn {
    padding: var(--v7dc-spacing-sm) var(--v7dc-spacing-md);
    border: none;
    border-radius: var(--v7dc-border-radius);
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--v7dc-transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 60px;
}

.v7dc-btn-primary {
    background: linear-gradient(135deg, var(--v7dc-primary) 0%, var(--v7dc-accent) 100%);
    color: var(--v7dc-text-primary);
    box-shadow: 0 2px 4px rgba(184, 134, 11, 0.3);
}

.v7dc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(184, 134, 11, 0.4);
}

.v7dc-btn-secondary {
    background: rgba(0, 255, 255, 0.1);
    color: var(--v7dc-highlight);
    border: 1px solid var(--v7dc-highlight);
}

.v7dc-btn-secondary:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-1px);
}

.v7dc-menu-toggle {
    background: none;
    border: none;
    color: var(--v7dc-text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: var(--v7dc-spacing-sm);
    border-radius: var(--v7dc-border-radius-sm);
    transition: all var(--v7dc-transition-fast);
}

.v7dc-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.v7dc-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--v7dc-bg-secondary);
    backdrop-filter: blur(10px);
    z-index: 9999;
    transition: right var(--v7dc-transition-normal);
    overflow-y: auto;
    border-left: 1px solid rgba(184, 134, 11, 0.2);
}

.v7dc-mobile-menu.active {
    right: 0;
}

.v7dc-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--v7dc-transition-normal);
}

.v7dc-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.v7dc-menu-header {
    padding: var(--v7dc-spacing-lg);
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v7dc-menu-close {
    background: none;
    border: none;
    color: var(--v7dc-text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: var(--v7dc-spacing-sm);
    border-radius: var(--v7dc-border-radius-sm);
    transition: all var(--v7dc-transition-fast);
}

.v7dc-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.v7dc-menu-nav {
    padding: var(--v7dc-spacing-md);
}

.v7dc-menu-nav ul {
    list-style: none;
}

.v7dc-menu-nav li {
    margin-bottom: var(--v7dc-spacing-sm);
}

.v7dc-menu-nav a {
    display: block;
    padding: var(--v7dc-spacing-md);
    color: var(--v7dc-text-primary);
    text-decoration: none;
    border-radius: var(--v7dc-border-radius);
    transition: all var(--v7dc-transition-fast);
    font-weight: 500;
}

.v7dc-menu-nav a:hover {
    background: rgba(184, 134, 11, 0.1);
    color: var(--v7dc-primary);
}

/* Carousel */
.v7dc-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--v7dc-border-radius-lg);
    margin: var(--v7dc-spacing-lg) 0;
}

.v7dc-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--v7dc-transition-normal);
    cursor: pointer;
}

.v7dc-carousel-slide.active {
    opacity: 1;
}

.v7dc-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v7dc-carousel-indicators {
    position: absolute;
    bottom: var(--v7dc-spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--v7dc-spacing-sm);
}

.v7dc-carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all var(--v7dc-transition-fast);
}

.v7dc-carousel-indicator.active {
    background: var(--v7dc-highlight);
    transform: scale(1.2);
}

/* Game Cards */
.v7dc-game-card {
    background: var(--v7dc-bg-card);
    border-radius: var(--v7dc-border-radius);
    overflow: hidden;
    transition: all var(--v7dc-transition-fast);
    cursor: pointer;
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.v7dc-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
    border-color: var(--v7dc-highlight);
}

.v7dc-game-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.v7dc-game-info {
    padding: var(--v7dc-spacing-sm);
}

.v7dc-game-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--v7dc-text-primary);
    text-align: center;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Game Grid */
.v7dc-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: var(--v7dc-spacing-sm);
    margin: var(--v7dc-spacing-lg) 0;
}

/* Sections */
.v7dc-section {
    margin: var(--v7dc-spacing-xl) 0;
    padding: var(--v7dc-spacing-lg);
    background: var(--v7dc-bg-card);
    border-radius: var(--v7dc-border-radius-lg);
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.v7dc-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v7dc-primary);
    margin-bottom: var(--v7dc-spacing-lg);
    text-align: center;
}

.v7dc-section-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--v7dc-secondary);
    margin-bottom: var(--v7dc-spacing-md);
}

/* Bottom Navigation */
.v7dc-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--v7dc-max-width);
    height: var(--v7dc-bottom-nav-height);
    background: var(--v7dc-bg-secondary);
    border-top: 1px solid rgba(184, 134, 11, 0.2);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: var(--v7dc-spacing-xs) 0;
}

.v7dc-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: var(--v7dc-spacing-xs);
    text-decoration: none;
    color: var(--v7dc-text-muted);
    transition: all var(--v7dc-transition-fast);
    border-radius: var(--v7dc-border-radius-sm);
    cursor: pointer;
}

.v7dc-bottom-nav-item:hover,
.v7dc-bottom-nav-item.active {
    color: var(--v7dc-highlight);
    background: rgba(0, 255, 255, 0.1);
    transform: scale(1.05);
}

.v7dc-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: var(--v7dc-spacing-xs);
}

.v7dc-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Footer */
.v7dc-footer {
    background: var(--v7dc-bg-secondary);
    border-top: 1px solid rgba(184, 134, 11, 0.2);
    padding: var(--v7dc-spacing-lg) var(--v7dc-spacing-md);
    margin-bottom: var(--v7dc-bottom-nav-height);
}

.v7dc-footer-content {
    text-align: center;
}

.v7dc-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--v7dc-spacing-md);
    margin-bottom: var(--v7dc-spacing-lg);
}

.v7dc-footer-links a {
    color: var(--v7dc-text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color var(--v7dc-transition-fast);
}

.v7dc-footer-links a:hover {
    color: var(--v7dc-primary);
}

.v7dc-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--v7dc-spacing-md);
    margin: var(--v7dc-spacing-lg) 0;
}

.v7dc-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity var(--v7dc-transition-fast);
}

.v7dc-partner-logo:hover {
    opacity: 1;
}

.v7dc-copyright {
    color: var(--v7dc-text-muted);
    font-size: 1rem;
    margin-top: var(--v7dc-spacing-lg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .v7dc-wrapper {
        padding-bottom: var(--v7dc-bottom-nav-height);
    }

    .v7dc-bottom-nav {
        display: flex;
    }

    .v7dc-desktop-nav {
        display: none;
    }

    .v7dc-games-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    }
}

@media (min-width: 769px) {
    .v7dc-bottom-nav {
        display: none;
    }

    .v7dc-desktop-nav {
        display: flex;
    }

    .v7dc-wrapper {
        padding-bottom: 0;
    }

    .v7dc-footer {
        margin-bottom: 0;
    }
}

/* Animations */
@keyframes v7dc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes v7dc-slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes v7dc-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.v7dc-fade-in {
    animation: v7dc-fadeIn 0.6s ease-out;
}

.v7dc-slide-in {
    animation: v7dc-slideIn 0.3s ease-out;
}

.v7dc-pulse {
    animation: v7dc-pulse 2s infinite;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
.v7dc-btn:focus,
.v7dc-menu-toggle:focus,
.v7dc-bottom-nav-item:focus {
    outline: 2px solid var(--v7dc-highlight);
    outline-offset: 2px;
}

/* Loading states */
.v7dc-loading {
    position: relative;
    overflow: hidden;
}

.v7dc-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}