/* ============================================
   4 The Music — "Vinyl & Velvet" Theme
   ============================================ */

:root {
    --bg-primary: #0F1624;
    --bg-card: #1A2332;
    --bg-card-hover: #222E40;
    --bg-header: #0B1018;
    --bg-input: rgba(255, 255, 255, 0.08);

    --text-primary: #FAF5E4;
    --text-secondary: rgba(250, 245, 228, 0.65);
    --text-muted: rgba(250, 245, 228, 0.4);

    --accent-coral: #FF6B4A;
    --accent-purple: #7C3AED;
    --accent-gold: #FBBF24;
    --accent-green: #22C55E;
    --accent-red: #EF4444;

    --border: rgba(250, 245, 228, 0.1);
    --border-warm: rgba(255, 107, 74, 0.3);

    --radius: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    --header-height: 110px;
    --chat-width: 320px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---- Reset & Base ---- */

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

html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-coral);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

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

/* ---- Typography ---- */

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.1rem; }

.section-title {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--accent-coral);
    background: transparent;
    color: var(--accent-coral);
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.btn:hover {
    background: var(--accent-coral);
    color: var(--bg-primary);
    opacity: 1;
}

.btn-filled {
    background: var(--accent-coral);
    color: var(--bg-primary);
}

.btn-filled:hover {
    background: #ff8566;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

.btn-ghost {
    border-color: var(--border);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: transparent;
}

/* ---- Header ---- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
}

.header-top {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

.logo-accent {
    color: var(--accent-coral);
    font-size: 0.7em;
    vertical-align: middle;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary) !important;
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.user-greeting {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.chat-toggle, .menu-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.chat-toggle:hover, .menu-toggle:hover {
    color: var(--accent-coral);
}

.menu-toggle {
    display: none;
}

/* ---- Player Bar ---- */

.player-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
}

.player-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: 2px solid var(--accent-coral);
    background: transparent;
    color: var(--accent-coral);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.player-btn:hover {
    background: var(--accent-coral);
    color: var(--bg-primary);
}

.player-live-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--text-muted);
    flex-shrink: 0;
}

.player-live-dot.live-active {
    background: var(--accent-red);
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.player-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.player-volume {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border);
    border-radius: 2px;
    outline: none;
    margin-left: auto;
}

.player-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    background: var(--accent-coral);
    cursor: pointer;
}

.player-volume::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: var(--radius-full);
    background: var(--accent-coral);
    cursor: pointer;
    border: none;
}

/* ---- Content Area ---- */

.content-area {
    min-height: calc(100vh - var(--header-height) - 200px);
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    text-align: center;
    margin-bottom: 2rem;
}

/* ---- Cards ---- */

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-warm);
}

.card-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.card-body {
    padding: 1rem;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ---- Grid Layouts ---- */

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

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

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

.grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* ---- Schedule Specific ---- */

.day-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.day-tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.day-tab:hover {
    border-color: var(--accent-coral);
    color: var(--text-primary);
}

.day-tab.active {
    background: var(--accent-coral);
    border-color: var(--accent-coral);
    color: var(--bg-primary);
}

.schedule-card .card-time {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 700;
}

.live-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--accent-green);
    color: var(--bg-primary);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: var(--radius);
    letter-spacing: 0.05em;
}

.now-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--accent-coral);
    color: var(--bg-primary);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: var(--radius);
    animation: pulse-dot 1.5s infinite;
}

/* ---- DJ Profile ---- */

.dj-profile {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.dj-profile-image {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.dj-profile-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-warm);
}

.dj-profile-content {
    flex: 1;
}

.dj-socials {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.dj-socials a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.dj-socials a:hover {
    border-color: var(--accent-coral);
    color: var(--accent-coral);
    opacity: 1;
}

/* ---- Homepage Hero ---- */

.hero {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 3rem;
}

.hero-dj-image {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--accent-coral);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.hero .hero-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Up Next Strip ---- */

.up-next {
    margin-bottom: 3rem;
}

.up-next-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.up-next-scroll .card {
    min-width: 200px;
    flex-shrink: 0;
}

/* ---- Mixes Grid ---- */

.mix-card .mix-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.mix-card .mix-stats i {
    margin-right: 0.2rem;
}

.mix-tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.tag {
    padding: 0.15rem 0.5rem;
    background: var(--bg-input);
    border-radius: var(--radius);
    font-size: 0.65rem;
    color: var(--accent-purple);
    font-weight: 600;
}

/* ---- Chart ---- */

.chart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.chart-position {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-gold);
    width: 2rem;
    text-align: center;
}

.chart-img {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    object-fit: cover;
}

.chart-info {
    flex: 1;
}

.chart-title {
    font-size: 0.8rem;
    font-weight: 600;
}

.chart-dj {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* ---- CTA Section ---- */

.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin: 3rem 0;
}

.cta-section h2 {
    color: var(--accent-gold);
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Forms ---- */

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-coral);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

select.form-input {
    cursor: pointer;
}

.form-error {
    color: var(--accent-red);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

/* ---- Chat Panel ---- */

.chat-panel {
    position: fixed;
    top: 0;
    right: -var(--chat-width);
    width: var(--chat-width);
    height: 100vh;
    background: var(--bg-header);
    border-left: 1px solid var(--border);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    transform: translateX(0);
}

.chat-panel.chat-open {
    transform: translateX(calc(-1 * var(--chat-width)));
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.chat-header h3 {
    margin: 0;
    font-size: 0.9rem;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.chat-msg {
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    line-height: 1.4;
}

.chat-nick {
    font-weight: 700;
    color: var(--accent-purple);
    margin-right: 0.5rem;
}

.chat-text {
    color: var(--text-primary);
}

.chat-input-area, .chat-nickname-prompt {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--border);
}

.chat-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.8rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-coral);
}

.chat-send {
    background: var(--accent-coral);
    border: none;
    color: var(--bg-primary);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
}

/* ---- Footer ---- */

.site-footer {
    background: var(--bg-header);
    border-top: 1px solid var(--border);
    padding: 3rem 1.5rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-tagline {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.footer-social a:hover {
    border-color: var(--accent-coral);
    color: var(--accent-coral);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---- Dashboard ---- */

.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.widget-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    min-height: 150px;
}

.widget-card i {
    font-size: 2rem;
    color: var(--accent-coral);
    margin-bottom: 1rem;
}

.widget-card span {
    font-weight: 600;
    font-size: 0.85rem;
}

/* ---- Search ---- */

.search-bar {
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-coral);
}

/* ---- Login Page ---- */

.login-container {
    max-width: 400px;
    margin: 3rem auto;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 2rem;
}

/* ---- Utilities ---- */

.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-gold { color: var(--accent-gold); }
.text-coral { color: var(--accent-coral); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .grid-2-1 { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .dj-profile { flex-direction: column; }
    .dj-profile-image { width: 100%; max-width: 300px; position: static; }
}

@media (max-width: 768px) {
    html { font-size: 16px; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-header);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .main-nav.nav-open { display: flex; }

    .menu-toggle { display: block; }

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

    .hero h1 { font-size: 1.6rem; }
    .hero-dj-image { width: 140px; height: 140px; }

    .content-area { padding: 1.5rem 1rem; }

    .user-greeting { display: none; }

    .chat-panel {
        width: 100%;
        right: -100%;
    }
    .chat-panel.chat-open {
        transform: translateX(-100%);
    }
}

@media (max-width: 500px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .day-tabs { gap: 0.15rem; }
    .day-tab { padding: 0.4rem 0.6rem; font-size: 0.7rem; }
    .hero-actions { flex-direction: column; align-items: center; }
}
