/* =============================================
   VEXAR Premium Theme - Professional Redesign
   ============================================= */

/* === CSS Variables === */
:root {
    /* Primary Colors */
    --vexar-primary: #05191a;
    --vexar-deep: #020d0e;
    --vexar-accent: #C19B52;
    --vexar-accent-light: #D4B068;
    --vexar-accent-dark: #A68542;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Gradient Colors */
    --gradient-gold: linear-gradient(135deg, #C19B52 0%, #E8D5A3 50%, #C19B52 100%);
    --gradient-dark: linear-gradient(180deg, #051618 0%, #020d0e 100%);
    --gradient-accent: linear-gradient(135deg, rgba(193, 155, 82, 0.1) 0%, rgba(193, 155, 82, 0.05) 100%);
    
    /* Shadows */
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(193, 155, 82, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
    
    /* Blur */
    --blur-standard: 12px;
    --blur-heavy: 24px;
}

/* === Base Styles === */
body {
    background-color: var(--vexar-deep);
    color: var(--text-primary);
    scroll-behavior: smooth;
    font-feature-settings: "ss01", "ss02";
}

/* Improved Text Contrast */
.text-slate-300 {
    color: var(--text-secondary) !important;
}

.text-slate-400 {
    color: var(--text-muted) !important;
}

/* === Premium Scrollbar === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--vexar-deep);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--vexar-accent), var(--vexar-primary));
    border-radius: 10px;
    border: 2px solid var(--vexar-deep);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vexar-accent);
}

/* === Glassmorphism Effects === */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(var(--blur-standard));
    -webkit-backdrop-filter: blur(var(--blur-standard));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.glass-panel-heavy {
    background: rgba(5, 25, 26, 0.85);
    backdrop-filter: blur(var(--blur-heavy));
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    border: 1px solid rgba(193, 155, 82, 0.15);
    box-shadow: var(--shadow-premium);
}

.glass-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    border-color: rgba(193, 155, 82, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

/* === Premium Gradient Text === */
.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-animate {
    background: linear-gradient(90deg, #C19B52, #E8D5A3, #C19B52, #E8D5A3);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* === Premium Button Styles === */
.btn-premium {
    background: var(--gradient-gold);
    color: var(--vexar-deep);
    padding: 1rem 2rem;
    font-weight: 700;
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(193, 155, 82, 0.3);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(193, 155, 82, 0.4);
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:active {
    transform: translateY(0);
}

/* === Premium Card Styles === */
.card-premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(193, 155, 82, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-premium:hover {
    border-color: rgba(193, 155, 82, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
}

.card-premium:hover::before {
    opacity: 1;
}

/* === Enhanced Animations === */
.animate-glow {
    box-shadow: var(--shadow-glow);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(193, 155, 82, 0.2); }
    50% { box-shadow: 0 0 40px rgba(193, 155, 82, 0.4); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 12s linear infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-scale {
    animation: fadeInScale 0.6s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* === Smooth Transitions === */
* {
    transition-property: color, background-color, border-color, transform, opacity, box-shadow;
    transition-duration: 0.2s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Improved Focus States === */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--vexar-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* === Image Optimization === */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* === Loading Skeleton === */
.loading-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === Section Dividers === */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(193, 155, 82, 0.3), transparent);
}

.section-divider-thick {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--vexar-accent), transparent);
    border-radius: 2px;
}

/* === Premium Input Fields === */
.input-premium {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    color: white;
    transition: all 0.3s ease;
}

.input-premium:focus {
    outline: none;
    border-color: var(--vexar-accent);
    box-shadow: 0 0 0 3px rgba(193, 155, 82, 0.1);
}

.input-premium::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* === Badge Styles === */
.badge-premium {
    background: var(--gradient-gold);
    color: var(--vexar-deep);
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
}

.badge-glass {
    background: rgba(193, 155, 82, 0.15);
    color: var(--vexar-accent);
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(193, 155, 82, 0.3);
    border-radius: 9999px;
    backdrop-filter: blur(4px);
}

/* === Decorative Elements === */
.accent-line {
    width: 60px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

.accent-dot {
    width: 8px;
    height: 8px;
    background: var(--vexar-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--vexar-accent);
}

/* === Background Effects === */
.bg-gradient-radial {
    background: radial-gradient(ellipse at center, rgba(193, 155, 82, 0.1) 0%, transparent 70%);
}

.bg-gradient-mesh {
    background-image: 
        radial-gradient(at 40% 20%, rgba(193, 155, 82, 0.08) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(11, 48, 51, 0.15) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(193, 155, 82, 0.05) 0px, transparent 50%);
}

/* === Mobile Optimizations === */
@media (max-width: 768px) {
    .card-premium:hover {
        transform: translateY(-4px);
    }
    
    .btn-premium {
        padding: 0.875rem 1.5rem;
    }
}

/* === Print Styles === */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .glass-panel,
    .glass-card,
    .card-premium {
        background: white;
        border: 1px solid #ddd;
    }
}
