/* ========================================
   UKV Radio — Layout
   Header, Footer, Nav, Grid
   ======================================== */

/* ---- Header / Navbar ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  transition: background var(--transition-base);
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-bright);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.logo .accent {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan-sm);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan-sm);
  transition: width var(--transition-base);
}

.nav a:hover,
.nav a.active {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan-sm);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

/* ---- Header Weather Widget ---- */
.header-weather {
  position: relative;
  display: flex;
  align-items: center;
}

.hw-main {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: default;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.1);
  transition: background 0.2s;
}

.hw-main:hover {
  background: rgba(0, 240, 255, 0.1);
}

.hw-icon {
  display: flex;
  width: 20px;
  height: 20px;
}

.hw-icon svg {
  width: 100%;
  height: 100%;
}

.hw-temp {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--neon-cyan);
  letter-spacing: 0.03em;
}

.hw-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
}

.header-weather:hover .hw-tooltip {
  display: block;
}

.hw-tooltip-inner {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hw-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 3px 0;
}

.hw-label {
  color: var(--text-muted);
}

.hw-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 6px 0;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* ---- Main Content ---- */
.main {
  padding-top: 70px;
  min-height: 100vh;
  position: relative;
}

/* Hero Section */
.hero {
  position: relative;
  padding: var(--space-4xl) var(--space-lg);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  position: relative;
  z-index: 1;
}

.hero-bg-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.hero-bg-particles::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-player-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.15);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-icon-cyan {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.feature-icon-magenta {
  background: rgba(255, 0, 170, 0.1);
  color: var(--neon-magenta);
  border: 1px solid rgba(255, 0, 170, 0.2);
  box-shadow: 0 0 20px rgba(255, 0, 170, 0.1);
}

.feature-icon-yellow {
  background: rgba(255, 230, 0, 0.1);
  color: var(--neon-yellow);
  border: 1px solid rgba(255, 230, 0, 0.2);
  box-shadow: 0 0 20px rgba(255, 230, 0, 0.1);
}

.feature-icon-purple {
  background: rgba(176, 38, 255, 0.1);
  color: var(--neon-purple);
  border: 1px solid rgba(176, 38, 255, 0.2);
  box-shadow: 0 0 20px rgba(176, 38, 255, 0.1);
}

.feature-icon-green {
  background: rgba(57, 255, 20, 0.1);
  color: var(--neon-green);
  border: 1px solid rgba(57, 255, 20, 0.2);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.1);
}

.feature-icon-pink {
  background: rgba(255, 45, 123, 0.1);
  color: var(--neon-pink);
  border: 1px solid rgba(255, 45, 123, 0.2);
  box-shadow: 0 0 20px rgba(255, 45, 123, 0.1);
}

.feature-card h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  color: var(--text-bright);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neon-cyan);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--neon-cyan);
}

.footer-bottom {
  max-width: 1200px;
  margin: var(--space-2xl) auto 0;
  padding: var(--space-lg) var(--space-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.social-links a:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--glow-cyan-sm);
}

/* ---- Grid System ---- */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid-auto {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
