/* ========================================
   UKV Radio — Base Styles
   Reset, Typography, Global
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Orbitron:wght@400;500;600;700;800;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grid background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(176, 38, 255, 0.08) 0%, transparent 50%);
  background-size: 60px 60px, 60px 60px, 100% 100%;
  pointer-events: none;
  z-index: -1;
  animation: bg-shift 20s ease-in-out infinite;
}

@keyframes bg-shift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 4px
  );
  pointer-events: none;
  z-index: 9999;
  animation: scanline-flicker 8s linear infinite;
}

@keyframes scanline-flicker {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.6; }
}

/* Tech background noise */
.tech-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(0, 240, 255, 0.1) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 20%, rgba(255, 0, 170, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 50% 50%, rgba(176, 38, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: -2;
  animation: tech-pulse 10s ease-in-out infinite;
}

@keyframes tech-pulse {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Glitch overlay effect */
.glitch-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  animation: glitch-flash 5s linear infinite;
}

.glitch-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--neon-cyan);
  animation: glitch-scan 3s linear infinite;
  opacity: 0.6;
}

@keyframes glitch-flash {
  0%, 95%, 100% { opacity: 0; }
  96% { opacity: 1; }
  97% { opacity: 0; }
  98% { opacity: 0.5; }
}

@keyframes glitch-scan {
  0% { transform: translateY(-100vh); }
  100% { transform: translateY(100vh); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-bright);
  letter-spacing: 0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--neon-magenta);
  text-shadow: var(--glow-magenta-sm);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea {
  font-family: var(--font-body);
  color: var(--text-primary);
}

code, .mono {
  font-family: var(--font-mono);
}

/* Selection */
::selection {
  background: rgba(0, 240, 255, 0.3);
  color: var(--text-bright);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.5);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Section */
.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-title h2 {
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--neon-cyan);
}

.section-title p {
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
  margin-top: var(--space-md);
}

/* Visually hidden (accessible) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
