/* RadioCMS Public Frontend — Mobile-First Glassmorphic Design System */

:root {
    --page-bg: #090d1a;
    --panel-bg: #0d1424;
    --text-color: #f0f4ff;
    --primary-color: #00f0ff;
    --secondary-color: #7b5cff;
    --accent-color: #a78fff;
    --success-color: #00ff66;
    --danger-color: #ff5252;
    --warning-color: #ffb300;
    --glass-bg: rgba(13, 20, 36, 0.75);
    --glass-border: rgba(0, 240, 255, 0.15);
    --radius: 12px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html, body {
    background-color: var(--page-bg);
    color: var(--text-color);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden !important;
    max-width: 100vw;
    width: 100%;
}

body {
    padding-bottom: 90px; /* Space for sticky bottom player */
}

/* Glassmorphism Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Typography & Neon Accents */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-muted { color: rgba(240, 244, 255, 0.6); }

.text-glow {
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* Header & Mobile Hamburger Drawer */
.header-nav {
    position: sticky;
    top: 0;
    z-index: 3000;
    padding: 0.8rem 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(9, 13, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 800;
}

.desktop-nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.mobile-top-hamburger {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-top-hamburger:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.mobile-nav-modal-backdrop {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 3400;
}

.mobile-nav-modal-content {
    position: fixed;
    top: 70px;
    right: 12px;
    width: 270px;
    background: #0d1424;
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
    z-index: 3500;
}

.mobile-nav-item {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
    background: rgba(0, 240, 255, 0.15);
    color: var(--primary-color);
}

@media (max-width: 767px) {
    .desktop-nav-links, .desktop-only-btn {
        display: none !important;
    }
    .mobile-top-hamburger {
        display: inline-flex !important;
    }
}

/* Nav Links */
.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.6rem 0;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
}

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

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

/* Modal Dialogs */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: #0d1424;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    width: 100%;
    max-width: 440px;
    padding: 2rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

/* Form Controls */
.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    min-height: 44px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Initials Avatar Renderer */
.avatar-initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

/* Toast Notifications Container */
#toast-container {
    position: fixed;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 360px;
    width: calc(100% - 2.4rem);
}

.toast-msg {
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
}

.toast-success { background: rgba(0, 255, 102, 0.2); border: 1px solid var(--success-color); color: var(--success-color); }
.toast-error { background: rgba(255, 82, 82, 0.2); border: 1px solid var(--danger-color); color: var(--danger-color); }

/* Sticky Bottom Audio Player */
.sticky-audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(13, 20, 36, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
}
