/**
 * Timezone - Premium Gaming Platform Stylesheet
 * Website: timezone.club
 * Version: 1.0.0
 * Prefix: w5e23-
 */

/* CSS Variables - Color Palette */
:root {
    --w5e23-primary: #6C63FF;
    --w5e23-primary-dark: #5A52D5;
    --w5e23-secondary: #FF6B6B;
    --w5e23-accent: #FFD93D;
    --w5e23-success: #4ECDC4;
    --w5e23-bg-dark: #0F0E17;
    --w5e23-bg-card: #1A1927;
    --w5e23-bg-darker: #0A0912;
    --w5e23-text-light: #FFFFFF;
    --w5e23-text-muted: #A8A8B3;
    --w5e23-border: rgba(255, 255, 255, 0.1);
    --w5e23-gradient-primary: linear-gradient(135deg, #6C63FF 0%, #FF6B6B 100%);
    --w5e23-gradient-gold: linear-gradient(135deg, #FFD93D 0%, #FF9500 100%);
    --w5e23-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--w5e23-bg-dark);
    color: var(--w5e23-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.w5e23-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.app5e2-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--w5e23-border);
}

.app5e2-header.app5e2-scrolled {
    background: rgba(15, 14, 23, 0.98);
    box-shadow: var(--w5e23-shadow);
}

.w5e23-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.w5e23-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.w5e23-logo img {
    height: 40px;
    width: auto;
}

.w5e23-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--w5e23-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.w5e23-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.w5e23-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.w5e23-btn-login {
    background: transparent;
    border: 2px solid var(--w5e23-primary);
    color: var(--w5e23-primary);
}

.w5e23-btn-login:hover {
    background: var(--w5e23-primary);
    color: var(--w5e23-text-light);
}

.w5e23-btn-register {
    background: var(--w5e23-gradient-primary);
    color: var(--w5e23-text-light);
}

.w5e23-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(108, 99, 255, 0.4);
}

.w5e23-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--w5e23-text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Menu */
#app5e2-mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--w5e23-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

#app5e2-mobile-menu.app5e2-active {
    right: 0;
}

#app5e2-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: all 0.3s ease;
}

#app5e2-menu-overlay.app5e2-active {
    opacity: 1;
    visibility: visible;
}

.w5e23-mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--w5e23-border);
}

.w5e23-mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--w5e23-text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

.w5e23-mobile-menu-links {
    list-style: none;
}

.w5e23-mobile-menu-links li {
    margin-bottom: 15px;
}

.w5e23-mobile-menu-links a {
    display: block;
    padding: 12px 15px;
    color: var(--w5e23-text-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.w5e23-mobile-menu-links a:hover {
    background: rgba(108, 99, 255, 0.2);
    color: var(--w5e23-primary);
}

/* Main Content */
main {
    padding-top: 70px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Hero Carousel */
.w5e23-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .w5e23-carousel {
        height: 280px;
    }
}

.w5e23-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.app5e2-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.app5e2-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w5e23-carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.app5e2-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.app5e2-dot.app5e2-active {
    background: var(--w5e23-primary);
    transform: scale(1.2);
}

/* Section Styles */
.w5e23-section {
    padding: 50px 15px;
}

.w5e23-section-title {
    text-align: center;
    margin-bottom: 40px;
}

.w5e23-section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: var(--w5e23-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.w5e23-section-title p {
    color: var(--w5e23-text-muted);
    font-size: 1rem;
}

/* Game Grid */
.w5e23-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

@media (max-width: 768px) {
    .w5e23-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

.w5e23-game-card {
    background: var(--w5e23-bg-card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--w5e23-border);
}

.w5e23-game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--w5e23-shadow);
    border-color: var(--w5e23-primary);
}

.w5e23-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.w5e23-game-card-title {
    padding: 10px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Feature Cards */
.w5e23-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.w5e23-feature-card {
    background: var(--w5e23-bg-card);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--w5e23-border);
    transition: all 0.3s ease;
}

.w5e23-feature-card:hover {
    border-color: var(--w5e23-primary);
    transform: translateY(-5px);
}

.w5e23-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--w5e23-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
}

.w5e23-feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.w5e23-feature-card p {
    color: var(--w5e23-text-muted);
    font-size: 0.9rem;
}

/* Category Tabs */
.w5e23-category-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 25px;
    -webkit-overflow-scrolling: touch;
}

.w5e23-category-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--w5e23-bg-card);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--w5e23-border);
}

.w5e23-category-tab:hover,
.w5e23-category-tab.active {
    background: var(--w5e23-gradient-primary);
    border-color: transparent;
}

/* Bottom Navigation */
.w5e23-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(15, 14, 23, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--w5e23-border);
}

@media (min-width: 769px) {
    .w5e23-bottom-nav {
        display: none;
    }
}

.w5e23-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: var(--w5e23-text-muted);
}

.w5e23-nav-item:hover,
.w5e23-nav-item.active {
    color: var(--w5e23-primary);
}

.w5e23-nav-item i,
.w5e23-nav-item .material-icons {
    font-size: 24px;
    margin-bottom: 4px;
}

.w5e23-nav-item span {
    font-size: 11px;
    font-weight: 500;
}

/* Footer */
.w5e23-footer {
    background: var(--w5e23-bg-darker);
    padding: 40px 15px 20px;
    border-top: 1px solid var(--w5e23-border);
}

.w5e23-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.w5e23-footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--w5e23-primary);
}

.w5e23-footer-links {
    list-style: none;
}

.w5e23-footer-links li {
    margin-bottom: 10px;
}

.w5e23-footer-links a {
    color: var(--w5e23-text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.w5e23-footer-links a:hover {
    color: var(--w5e23-primary);
}

.w5e23-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.w5e23-partners img {
    height: 30px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.w5e23-partners img:hover {
    opacity: 1;
}

.w5e23-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--w5e23-border);
    color: var(--w5e23-text-muted);
    font-size: 0.85rem;
}

/* CTA Banner */
.w5e23-cta-banner {
    background: var(--w5e23-gradient-primary);
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    margin: 30px 0;
}

.w5e23-cta-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.w5e23-cta-banner p {
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Utility Classes */
.w5e23-text-center {
    text-align: center;
}

.w5e23-mt-20 {
    margin-top: 20px;
}

.w5e23-mb-20 {
    margin-bottom: 20px;
}

/* Responsive Header */
@media (max-width: 768px) {
    .w5e23-header-actions .w5e23-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .w5e23-menu-toggle {
        display: block;
    }

    .w5e23-logo-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 430px) {
    .w5e23-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .w5e23-section-title h2 {
        font-size: 1.5rem;
    }
}
