/* ============================================
   Radyo Portalı - Temel Stil (dark tema)
   Breakpoint'ler: 900px / 768px / 480px
   ============================================ */

:root {
    --bg: #0f1115;
    --bg-card: #181b21;
    --border: #262a33;
    --text: #e6e8eb;
    --text-muted: #9aa0aa;
    --accent: #3b82f6;
    --success: #22c55e;
    --error: #ef4444;
    --radius: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Auth formları (giriş/kayıt) ---- */
.auth-wrap {
    max-width: 420px;
    margin: 60px auto;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.auth-wrap h1 { margin-top: 0; font-size: 1.5rem; }

.auth-form { display: flex; flex-direction: column; gap: 6px; }
.auth-form label { font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; }
.auth-form input, .auth-form select, .auth-form textarea {
    background: #0f1115;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 1rem;
}
.auth-form input:focus, .auth-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.auth-form button {
    margin-top: 18px;
    padding: 12px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
}
.auth-form button:hover { opacity: 0.9; }

/* ---- Bildirimler ---- */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-error { background: rgba(239,68,68,0.12); border: 1px solid var(--error); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.12); border: 1px solid var(--success); color: #86efac; }

/* ---- Radyo kartları (grid) ---- */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.radio-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.radio-card img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.radio-card .sid-badge {
    font-size: 0.72rem;
    color: var(--text-muted);
    background: #0f1115;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 4px;
}

/* ---- SID sorgulama kutusu ---- */
.sid-search {
    max-width: 420px;
    margin: 24px auto;
    display: flex;
    gap: 8px;
    padding: 0 16px;
}
.sid-search input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
}
.sid-search button {
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .radio-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; padding: 14px; }
}

@media (max-width: 768px) {
    .radio-grid { grid-template-columns: repeat(2, 1fr); }
    .sid-search { flex-direction: column; }
}

@media (max-width: 480px) {
    .radio-grid { grid-template-columns: 1fr; }
    .auth-wrap { margin: 20px 12px; padding: 20px; }
    .radio-card { flex-wrap: wrap; }
}

/* ---- Public site header/footer/blog ---- */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg-card); position: sticky; top: 0; z-index: 40; }
.site-header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-weight: 700; font-size: 1.2rem; color: var(--text); display: flex; align-items: center; }
.logo-img { max-height: 36px; display: block; }
.main-nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.main-nav a { color: var(--text-muted); font-size: 0.92rem; }
.main-nav a:hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ---- Hero ---- */
.hero {
    background: radial-gradient(circle at top, rgba(59,130,246,0.15), transparent 60%), var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 56px 20px 40px;
    text-align: center;
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero h1 { font-size: 2.1rem; margin: 0 0 10px; letter-spacing: -0.5px; }
.hero-subtitle { color: var(--text-muted); font-size: 1.02rem; margin: 0 0 26px; }
.hero-search { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; }
.hero-search input {
    flex: 1; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--border);
    background: var(--bg-card); color: var(--text); font-size: 0.95rem;
}
.hero-search button {
    padding: 13px 22px; border-radius: 10px; border: none; background: var(--accent);
    color: #fff; font-weight: 600; cursor: pointer;
}
.hero-search button:hover { opacity: 0.9; }
.hero-stats { display: flex; justify-content: center; gap: 36px; margin-top: 32px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.4rem; }
.hero-stats span { color: var(--text-muted); font-size: 0.78rem; }

.section-block { max-width: 1200px; margin: 0 auto; padding: 10px 20px 40px; }
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-header h2 { margin: 0; font-size: 1.2rem; }
.section-count { color: var(--text-muted); font-size: 0.85rem; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.btn-cta {
    display: inline-block; margin-top: 14px; padding: 10px 22px; border-radius: 8px;
    background: var(--accent); color: #fff; font-weight: 600;
}
.btn-cta:hover { opacity: 0.9; text-decoration: none; }

.category-filter { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 10px 16px; }
.category-filter a { padding: 6px 14px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; }
.category-filter a.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.sid-found-banner { max-width: 1200px; margin: 0 auto 10px; padding: 0 20px; color: var(--text-muted); font-size: 0.85rem; }
.radio-card-highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

.pagination { display: flex; gap: 6px; justify-content: center; padding: 20px; flex-wrap: wrap; }
.pagination a { padding: 6px 12px; border-radius: 6px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); }
.pagination a.active { background: var(--accent); color: #fff; }

.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 24px 20px; text-align: center; }
.footer-nav { display: flex; gap: 16px; justify-content: center; margin-bottom: 10px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); font-size: 0.85rem; }
.copyright { color: var(--text-muted); font-size: 0.8rem; margin: 0; }

.profile-wrap { max-width: 900px; margin: 0 auto; padding: 24px 16px; }
.profile-section { margin-bottom: 32px; }
.profile-section-header { display: flex; justify-content: space-between; align-items: center; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: block; color: var(--text); }
.blog-card img { width: 100%; height: 160px; object-fit: cover; }
.blog-card-body { padding: 12px 14px; }
.blog-meta { color: var(--text-muted); font-size: 0.78rem; }

.blog-detail, .static-page { max-width: 760px; margin: 0 auto; padding: 24px 16px; }
.blog-cover { width: 100%; border-radius: var(--radius); margin: 16px 0; }
.blog-content, .static-page-content { line-height: 1.7; }
.blog-content img, .static-page-content img { max-width: 100%; border-radius: 8px; }

.editor-toolbar { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.editor-toolbar button { padding: 6px 10px; border-radius: 6px; border: 1px solid var(--border); background: #0f1115; color: var(--text); cursor: pointer; }

.radio-detail { max-width: 700px; margin: 0 auto; padding: 24px 16px; }
.radio-detail-card { display: flex; gap: 20px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.radio-detail-logo { width: 90px; height: 90px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }

/* ============ RESPONSIVE (public) ============ */
@media (max-width: 768px) {
    .main-nav { position: fixed; top: 60px; right: 0; left: 0; background: var(--bg-card); flex-direction: column; padding: 16px; display: none; border-bottom: 1px solid var(--border); z-index: 45; }
    .main-nav.open { display: flex; }
    .nav-toggle { display: block; }
    .radio-detail-card { flex-direction: column; text-align: center; }
    .radio-detail-logo { margin: 0 auto; }
    .hero { padding: 40px 16px 30px; }
    .hero h1 { font-size: 1.6rem; }
    .hero-stats { gap: 22px; }
}

@media (max-width: 480px) {
    .hero-search { flex-direction: column; }
}