/* ==========================================================
   FLOW RADYO - MODERN KARANLIK TEMA & SPA STİL DOSYASI
   ========================================================== */

:root {
    --bg-primary: #0b0f19;
    --bg-secondary: #131b2e;
    --bg-card: #182238;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #ec4899;
    --accent-hover: #db2777;
    --accent-secondary: #6366f1;
    --border-color: rgba(255, 255, 255, 0.08);
    --success: #10b981;
    --danger: #ef4444;
    --player-height: 92px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: calc(var(--player-height) + 24px);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ÜST NAVİGASYON */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    text-decoration: none;
}

.brand-logo-img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

.brand-logo span {
    color: var(--accent);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--accent);
}

.nav-admin-btn {
    border: 1px solid var(--border-color);
}

/* SPA GEÇİŞ EFEKTİ */
.main-content {
    transition: opacity 0.2s ease;
    min-height: calc(100vh - 170px);
}

.main-content.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

/* HERO ALANI */
.hero-section {
    margin-bottom: 36px;
}

.hero-card {
    background-size: cover;
    background-position: center;
    padding: 84px 0;
    border-bottom: 1px solid var(--border-color);
}

.hero-content {
    max-width: 680px;
}

.hero-tag {
    display: inline-block;
    background: rgba(236, 72, 153, 0.2);
    color: var(--accent);
    border: 1px solid rgba(236, 72, 153, 0.4);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin-bottom: 14px;
}

.hero-content p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* BÖLÜMLER VE KARTLAR */
.page-sections {
    padding-top: 24px;
    padding-bottom: 40px;
}

.section-block {
    margin-bottom: 48px;
}

.section-header {
    margin-bottom: 20px;
}

.section-header h1,
.section-header h2 {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* BANNER GRID */
.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.banner-item {
    position: relative;
    display: block;
    height: 190px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.banner-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.banner-item:hover img {
    transform: scale(1.04);
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.9), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 18px;
}

.banner-overlay span {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

/* MÜZİK LİSTELERİ VE ŞARKILAR */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.playlist-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
}

.playlist-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.playlist-cover {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.playlist-meta h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.playlist-meta p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.song-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
}

.song-rank {
    width: 24px;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
}

.song-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.song-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.song-details strong {
    font-size: 0.95rem;
}

.song-details span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.song-genre {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

/* PROGRAMLAR VE DJ KARTLARI */
.programs-grid,
.djs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.program-card,
.dj-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 20px;
}

.program-Schedule-badge {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.program-host {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.program-host img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.dj-card {
    display: flex;
    gap: 16px;
    align-items: center;
}

.dj-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* YORUM FORMU VE LİSTESİ */
.comments-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.comment-form-card,
.comments-list-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.comment-form-card h3,
.comments-list-card h3 {
    margin-bottom: 6px;
}

.comment-form-card > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.field-hint {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.error-msg {
    display: none;
    color: #fca5a5;
    font-size: 0.84rem;
    margin-top: 6px;
}

/* Modern CSS :user-invalid doğrulama geri bildirimi */
.form-group input:user-invalid,
.form-group textarea:user-invalid {
    border-color: var(--danger);
    background-color: rgba(239, 68, 68, 0.12);
}

.form-group input:user-invalid + .error-msg {
    display: block;
}

.form-group input:user-valid,
.form-group textarea:user-valid {
    border-color: var(--success);
}

.form-alert {
    margin-top: 12px;
    font-size: 0.9rem;
}

.alert-success {
    color: var(--success);
}

.alert-error {
    color: var(--danger);
}

.comments-feed {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 14px;
}

.comment-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    border-radius: 10px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.comment-header time {
    color: var(--text-muted);
}

/* SABİT ALT RADYO OYNATICI (STICKY PLAYER) */
.radio-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--player-height);
    background: rgba(19, 27, 46, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 200;
}

.player-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.now-playing-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.np-cover {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.np-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.np-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.live-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    letter-spacing: 0.5px;
}

.listener-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.np-title {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-artist {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.4);
    transition: transform 0.15s ease;
}

.play-btn:hover {
    transform: scale(1.06);
}

.volume-control input[type="range"] {
    width: 100px;
    accent-color: var(--accent);
    cursor: pointer;
}

@media (max-width: 640px) {
    .volume-control {
        display: none;
    }
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 12px 20px;
        gap: 8px;
    }
}
