/* VeexCraft v2 Premium Core Styles */

:root {
  /* Brand Colors */
  --vc-gold: #FFB800;
  --vc-gold-bright: #FFDE4D;
  --vc-gold-dim: #CC9300;
  --vc-gold-subtle: rgba(255, 184, 0, 0.1);
  --vc-gold-border: rgba(255, 184, 0, 0.3);

  /* Surfaces (Dark Mode Default) */
  --vc-bg: #030305;
  --vc-bg-2: #0A0A0F;
  --vc-bg-3: #12121A;
  --vc-bg-card: rgba(10, 10, 15, 0.6);
  
  /* Text Colors */
  --vc-text: #FFFFFF;
  --vc-text-2: #E5E7EB;
  --vc-text-3: #9CA3AF;
  --vc-text-4: #6B7280;

  /* Typography */
  --vc-font: 'Poppins', system-ui, -apple-system, sans-serif;
  
  /* Utilities */
  --vc-border: rgba(255, 255, 255, 0.08);
  --vc-radius: 12px;
  --vc-radius-lg: 24px;
  --vc-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); /* Smoother premium easing */
  --vc-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  --vc-glow: 0 0 20px rgba(255, 184, 0, 0.2);
  --vc-glow-strong: 0 0 30px rgba(255, 184, 0, 0.4);
}

/* Light Theme Variables */
[data-theme="light"] {
  --vc-bg: #F3F4F6;
  --vc-bg-2: #FFFFFF;
  --vc-bg-3: #F9FAFB;
  --vc-bg-card: rgba(255, 255, 255, 0.8);
  --vc-text: #111827;
  --vc-text-2: #374151;
  --vc-text-3: #6B7280;
  --vc-border: rgba(0, 0, 0, 0.08);
  --vc-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

[dir="rtl"] { text-align: right; }

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--vc-font);
  background-color: var(--vc-bg);
  color: var(--vc-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Animated Premium Background (Hardware Accelerated) */
body::before, body::after {
  content: '';
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
  animation: floatBg 20s ease-in-out infinite alternate;
  will-change: transform;
}
body::before {
  background: var(--vc-gold);
  top: -10%;
  left: -10%;
}
body::after {
  background: #3B82F6; /* Cool blue accent */
  bottom: -10%;
  right: -10%;
  animation-delay: -10s;
}

@keyframes floatBg {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10%, 10%, 0) scale(1.1); }
  100% { transform: translate3d(-10%, 20%, 0) scale(0.9); }
}

/* Glassmorphism Utilities */
.glass {
  background: var(--vc-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--vc-border);
  box-shadow: var(--vc-shadow);
  transition: var(--vc-transition);
}

.glass:hover {
  border-color: rgba(255, 184, 0, 0.2);
  background: rgba(255, 184, 0, 0.03);
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--vc-radius);
  cursor: pointer;
  transition: var(--vc-transition);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--vc-gold) 0%, var(--vc-gold-dim) 100%);
  color: #000;
  border: none;
}
.btn-primary::before, .btn-secondary::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: var(--vc-transition); z-index: -1;
}
.btn-primary:hover::before, .btn-secondary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--vc-glow-strong); }

.btn-secondary {
  background: transparent;
  color: var(--vc-text);
  border: 1px solid var(--vc-border);
}
.btn-secondary:hover {
  background: var(--vc-bg-card);
  border-color: var(--vc-gold);
  color: var(--vc-gold);
  transform: translateY(-3px);
}

.btn-discord {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%); color: #FFF; font-weight: 700;
  padding: 12px 28px; border-radius: var(--vc-radius); border: none; cursor: pointer;
  transition: var(--vc-transition); text-decoration: none;
}
.btn-discord:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5); }

/* V3 Additions: Banner & Countdown */
.global-banner {
  background: linear-gradient(90deg, var(--vc-gold-dim) 0%, var(--vc-gold) 50%, var(--vc-gold-dim) 100%);
  color: #000; text-align: center; padding: 10px 20px; font-weight: 600; font-size: 14px;
  animation: bgPan 3s linear infinite; background-size: 200% auto;
}
@keyframes bgPan { to { background-position: 200% center; } }

.countdown-widget {
  position: fixed; bottom: 40px; right: 40px; padding: 20px 30px; border-radius: var(--vc-radius-lg);
  border-top: 2px solid var(--vc-gold); text-align: center; z-index: 100;
  animation: floatWidget 4s ease-in-out infinite alternate;
}
@keyframes floatWidget { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.c-title { font-size: 12px; font-weight: 800; color: var(--vc-text-3); text-transform: uppercase; margin-bottom: 10px; letter-spacing: 1px; }
.c-time { font-size: 32px; font-weight: 900; color: var(--vc-gold); font-variant-numeric: tabular-nums; text-shadow: var(--vc-glow); margin-bottom: 5px; }
.c-desc { font-size: 11px; color: var(--vc-text-4); }

/* V3 Advanced Navbar */
.nav-link { color: var(--vc-text-2); text-decoration: none; font-weight: 500; display: flex; align-items: center; gap: 8px; transition: var(--vc-transition); }
.nav-link:hover { color: var(--vc-gold); transform: translateY(-2px); text-shadow: var(--vc-glow); }
.nav-profile { display: flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; background: rgba(0,0,0,0.2); border-radius: 50px; border: 1px solid var(--vc-border); }
.nav-profile img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--vc-gold); object-fit: cover; }
.p-info { display: flex; flex-direction: column; line-height: 1.2; }
.p-name { font-size: 14px; font-weight: 700; color: var(--vc-text); }
.p-cred { font-size: 11px; font-weight: 600; color: var(--vc-gold); }

/* Loader */
.vc-loader-overlay {
  position: fixed; inset: 0; background: var(--vc-bg); z-index: 9999;
  display: flex; align-items: center; justify-content: center; transition: opacity 0.6s ease;
}
.vc-loader-overlay.hidden { opacity: 0; pointer-events: none; }
.spinner {
  width: 60px; height: 60px; border: 4px solid var(--vc-border);
  border-top-color: var(--vc-gold); border-radius: 50%;
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 10; }

/* V3 Auth Split Screen */
.auth-wrapper { min-height: 100vh; display: flex; align-items: stretch; padding: 0; background: var(--vc-bg); }
.auth-side-image { display: none; }
@media (min-width: 900px) {
  .auth-side-image { 
    display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    background: linear-gradient(rgba(3,3,5,0.7), rgba(3,3,5,0.9)), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?q=80&w=2070&auto=format&fit=crop') center/cover;
    border-right: 1px solid var(--vc-border); padding: 40px; position: relative; overflow: hidden;
  }
  .auth-side-image::after { content:''; position:absolute; inset:0; background: radial-gradient(circle at 50% 50%, transparent, var(--vc-bg) 120%); }
  .auth-side-content { position: relative; z-index: 2; max-width: 500px; }
  .auth-side-content h1 { font-size: 48px; color: var(--vc-gold); margin-bottom: 20px; font-weight: 900; }
  .auth-side-content p { font-size: 18px; color: var(--vc-text-2); }
}
.auth-form-container { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; position: relative; }
.auth-box { width: 100%; max-width: 440px; padding: 50px 40px; border-radius: var(--vc-radius-lg); text-align: center; background: var(--vc-bg-card); backdrop-filter: blur(20px); border: 1px solid var(--vc-border); box-shadow: var(--vc-shadow); }
.auth-box h2 { font-size: 32px; font-weight: 800; margin-bottom: 30px; color: var(--vc-text); }
.auth-input {
  width: 100%; background: rgba(0,0,0,0.2); border: 1px solid var(--vc-border);
  color: var(--vc-text); padding: 16px; border-radius: var(--vc-radius);
  margin-bottom: 20px; font-family: var(--vc-font); transition: var(--vc-transition);
}
.auth-input:focus { outline: none; border-color: var(--vc-gold); box-shadow: 0 0 0 3px var(--vc-gold-subtle); transform: translateY(-2px); background: rgba(0,0,0,0.4); }
.auth-divider { display: flex; align-items: center; margin: 24px 0; color: var(--vc-text-4); font-size: 14px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; border-bottom: 1px solid var(--vc-border); }
.auth-divider:not(:empty)::before { margin-right: .5em; }
.auth-divider:not(:empty)::after { margin-left: .5em; }

/* Splash Screen */
.splash-screen {
  position: fixed; inset: 0; background: rgba(3, 3, 5, 0.95);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  z-index: 9000; display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s;
}
.splash-screen.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.splash-content { text-align: center; max-width: 540px; width: 90%; animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes slideUpFade { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.splash-content h1 { font-size: 36px; color: var(--vc-gold); margin-bottom: 30px; font-weight: 900; letter-spacing: -1px; }
.splash-options { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.splash-btn {
  display: flex; align-items: center; justify-content: space-between; padding: 18px 28px;
  background: var(--vc-bg-2); border: 1px solid var(--vc-border); border-radius: var(--vc-radius);
  color: var(--vc-text); text-decoration: none; font-weight: 600; transition: var(--vc-transition);
}
.splash-btn:hover { border-color: var(--vc-gold); background: var(--vc-gold-subtle); transform: translateX(8px); box-shadow: var(--vc-glow); }
.splash-btn i { color: var(--vc-gold); font-size: 24px; }
.splash-skip { color: var(--vc-text-4); font-size: 14px; cursor: pointer; background: none; border: none; transition: color 0.2s; font-weight: 500; }
.splash-skip:hover { color: var(--vc-text); }
