/* ==========================================
   MODERN RADIO STREAMING APP - STYLES
   ========================================== */

:root {
    /* Color Palette - Living Pulpit Radio Brand */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent: #fbbf24;
    --accent-light: #fcd34d;
    --success: #10b981;
    --background: #1e293b;
    --surface: #334155;
    --surface-light: #475569;
    --text-primary: #ffffff;
    --text-secondary: #f1f5f9;
    --text-muted: #cbd5e1;
    --border: #475569;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.4);
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   HEADER
   ========================================== */

.header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(232, 220, 200, 0.2);
    animation: logoGlow 3s ease-in-out infinite;
}

.logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(37, 99, 235, 0.6));
    }
}

.logo-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tagline {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
}

/* ==========================================
   MAIN CONTENT
   ========================================== */

.main-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

/* ==========================================
   NOW PLAYING CARD
   ========================================== */

.now-playing-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.6s ease-out 0.2s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Gradient Overlay */
.now-playing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(251, 191, 36, 0.05) 100%);
    pointer-events: none;
}

.status-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid rgba(239, 68, 68, 0.5);
    border-radius: var(--radius-full);
    color: #f87171;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulseDot 1.5s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Album Art */
.album-art {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.album-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--surface-light) 0%, var(--surface) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
    animation: rotate 20s linear infinite;
    overflow: hidden;
}

.streaming-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.album-placeholder.playing {
    animation: rotate 20s linear infinite;
}

.album-placeholder.paused {
    animation-play-state: paused;
}

/* Track Info */
.track-info {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.track-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.track-artist {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Player Controls */
.player-controls {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

.control-btn {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--accent) 0%, #d4c4a8 100%);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.control-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-glow);
}

.control-btn:active {
    transform: scale(0.98);
}

.control-btn svg {
    pointer-events: none;
}

.hidden {
    display: none;
}

/* Volume Control */
.volume-control {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    max-width: 400px;
    margin: 0 auto;
    padding: var(--spacing-md);
    background: var(--surface-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.volume-icon {
    color: var(--accent);
    flex-shrink: 0;
}

.volume-slider {
    flex: 1;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--background);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.3);
}

.volume-slider::-webkit-slider-thumb:hover {
    background: var(--accent-light);
    box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.4);
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.3);
}

.volume-slider::-moz-range-thumb:hover {
    background: var(--accent-light);
    box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.4);
}

.volume-value {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    min-width: 45px;
    text-align: right;
}

/* ==========================================
   INFO GRID
   ========================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.info-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.info-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: var(--spacing-sm);
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact-section {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    border: 1px solid var(--border);
    text-align: center;
    animation: fadeIn 0.6s ease-out 0.6s both;
}

.contact-section h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.contact-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--surface-light);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.contact-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: fadeIn 0.6s ease-out 0.8s both;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-verse {
    font-style: italic;
    color: var(--text-secondary);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .container {
        padding: var(--spacing-md);
    }
    
    .logo-container {
        width: 100px;
        height: 100px;
    }
    
    .logo-text h1 {
        font-size: 2rem;
    }
    
    .logo-section {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .now-playing-card {
        padding: var(--spacing-lg);
    }
    
    .album-placeholder {
        width: 160px;
        height: 160px;
    }
    
    .track-title {
        font-size: 1.5rem;
    }
    
    .track-artist {
        font-size: 1rem;
    }
    
    .control-btn {
        width: 70px;
        height: 70px;
    }
    
    .control-btn svg {
        width: 28px;
        height: 28px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .logo-container {
        width: 80px;
        height: 80px;
    }
    
    .logo-text h1 {
        font-size: 1.75rem;
    }
    
    .tagline {
        font-size: 0.875rem;
    }
    
    .volume-control {
        padding: var(--spacing-sm);
    }
    
    .album-placeholder {
        width: 140px;
        height: 140px;
    }
    
    .album-placeholder svg {
        width: 60px;
        height: 60px;
    }
}

/* ==========================================
   LOADING STATE
   ========================================== */

.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--surface-light);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
input:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
