/**
 * NiceP Layout Styles - VIP Gaming Platform
 * Class Prefix: ui69-
 * Unique Design: Elegant Emerald Green + Gold
 */

:root {
    /* Primary Colors - Elegant Emerald */
    --ui69-primary: #047857;
    --ui69-primary-dark: #065f46;
    --ui69-primary-light: #10b981;

    /* Gold Accents for VIP Feel */
    --ui69-gold: #d4af37;
    --ui69-gold-light: #fbbf24;
    --ui69-gold-dark: #b8941f;

    /* Background Colors */
    --ui69-bg: #0a0a0a;
    --ui69-bg-secondary: #1a1a1a;
    --ui69-bg-card: #242424;
    --ui69-bg-elevated: #2d2d2d;

    /* Text Colors */
    --ui69-text: #f5f5f5;
    --ui69-text-secondary: #a3a3a3;
    --ui69-text-muted: #737373;

    /* Accent Colors */
    --ui69-accent: #14b8a6;
    --ui69-accent-hover: #0d9488;
    --ui69-success: #22c55e;
    --ui69-error: #ef4444;

    /* Gradients */
    --ui69-gradient-primary: linear-gradient(135deg, #047857 0%, #14b8a6 100%);
    --ui69-gradient-gold: linear-gradient(135deg, #d4af37 0%, #fbbf24 50%, #d4af37 100%);
    --ui69-gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
    --ui69-gradient-card: linear-gradient(145deg, #242424 0%, #1a1a1a 100%);

    /* Shadows */
    --ui69-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --ui69-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
    --ui69-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.7);
    --ui69-shadow-gold: 0 4px 16px rgba(212, 175, 55, 0.3);

    /* Typography */
    --ui69-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* Layout */
    --ui69-max-width: 430px;
    --ui69-header-height: 64px;
    --ui69-bottom-nav-height: 60px;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--ui69-font-family);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--ui69-text);
    background: var(--ui69-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.ui69-container {
    width: 100%;
    max-width: var(--ui69-max-width);
    margin: 0 auto;
    padding: 0 1.6rem;
}

/* Header */
.ui69-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--ui69-header-height);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.ui69-header.ui69-header-hidden {
    transform: translateY(-100%);
}

.ui69-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1.6rem;
    max-width: var(--ui69-max-width);
    margin: 0 auto;
}

.ui69-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--ui69-text);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.ui69-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--ui69-gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.ui69-header-actions {
    display: flex;
    gap: 1rem;
}

.ui69-btn {
    padding: 0.6rem 1.6rem;
    border-radius: 8px;
    border: none;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.ui69-btn-primary {
    background: var(--ui69-gradient-primary);
    color: #fff;
    box-shadow: var(--ui69-shadow-md);
}

.ui69-btn-primary:hover {
    background: var(--ui69-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--ui69-shadow-gold);
}

.ui69btn-secondary {
    background: transparent;
    color: var(--ui69-gold);
    border: 2px solid var(--ui69-gold);
}

.ui69-btn-secondary:hover {
    background: var(--ui69-gold);
    color: var(--ui69-bg);
}

.ui69-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ui69-text);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Mobile Menu */
.ui69-mobile-menu {
    position: fixed;
    top: var(--ui69-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ui69-bg-secondary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
    padding: 2rem 0;
}

.ui69-mobile-menu.ui69-menu-open {
    transform: translateX(0);
}

.ui69-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.ui69-menu-overlay.ui69-overlay-active {
    opacity: 1;
    visibility: visible;
}

.ui69-menu-link {
    display: block;
    padding: 1.6rem;
    color: var(--ui69-text);
    text-decoration: none;
    font-size: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.ui69-menu-link:hover {
    background: var(--ui69-bg-elevated);
    color: var(--ui69-gold);
    padding-left: 2.4rem;
}

.ui69-menu-close {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    background: none;
    border: none;
    color: var(--ui69-text);
    font-size: 2.8rem;
    cursor: pointer;
    padding: 0.4rem;
}

/* Main Content */
main {
    padding-top: var(--ui69-header-height);
    padding-bottom: 80px;
    min-height: 100vh;
}

/* Carousel */
.ui69-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 2.4rem;
}

.ui69-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ui69-carousel-slide.ui69-slide-active {
    opacity: 1;
}

.ui69-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Section */
.ui69-hero {
    text-align: center;
    padding: 2.4rem 1.6rem;
    background: var(--ui69-gradient-card);
    margin-bottom: 2.4rem;
}

.ui69-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    background: var(--ui69-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ui69-hero p {
    font-size: 1.6rem;
    color: var(--ui69-text-secondary);
    line-height: 1.6;
}

/* Section */
.ui69-section {
    padding: 2.4rem 1.6rem;
    margin-bottom: 2.4rem;
}

.ui69-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.6rem;
    color: var(--ui69-gold);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ui69-section-title i {
    color: var(--ui69-primary-light);
}

/* Game Grid */
.ui69-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ui69-game-card {
    background: var(--ui69-bg-card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--ui69-shadow-sm);
}

.ui69-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ui69-shadow-gold);
}

.ui69-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.ui69-game-name {
    padding: 0.6rem;
    font-size: 1.2rem;
    text-align: center;
    color: var(--ui69-text);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Modules */
.ui69-content {
    background: var(--ui69-bg-card);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--ui69-shadow-md);
}

.ui69-content h2 {
    font-size: 1.8rem;
    color: var(--ui69-gold);
    margin-bottom: 1rem;
}

.ui69-content p {
    color: var(--ui69-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.ui69-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.ui69-content li {
    color: var(--ui69-text-secondary);
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.ui69-content a {
    color: var(--ui69-primary-light);
    text-decoration: none;
    font-weight: 600;
}

.ui69-content a:hover {
    color: var(--ui69-gold);
    text-decoration: underline;
}

/* Bottom Navigation */
.ui69-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--ui69-bottom-nav-height);
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.5rem;
}

.ui69-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--ui69-text-secondary);
    min-width: 60px;
    min-height: 60px;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.4rem;
}

.ui69-nav-btn i {
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
}

.ui69-nav-btn span {
    font-size: 1rem;
    font-weight: 500;
}

.ui69-nav-btn:hover {
    color: var(--ui69-gold);
    background: rgba(212, 175, 55, 0.1);
}

.ui69-nav-btn.ui69-nav-active {
    color: var(--ui69-gold);
}

.ui69-nav-btn.ui69-nav-active i {
    color: var(--ui69-gold-light);
}

/* Footer */
.ui69-footer {
    background: var(--ui69-bg-secondary);
    padding: 3rem 1.6rem 8rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.ui69-footer h3 {
    font-size: 1.6rem;
    color: var(--ui69-gold);
    margin-bottom: 1rem;
}

.ui69-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.ui69-footer-link {
    color: var(--ui69-text-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--ui69-bg-card);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.ui69-footer-link:hover {
    color: var(--ui69-gold);
    background: var(--ui69-bg-elevated);
}

.ui69-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.ui69-partner-logo {
    width: 60px;
    height: 40px;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.ui69-partner-logo:hover {
    opacity: 1;
}

.ui69-copyright {
    text-align: center;
    color: var(--ui69-text-muted);
    font-size: 1.2rem;
    margin-top: 2rem;
}

/* Utilities */
.ui69-text-center {
    text-align: center;
}

.ui69-mt-1 { margin-top: 1rem; }
.ui69-mt-2 { margin-top: 2rem; }
.ui69-mt-3 { margin-top: 3rem; }

.ui69-mb-1 { margin-bottom: 1rem; }
.ui69-mb-2 { margin-bottom: 2rem; }
.ui69-mb-3 { margin-bottom: 3rem; }

.ui69-p-1 { padding: 1rem; }
.ui69-p-2 { padding: 2rem; }

/* Touch Feedback */
.ui69-touch-active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* Desktop Responsive */
@media (min-width: 769px) {
    .ui69-bottom-nav {
        display: none;
    }

    .ui69-menu-toggle {
        display: none;
    }

    main {
        padding-bottom: 2rem;
    }

    .ui69-desktop-nav {
        display: flex;
    }

    .ui69-footer {
        padding-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .ui69-desktop-nav {
        display: none;
    }

    .ui69-menu-toggle {
        display: block;
    }

    .ui69-carousel {
        height: 180px;
    }

    .ui69-hero h1 {
        font-size: 2.2rem;
    }
}
