/**
 * Jiliph Website Stylesheet
 * Version: 1.0.0
 * All classes use prefix 'vd23-' for namespace isolation
 * Color Palette: #FFCC33 | #800080 | #BDB76B | #273746 | #DDA0DD
 */

/* CSS Variables */
:root {
    --vd23-primary: #FFCC33;
    --vd23-secondary: #800080;
    --vd23-accent: #BDB76B;
    --vd23-bg: #273746;
    --vd23-light: #DDA0DD;
    --vd23-text: #FFFFFF;
    --vd23-text-dark: #273746;
    --vd23-border: rgba(255, 204, 51, 0.3);
    --vd23-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --vd23-radius: 12px;
    --vd23-radius-sm: 8px;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--vd23-bg);
    color: var(--vd23-text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.vd23-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.vd23-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--vd23-bg) 0%, #1a2633 100%);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--vd23-border);
    backdrop-filter: blur(10px);
}

.vd23-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.vd23-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.vd23-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vd23-primary);
    letter-spacing: 0.5px;
}

.vd23-header-actions {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.vd23-btn {
    padding: 0.8rem 1.6rem;
    border-radius: var(--vd23-radius-sm);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.vd23-btn-login {
    background: transparent;
    color: var(--vd23-primary);
    border: 2px solid var(--vd23-primary);
}

.vd23-btn-login:hover {
    background: var(--vd23-primary);
    color: var(--vd23-text-dark);
}

.vd23-btn-register {
    background: linear-gradient(135deg, var(--vd23-primary) 0%, #e6b82e 100%);
    color: var(--vd23-text-dark);
}

.vd23-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 51, 0.4);
}

/* Menu Toggle */
.vd23-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.vd23-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--vd23-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.vd23-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--vd23-bg) 0%, #1a2633 100%);
    z-index: 9999;
    padding: 2rem;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.vd23-menu-active {
    right: 0;
}

.vd23-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vd23-overlay-active {
    opacity: 1;
    visibility: visible;
}

.vd23-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--vd23-border);
}

.vd23-menu-close {
    background: none;
    border: none;
    color: var(--vd23-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.vd23-menu-nav {
    list-style: none;
}

.vd23-menu-nav li {
    margin-bottom: 0.8rem;
}

.vd23-menu-nav a {
    display: block;
    padding: 1.2rem 1rem;
    color: var(--vd23-text);
    font-size: 1.4rem;
    border-radius: var(--vd23-radius-sm);
    transition: all 0.3s ease;
}

.vd23-menu-nav a:hover {
    background: rgba(255, 204, 51, 0.15);
    color: var(--vd23-primary);
}

/* Main Content */
.vd23-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Carousel */
.vd23-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--vd23-radius);
    margin-bottom: 2rem;
}

.vd23-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.5s ease;
    cursor: pointer;
}

.vd23-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section */
.vd23-section {
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
}

.vd23-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--vd23-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.vd23-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--vd23-secondary);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Game Grid */
.vd23-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.vd23-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.vd23-game-item:hover {
    transform: translateY(-5px);
}

.vd23-game-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--vd23-radius-sm);
    margin-bottom: 0.5rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.vd23-game-item:hover img {
    border-color: var(--vd23-primary);
}

.vd23-game-name {
    font-size: 1.1rem;
    color: var(--vd23-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Title */
.vd23-category-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--vd23-light);
    margin: 2rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--vd23-primary);
}

/* Info Box */
.vd23-info-box {
    background: linear-gradient(135deg, rgba(128, 0, 128, 0.2) 0%, rgba(39, 55, 70, 0.8) 100%);
    border: 1px solid var(--vd23-border);
    border-radius: var(--vd23-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.vd23-info-box h2 {
    color: var(--vd23-primary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.vd23-info-box p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--vd23-text);
    margin-bottom: 1rem;
}

/* Features Grid */
.vd23-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.vd23-feature-card {
    background: rgba(189, 183, 107, 0.1);
    border: 1px solid var(--vd23-border);
    border-radius: var(--vd23-radius-sm);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.vd23-feature-card:hover {
    border-color: var(--vd23-primary);
    transform: translateY(-3px);
}

.vd23-feature-card i {
    font-size: 2.4rem;
    color: var(--vd23-primary);
    margin-bottom: 0.8rem;
}

.vd23-feature-card h3 {
    font-size: 1.3rem;
    color: var(--vd23-light);
    margin-bottom: 0.5rem;
}

.vd23-feature-card p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* FAQ Section */
.vd23-faq-item {
    background: rgba(128, 0, 128, 0.1);
    border: 1px solid var(--vd23-border);
    border-radius: var(--vd23-radius-sm);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.vd23-faq-item h3 {
    color: var(--vd23-primary);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.vd23-faq-item p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* CTA Button */
.vd23-cta-btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 2rem auto;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--vd23-primary) 0%, #e6b82e 100%);
    color: var(--vd23-text-dark);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    border-radius: var(--vd23-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.vd23-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 204, 51, 0.5);
}

/* Footer */
.vd23-footer {
    background: linear-gradient(180deg, var(--vd23-bg) 0%, #1a2633 100%);
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--vd23-border);
}

.vd23-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vd23-footer-links a {
    color: var(--vd23-light);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.vd23-footer-links a:hover {
    color: var(--vd23-primary);
}

.vd23-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.vd23-partners img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.vd23-partners img:hover {
    opacity: 1;
}

.vd23-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
}

/* Bottom Navigation */
.vd23-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #1a2633 0%, var(--vd23-bg) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    border-top: 1px solid var(--vd23-border);
}

.vd23-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.vd23-nav-item:hover,
.vd23-nav-item.active {
    color: var(--vd23-primary);
}

.vd23-nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.vd23-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

.vd23-nav-item:active {
    transform: scale(0.95);
}

/* Promo Links */
.vd23-promo-text {
    color: var(--vd23-primary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.vd23-promo-text:hover {
    color: var(--vd23-light);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .vd23-bottom-nav {
        display: none;
    }

    .vd23-main {
        padding-bottom: 2rem;
    }
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .vd23-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .vd23-header {
        padding: 0.8rem 1rem;
    }

    .vd23-btn {
        padding: 0.6rem 1rem;
        font-size: 1.1rem;
    }
}

/* Animation */
@keyframes vd23-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.vd23-pulse {
    animation: vd23-pulse 2s infinite;
}
