/*
Theme Name: Ella Radio
Theme URI: https://www.ella-radio.de
Author: Ella Radio Team
Author URI: https://www.ella-radio.de
Description: Custom WordPress theme for Ella Radio - Berlin's radio station for Jazz, Soul & Blues. Features 48+ music channels, news, events, and artist profiles with modern glassmorphism design.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ella-radio
Tags: radio, music, streaming, jazz, responsive, custom-background, custom-colors, custom-header, custom-menu, featured-images, flexible-header, post-formats, theme-options, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* 
==============================================
  TABLE OF CONTENTS
==============================================
  1. CSS Variables (Design System)
  2. Reset & Base Styles
  3. Typography
  4. Layout
  5. Components
  6. Utilities
  7. Responsive
==============================================
*/

/* ==============================================
   1. CSS VARIABLES (DESIGN SYSTEM)
============================================== */
:root {
  /* Primary Colors - Rot Theme */
  --background: 0 0% 93%;           /* #EEEEEE - Hellgrauer Body */
  --foreground: 0 0% 20%;           /* Dunkler Text auf hellem Hintergrund */
  
  --card: 0 0% 100%;                /* #FFFFFF - Weiße Cards */
  --card-foreground: 0 0% 20%;      /* Dunkler Text auf Cards */
  
  --primary: 356 85% 45%;           /* #E30917 - Rot für Buttons/Accents */
  --primary-foreground: 0 0% 100%;  /* Weiß */
  
  --secondary: 356 85% 55%;         /* Helleres Rot */
  --secondary-foreground: 0 0% 100%;
  
  --muted: 0 0% 85%;                /* Hellgrau */
  --muted-foreground: 0 0% 45%;     /* Mittelgrauer Text */
  
  --accent: 356 85% 55%;            /* Helleres Rot für Hover */
  --accent-foreground: 0 0% 100%;
  
  --border: 0 0% 85%;               /* Hellgraue Borders */
  --input: 0 0% 100%;               /* Weißer Input-Hintergrund */
  
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;
  
  /* Theme specific colors */
  --header-bg: 356 85% 45%;         /* #E30917 - Roter Header */
  --player-bg: 356 85% 45%;         /* #E30917 - Roter Player */
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(214 89% 45%), hsl(214 89% 65%));
  --gradient-hero: linear-gradient(180deg, hsl(214 89% 8%), hsl(214 70% 15%));
  --gradient-card: linear-gradient(135deg, hsl(214 60% 12% / 0.8), hsl(214 50% 18% / 0.6));
  
  /* Shadows */
  --shadow-glow: 0 0 40px hsl(356 85% 45% / 0.4);
  --shadow-card: 0 10px 30px -10px hsl(356 85% 45% / 0.3);
  
  /* Border Radius */
  --radius: 1rem;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-Index Scale */
  --z-navigation: 50;
  --z-player: 40;
  --z-modal: 60;
  --z-dropdown: 55;
}

/* ==============================================
   2. RESET & BASE STYLES
============================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background-color: #ffffff;
  color: #4a3c31;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* SVGs werden standardmäßig nicht global skaliert,
   Größe wird pro Komponente (Player, Streams, etc.) geregelt */
svg {
  width: auto;
  height: auto;
}

a {
  color: hsl(var(--primary));
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: hsl(var(--accent));
}

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

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ==============================================
   3. TYPOGRAPHY
============================================== */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, #E30917, #C10713);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  padding-bottom: 0.1em;
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

/* ==============================================
   4. LAYOUT
============================================== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-content {
  flex: 1;
  padding-bottom: 2rem;
}

.container {
  max-width: 1398px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (min-width: 1440px) {
  .container {
    padding: 0;
  }
}

.page-content-top {
  padding-top: 11rem;
}

.page-hero-top {
  padding-top: 13rem;
}

/* ==============================================
   SECTIONS SPACING
============================================== */

/* Homepage Sections - Einheitliche Abstände */
section.section-channels,
section.section-news,
section.section-events {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

@media (max-width: 768px) {
  section.section-news,
  section.section-events {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }
  
  section.section-channels {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #E30917, #C10713);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1.125rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
}

/* ==============================================
   5. COMPONENTS
============================================== */

/* Glass Morphism Card */
.glass-card {
  background: linear-gradient(135deg, hsl(var(--card) / 0.6), hsl(var(--card) / 0.3));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--border) / 0.3);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: calc(var(--radius) * 0.5);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background: hsl(var(--accent));
  box-shadow: var(--shadow-glow);
  color: hsl(var(--primary-foreground));
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-outline {
  background: transparent;
  border: 2px solid hsl(var(--primary));
  color: hsl(var(--primary));
}

.btn-outline:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Badge */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: calc(var(--radius) * 0.25);
  font-size: 0.875rem;
  font-weight: 600;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==============================================
   6. UTILITIES
============================================== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.hidden {
  display: none !important;
}

/* ==============================================
   7. RESPONSIVE
============================================== */
@media (max-width: 1279px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.75rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  
  .container {
    padding: 0 1rem;
  }
}
