/*
Theme Name: Be Radio
Theme URI: http://www.beradio.gr
Description: Custom WordPress theme replicating the Be Radio Android app design. Features a minimalist black background with lime green accents, integrated radio streaming player, and social media integration.
Version: 1.1.3
Author: Be Radio
Author URI: http://www.beradio.gr
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: beradio
Tags: radio, streaming, music, black, minimalist, single-page
*/

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
  --primary-black: #000000;
  --brand-green: #00FF00;
  --text-white: #FFFFFF;
  --notification-gray: #3c3c3c;
  --spacing-small: 8px;
  --spacing-medium: 16px;
  --spacing-large: 32px;
}

/* ========================================
   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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--primary-black);
  color: var(--text-white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */
.beradio-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: var(--spacing-medium);
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

/* ========================================
   HEADER - LOGO SECTION
   ======================================== */
.site-header {
  margin-top: var(--spacing-small);
  margin-bottom: var(--spacing-medium);
  text-align: center;
}

.site-logo {
  width: 300px;
  max-width: 90vw;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ========================================
   WELCOME SECTION
   ======================================== */
.welcome-section {
  text-align: center;
  margin-bottom: var(--spacing-medium);
}

.welcome-text {
  font-size: 25px;
  color: var(--text-white);
  font-weight: 400;
  margin: 0;
  padding: 0;
}

/* ========================================
   PLAYER SECTION
   ======================================== */
.player-section {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-medium);
  position: relative;
}

/* Play/Pause Button */
.play-pause-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 120px;
  height: 120px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  position: relative;
}

.play-pause-btn:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.play-pause-btn:active {
  transform: scale(0.95);
}

.play-pause-btn img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Hidden Audio Element */
#radio-stream {
  display: none;
}

/* ========================================
   NOW PLAYING SECTION
   ======================================== */
.now-playing-section {
  text-align: center;
  margin-bottom: var(--spacing-large);
  width: 100%;
  max-width: 500px;
}

.now-playing-label {
  font-size: 14px;
  color: var(--brand-green);
  margin-bottom: var(--spacing-small);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.song-title {
  font-size: 17px;
  color: var(--text-white);
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-small);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 0, 0.2);
  margin: 0;
}

.song-title.loading {
  opacity: 0.6;
  font-style: italic;
}

/* ========================================
   DESCRIPTION SECTION
   ======================================== */
.description-section {
  text-align: center;
  margin-top: var(--spacing-large);
  margin-bottom: var(--spacing-large);
  max-width: 500px;
}

.tagline-text {
  font-size: 18px;
  color: var(--text-white);
  line-height: 1.6;
  margin: 0;
}

.tagline-text a {
  color: var(--brand-green);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.tagline-text a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-medium);
  background-color: var(--primary-black);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--spacing-medium);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
  font-size: 14px;
  color: var(--text-white);
  margin: 0;
  grid-column: 1;
  justify-self: start;
}

.social-icons {
  display: flex;
  gap: var(--spacing-small);
  align-items: center;
  grid-column: 3;
  justify-self: end;
}

.social-icon {
  width: 30px;
  height: 30px;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.social-icon:hover {
  transform: scale(1.15);
  opacity: 0.8;
}

.social-icon:active {
  transform: scale(0.95);
}

.social-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

/* App Store Badges - Center */
.app-store-icons {
  grid-column: 2;
  display: flex;
  gap: var(--spacing-medium);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.app-store-badge {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.app-store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.app-store-badge:active {
  transform: scale(0.95);
}

.app-store-badge img {
  height: 50px;
  width: auto;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.loading-spinner {
  display: none;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top: 4px solid var(--brand-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.loading-spinner.active {
  display: block;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ========================================
   STATUS INDICATOR
   ======================================== */
.status-indicator {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 15px;
  height: 15px;
  background-color: var(--brand-green);
  border-radius: 50%;
  border: 2px solid var(--primary-black);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.status-indicator.playing {
  opacity: 1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets and small desktops */
@media (min-width: 768px) {
  .beradio-container {
    padding: var(--spacing-large);
  }

  .welcome-text {
    font-size: 28px;
  }

  .tagline-text {
    font-size: 20px;
  }

  .play-pause-btn {
    width: 150px;
    height: 150px;
  }
}

/* Large screens */
@media (min-width: 1024px) {
  .tagline-text {
    font-size: 22px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .welcome-text {
    font-size: 22px;
  }

  .tagline-text {
    font-size: 16px;
  }

  .play-pause-btn {
    width: 100px;
    height: 100px;
  }

  .website-btn {
    width: 50px;
    height: 50px;
  }

  .social-icon {
    width: 25px;
    height: 25px;
  }

  .copyright-text {
    font-size: 12px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--spacing-small);
    text-align: center;
    padding: var(--spacing-small);
  }

  .copyright-text {
    grid-column: 1;
    justify-self: center;
    order: 3;
  }

  .app-store-icons {
    grid-column: 1;
    justify-content: center;
    order: 1;
  }

  .social-icons {
    grid-column: 1;
    justify-self: center;
    order: 2;
  }

  .app-store-badge img {
    height: 50px;
    width: auto;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .player-section {
    gap: var(--spacing-small);
  }

  .play-pause-btn {
    width: 90px;
    height: 90px;
  }

  .app-store-badge img {
    height: 40px;
    width: auto;
  }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
  .beradio-container {
    padding: var(--spacing-small);
  }

  .site-header {
    margin-bottom: var(--spacing-small);
  }

  .welcome-section {
    margin-bottom: var(--spacing-small);
  }

  .player-section {
    margin-bottom: var(--spacing-small);
  }

  .description-section {
    margin-top: var(--spacing-small);
    margin-bottom: 60px; /* Space for footer */
  }

  .site-logo {
    width: 200px;
  }

  .play-pause-btn {
    width: 80px;
    height: 80px;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.screen-reader-text {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button:focus,
a:focus {
  outline: 2px solid var(--brand-green);
  outline-offset: 4px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0 !important;
  border: 0 !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden;
}

.text-center {
  text-align: center;
}

.mt-small { margin-top: var(--spacing-small); }
.mt-medium { margin-top: var(--spacing-medium); }
.mt-large { margin-top: var(--spacing-large); }

.mb-small { margin-bottom: var(--spacing-small); }
.mb-medium { margin-bottom: var(--spacing-medium); }
.mb-large { margin-bottom: var(--spacing-large); }
