/**
 * Queen PH Stylesheet
 * Mobile-first gaming website design
 */

/* CSS Variables - Color Palette */
:root {
    --v2db-primary: #FFCC33;
    --v2db-secondary: #1E90FF;
    --v2db-accent: #DAA520;
    --v2db-bg-dark: #0F0F23;
    --v2db-bg-light: #FFF8DC;
    --v2db-text-light: #C0C0C0;
    --v2db-text-dark: #0F0F23;
    --v2db-white: #FFFFFF;
    --v2db-black: #000000;
    --v2db-gray: #666666;
    --v2db-success: #28A745;
    --v2db-warning: #FFC107;
    --v2db-error: #DC3545;

    /* Typography */
    --v2db-font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --v2db-font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;

    /* Spacing */
    --v2db-spacing-xs: 0.25rem;
    --v2db-spacing-sm: 0.5rem;
    --v2db-spacing-md: 1rem;
    --v2db-spacing-lg: 1.5rem;
    --v2db-spacing-xl: 2rem;
    --v2db-spacing-xxl: 3rem;

    /* Border Radius */
    --v2db-radius-sm: 0.25rem;
    --v2db-radius-md: 0.5rem;
    --v2db-radius-lg: 0.75rem;
    --v2db-radius-xl: 1rem;

    /* Shadows */
    --v2db-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --v2db-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --v2db-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --v2db-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    font-family: var(--v2db-font-primary);
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--v2db-text-light);
    background-color: var(--v2db-bg-dark);
    overflow-x: hidden;
}

/* Typography */
.v2db-h1, .v2db-h2, .v2db-h3, .v2db-h4, .v2db-h5, .v2db-h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--v2db-spacing-md);
    color: var(--v2db-primary);
}

.v2db-h1 { font-size: 3.2rem; }
.v2db-h2 { font-size: 2.4rem; }
.v2db-h3 { font-size: 2rem; }
.v2db-h4 { font-size: 1.8rem; }
.v2db-h5 { font-size: 1.6rem; }
.v2db-h6 { font-size: 1.4rem; }

.v2db-text-center { text-align: center; }
.v2db-text-left { text-align: left; }
.v2db-text-right { text-align: right; }

/* Layout */
.v2db-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 var(--v2db-spacing-md);
}

.v2db-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.v2db-main {
    flex: 1;
    padding-bottom: 8rem; /* Space for bottom nav */
}

.v2db-grid {
    display: grid;
    gap: var(--v2db-spacing-md);
}

.v2db-grid-2 { grid-template-columns: repeat(2, 1fr); }
.v2db-grid-3 { grid-template-columns: repeat(3, 1fr); }
.v2db-grid-4 { grid-template-columns: repeat(4, 1fr); }

.v2db-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v2db-flex-col {
    flex-direction: column;
}

.v2db-flex-wrap {
    flex-wrap: wrap;
}

/* Header */
.v2db-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--v2db-bg-dark) 0%, #1a1a2e 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 204, 51, 0.2);
    padding: var(--v2db-spacing-sm) 0;
}

.v2db-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--v2db-spacing-md);
}

.v2db-logo {
    display: flex;
    align-items: center;
    gap: var(--v2db-spacing-sm);
    font-size: 2rem;
    font-weight: 700;
    color: var(--v2db-primary);
    text-decoration: none;
}

.v2db-logo-icon {
    width: 2.4rem;
    height: 2.4rem;
    background: linear-gradient(45deg, var(--v2db-primary), var(--v2db-accent));
    border-radius: var(--v2db-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--v2db-bg-dark);
}

.v2db-header-actions {
    display: flex;
    align-items: center;
    gap: var(--v2db-spacing-sm);
}

/* Buttons */
.v2db-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--v2db-spacing-sm) var(--v2db-spacing-md);
    font-size: 1.4rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--v2db-radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 4.4rem; /* Touch-friendly */
    min-width: 8rem;
}

.v2db-btn-primary {
    background: linear-gradient(135deg, var(--v2db-primary), var(--v2db-accent));
    color: var(--v2db-bg-dark);
    box-shadow: var(--v2db-shadow-md);
}

.v2db-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--v2db-shadow-lg);
}

.v2db-btn-secondary {
    background: transparent;
    color: var(--v2db-primary);
    border: 2px solid var(--v2db-primary);
}

.v2db-btn-secondary:hover {
    background: var(--v2db-primary);
    color: var(--v2db-bg-dark);
}

/* Navigation */
.v2db-nav {
    display: none;
}

.v2db-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2.4rem;
    height: 2rem;
    cursor: pointer;
    padding: 0.2rem;
    background: none;
    border: none;
}

.v2db-hamburger span {
    display: block;
    height: 0.2rem;
    background: var(--v2db-primary);
    border-radius: 0.1rem;
    transition: all 0.3s ease;
}

.v2db-hamburger.v2db-active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.v2db-hamburger.v2db-active span:nth-child(2) {
    opacity: 0;
}

.v2db-hamburger.v2db-active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Mobile Menu */
.v2db-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, var(--v2db-bg-dark) 0%, #1a1a2e 100%);
    backdrop-filter: blur(10px);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: var(--v2db-spacing-xl) var(--v2db-spacing-md);
    overflow-y: auto;
}

.v2db-mobile-menu.v2db-active {
    right: 0;
}

.v2db-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 0.3s ease;
}

.v2db-menu-overlay.v2db-active {
    opacity: 1;
    visibility: visible;
}

.v2db-menu-list {
    list-style: none;
    padding: 0;
    margin: var(--v2db-spacing-xl) 0;
}

.v2db-menu-item {
    margin-bottom: var(--v2db-spacing-md);
}

.v2db-menu-link {
    display: block;
    padding: var(--v2db-spacing-md);
    color: var(--v2db-text-light);
    text-decoration: none;
    border-radius: var(--v2db-radius-md);
    transition: all 0.3s ease;
}

.v2db-menu-link:hover {
    background: rgba(255, 204, 51, 0.1);
    color: var(--v2db-primary);
}

/* Carousel */
.v2db-carousel {
    position: relative;
    overflow: hidden;
    border-radius: var(--v2db-radius-lg);
    margin: var(--v2db-spacing-md) 0;
}

.v2db-carousel-container {
    display: flex;
    transition: transform 0.5s ease;
}

.v2db-carousel-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.v2db-carousel-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--v2db-radius-lg);
}

.v2db-carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--v2db-white);
    padding: var(--v2db-spacing-lg);
    border-radius: 0 0 var(--v2db-radius-lg) var(--v2db-radius-lg);
}

.v2db-carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--v2db-spacing-sm);
    margin-top: var(--v2db-spacing-md);
}

.v2db-carousel-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v2db-carousel-dot.v2db-active {
    background: var(--v2db-primary);
    transform: scale(1.2);
}

/* Cards */
.v2db-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 204, 51, 0.2);
    border-radius: var(--v2db-radius-lg);
    padding: var(--v2db-spacing-md);
    margin-bottom: var(--v2db-spacing-md);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.v2db-card:hover {
    border-color: var(--v2db-primary);
    transform: translateY(-2px);
    box-shadow: var(--v2db-shadow-lg);
}

/* Game Cards */
.v2db-game-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--v2db-spacing-sm);
    border-radius: var(--v2db-radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    min-height: 8rem;
}

.v2db-game-card:hover {
    background: rgba(255, 204, 51, 0.1);
    transform: scale(1.05);
}

.v2db-game-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--v2db-radius-md);
    margin-bottom: var(--v2db-spacing-xs);
    object-fit: cover;
}

.v2db-game-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--v2db-text-light);
    text-align: center;
    word-break: break-word;
}

/* Sections */
.v2db-section {
    padding: var(--v2db-spacing-xl) 0;
}

.v2db-section-title {
    text-align: center;
    margin-bottom: var(--v2db-spacing-xl);
    color: var(--v2db-primary);
}

/* Footer */
.v2db-footer {
    background: linear-gradient(135deg, var(--v2db-bg-dark) 0%, #1a1a2e 100%);
    border-top: 1px solid rgba(255, 204, 51, 0.2);
    padding: var(--v2db-spacing-xl) 0 var(--v2db-spacing-xxl);
    margin-top: var(--v2db-spacing-xl);
}

.v2db-footer-content {
    text-align: center;
}

.v2db-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--v2db-spacing-md);
    margin-bottom: var(--v2db-spacing-lg);
}

.v2db-footer-link {
    color: var(--v2db-text-light);
    text-decoration: none;
    padding: var(--v2db-spacing-sm);
    border-radius: var(--v2db-radius-md);
    transition: all 0.3s ease;
}

.v2db-footer-link:hover {
    color: var(--v2db-primary);
    background: rgba(255, 204, 51, 0.1);
}

.v2db-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--v2db-spacing-md);
    margin: var(--v2db-spacing-lg) 0;
}

.v2db-partner-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--v2db-radius-sm);
    object-fit: contain;
    background: var(--v2db-white);
    padding: 0.3rem;
}

.v2db-copyright {
    color: var(--v2db-gray);
    font-size: 1.2rem;
    margin-top: var(--v2db-spacing-lg);
}

/* Bottom Navigation */
.v2db-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6rem;
    background: linear-gradient(135deg, var(--v2db-bg-dark) 0%, #1a1a2e 100%);
    border-top: 1px solid rgba(255, 204, 51, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.v2db-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--v2db-text-light);
    padding: var(--v2db-spacing-xs);
    border-radius: var(--v2db-radius-md);
    transition: all 0.3s ease;
    min-width: 6rem;
    min-height: 5rem;
}

.v2db-bottom-nav-item:hover,
.v2db-bottom-nav-item.v2db-active {
    color: var(--v2db-primary);
    background: rgba(255, 204, 51, 0.1);
    transform: translateY(-2px);
}

.v2db-bottom-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
    transition: all 0.3s ease;
}

.v2db-bottom-nav-item:hover .v2db-bottom-nav-icon {
    transform: scale(1.1);
}

.v2db-bottom-nav-text {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

/* Utility Classes */
.v2db-mb-sm { margin-bottom: var(--v2db-spacing-sm); }
.v2db-mb-md { margin-bottom: var(--v2db-spacing-md); }
.v2db-mb-lg { margin-bottom: var(--v2db-spacing-lg); }
.v2db-mb-xl { margin-bottom: var(--v2db-spacing-xl); }

.v2db-mt-sm { margin-top: var(--v2db-spacing-sm); }
.v2db-mt-md { margin-top: var(--v2db-spacing-md); }
.v2db-mt-lg { margin-top: var(--v2db-spacing-lg); }
.v2db-mt-xl { margin-top: var(--v2db-spacing-xl); }

.v2db-p-sm { padding: var(--v2db-spacing-sm); }
.v2db-p-md { padding: var(--v2db-spacing-md); }
.v2db-p-lg { padding: var(--v2db-spacing-lg); }

.v2db-hidden { display: none; }
.v2db-visible { display: block; }

/* Loading States */
.v2db-loading {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.2rem solid rgba(255, 204, 51, 0.3);
    border-top: 0.2rem solid var(--v2db-primary);
    border-radius: 50%;
    animation: v2db-spin 1s linear infinite;
}

@keyframes v2db-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .v2db-main {
        padding-bottom: 8rem;
    }

    .v2db-bottom-nav {
        display: flex;
    }
}

@media (min-width: 769px) {
    .v2db-bottom-nav {
        display: none;
    }

    .v2db-nav {
        display: block;
    }

    .v2db-hamburger {
        display: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --v2db-bg-dark: #0F0F23;
        --v2db-text-light: #C0C0C0;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .v2db-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}