/* ══════════════════════════════════════════════════
   YEETRIX — Global Styles
   Port of globals.css from the Next.js version
══════════════════════════════════════════════════ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&display=swap');

/* ─── CSS Variables ─────────────────────────────── */
:root {
  --background: #000000;
  --foreground: #ffffff;
  --color-primary: #D4AF37;
  --color-highlight: #FFD700;
  --color-muted: #A1A1AA;
  --color-border: rgba(255,255,255,0.05);
  --color-border-gold: rgba(212,175,55,0.2);
  --font-sans: 'Inter', sans-serif;
  --font-space: 'Syne', sans-serif;
}

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

html { scroll-behavior: smooth; height: 100%; -webkit-text-size-adjust: 100%; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

/* ─── Font Utility ──────────────────────────────── */
.font-space { font-family: var(--font-space); }
.font-sans  { font-family: var(--font-sans); }
.text-glow  { text-shadow: 0 0 20px rgba(212,175,55,0.3); }

/* ─── Glassmorphism System ──────────────────────── */
.glass {
  background: rgba(255,255,255,0.07);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 4px 20px rgba(0,0,0,0.5);
}

.glass-card {
  background: rgba(5,4,2,0.72);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 20px 60px rgba(0,0,0,0.6);
}

.glass-panel {
  background: rgba(255,255,255,0.07);
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 32px 80px rgba(0,0,0,0.7);
}

/* ─── Hexagon Drift Animation ───────────────────── */
@keyframes hex-drift {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-180px, -103.923px, 0); }
}
.hex-grid-layer {
  animation: hex-drift 60s linear infinite;
  will-change: transform;
}

/* ─── Noise Texture ─────────────────────────────── */
.noise-texture {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.06;
  pointer-events: none;
}

/* ─── Animations ────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(-20%); animation-timing-function: cubic-bezier(0.8,0,1,1); }
  50%       { transform: translateY(0); animation-timing-function: cubic-bezier(0,0,0.2,1); }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slide-down {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-fade-up   { animation: fade-up 0.8s ease-out forwards; }
.anim-fade-in   { animation: fade-in 0.8s ease-out forwards; }
.anim-scale-in  { animation: scale-in 0.8s ease-out forwards; }
.anim-slide-down{ animation: slide-down 0.3s ease-out forwards; }
.anim-delay-1   { animation-delay: 0.15s; }
.anim-delay-2   { animation-delay: 0.30s; }
.anim-delay-3   { animation-delay: 0.45s; }
.anim-delay-4   { animation-delay: 0.60s; }
.anim-delay-5   { animation-delay: 0.75s; }
.opacity-0      { opacity: 0; }

.animate-ping   { animation: ping 1s cubic-bezier(0,0,0.2,1) infinite; }
.animate-bounce { animation: bounce 1s infinite; }
.animate-pulse  { animation: pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

/* ─── AOS overrides ─────────────────────────────── */
[data-aos] { opacity: 0; transition-property: opacity, transform; }
[data-aos].aos-animate { opacity: 1; }
[data-aos="fade-up"]   { transform: translateY(24px); }
[data-aos="fade-up"].aos-animate { transform: translateY(0); }
[data-aos="fade-left"] { transform: translateX(50px); }
[data-aos="fade-left"].aos-animate { transform: translateX(0); }
[data-aos="fade-right"]{ transform: translateX(-50px); }
[data-aos="fade-right"].aos-animate{ transform: translateX(0); }
[data-aos="zoom-in"]   { transform: scale(0.95); }
[data-aos="zoom-in"].aos-animate { transform: scale(1); }

/* ─── Custom Scrollbar ──────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,175,55,0.5); }

/* ─── Form inputs ───────────────────────────────── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(0,0,0,0.8) inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* ─── Lucide icon SVG base ──────────────────────── */
.icon {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Mobile Menu Transition ────────────────────── */
#mobile-menu {
  display: none;
  transform-origin: top;
}
#mobile-menu.open {
  display: block;
  animation: slide-down 0.3s ease-out forwards;
}

/* ─── Admin sidebar ─────────────────────────────── */
.admin-sidebar {
  background: rgba(5,4,2,0.85);
  -webkit-backdrop-filter: blur(32px);
  backdrop-filter: blur(32px);
  border-right: 1px solid rgba(255,255,255,0.12);
}

/* ─── Line clamp ─────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Hover utilities ───────────────────────────── */
.hover-gold:hover { color: #D4AF37 !important; }
.hover-lift:hover { transform: translateY(-4px); }
