/*
Theme Name: 915 Radio
Description: A modern radio station WordPress theme with live player, news system, and responsive design. Features real-time radio streaming, song metadata display, DJ profiles, show schedules, and local news integration. Perfect for radio stations, podcasts, and music websites.
Author: 915 Team
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nine15
Tags: radio, music, streaming, news, entertainment, responsive, audio, broadcast, media
Requires at least: 5.0
Tested up to: 6.3
Requires PHP: 7.4

915 Radio WordPress Theme
Copyright (C) 2024 915

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

:root {
  --primary-color: #050505;
  --primary-gradient: linear-gradient(135deg, #c8ec00, #f4ff39);
  --bg-primary: #f5f6f1;
  --bg-secondary: #050505;
  --bg-card: #ffffff;
  --text-primary: #151515;
  --text-secondary: #4f554d;
  --text-muted: #8a9084;
  --accent-color: #c8ec00;
  --success-color: #10b981;
  --border-radius: 8px;
  --shadow-medium: 0 4px 16px rgba(0,0,0,0.1);
  --transition-smooth: 0.3s ease;
  --header-height: 90px;
  --player-height: 100px;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
}

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

html, body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

.app-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(ellipse at center, #f0f8ff 0%, #e6f3ff 70%);
  z-index: -1;
}

.app-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(229, 0, 110, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(161, 0, 142, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(75, 0, 130, 0.05) 0%, transparent 50%);
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* WordPress specific styles */
.wp-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-md);
  z-index: 1000;
  box-shadow: var(--shadow-medium);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.wp-header .logo {
  height: 65px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.wp-header .logo:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.wp-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.wp-nav-menu li {
  position: relative;
}

.wp-nav-menu a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
}

.wp-nav-menu a:hover,
.wp-nav-menu .current-menu-item > a {
  background: rgba(229, 0, 110, 0.1);
  color: var(--accent-color);
}

.wp-nav-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  padding: 0.5rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.wp-nav-menu li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wp-nav-menu .sub-menu a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.listen-btn {
  background: var(--primary-gradient);
  border: none;
  border-radius: 25px;
  color: white;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.listen-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(229, 0, 110, 0.4);
}

/* Main content area */
.wp-main-content {
  margin-top: var(--header-height);
  margin-bottom: var(--player-height);
  min-height: calc(100vh - var(--header-height) - var(--player-height));
}

/* Homepage specific styles */
.hero-section {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.05), rgba(229, 0, 110, 0.05));
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.frequency-display {
  display: inline-block;
  background: var(--bg-card);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  margin-bottom: 2rem;
}

/* News section */
.news-section {
  padding: 4rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition-smooth);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-card-content {
  padding: 1.5rem;
}

.news-card-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.news-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.news-card-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.news-card-title a:hover {
  color: var(--accent-color);
}

.news-card-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.read-more {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.read-more:hover {
  text-decoration: underline;
}

/* Persistent player with iframe widget */
.persistent-player {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--player-height);
  background: transparent;
  z-index: 1001;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-widget-container {
  width: 100%;
  height: 100%;
}

.player-widget-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

/* 915 Widget styling */
.nine15-widget-container {
  margin: 2rem auto;
  max-width: 800px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.nine15-widget-container iframe {
  width: 100%;
  height: 300px;
  border: none;
  background: transparent;
}

/* Footer */
.wp-footer {
  background: #050505;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
  color: #f7f7f0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: #c8cec0;
  line-height: 1.6;
  text-decoration: none;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(216, 255, 0, 0.22);
  color: #8f958a;
}

/* WordPress specific elements */
.wp-block-group {
  margin-bottom: 2rem;
}

.wp-block-heading {
  margin-bottom: 1rem;
}

.wp-block-paragraph {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.wp-block-image {
  margin-bottom: 1.5rem;
}

.wp-block-quote {
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
  :root {
    --header-height: 80px;
    --player-height: 90px;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
  }
  
  .wp-nav-menu {
    display: none; /* Will be replaced with mobile menu */
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .news-section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .listen-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* WordPress Core Styles */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Screen reader text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
