/*
Theme Name: Serinav
Text Domain: serinav
Description: Final Professional Radio Portal - Integrated & Interactive Edition
Version: 16.0
*/

/* --- 1. DİNAMİK RENK DEĞİŞKENLERİ --- */
/* Not: Bu renkler single.php içerisindeki <style> bloğunda yönetim panelinden ezilmektedir */
:root {
    --ag-bg: #030712;
    --ag-surf: #111827;
    --ag-blue: #38bdf8;
    --ag-border: rgba(56, 189, 248, 0.15);
    --ag-red: #ef4444;
}

/* --- 2. ANA YAPI VE RESET --- */
.ag-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', sans-serif;
    background-color: var(--ag-bg);
    color: #fff;
    box-sizing: border-box;
}

/* --- 3. ANIMASYONLU RADYO ADI (GLOW) --- */
.ag-radio-name-small {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ag-blue);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: agNameGlow 2s infinite alternate;
    text-align: center;
}
@keyframes agNameGlow {
    from { text-shadow: 0 0 5px var(--ag-blue); opacity: 0.7; }
    to { text-shadow: 0 0 15px var(--ag-blue); opacity: 1; }
}

/* --- 4. MASAÜSTÜ YERLEŞİM (ZORUNLU YAN YANA) --- */
@media screen and (min-width: 1025px) {
    .ag-flex-container {
        display: flex !important;
        flex-direction: row !important;
        gap: 40px !important;
        align-items: flex-start !important;
    }
    .ag-main-side { flex: 1 !important; min-width: 0 !important; }
    .ag-sidebar-side { width: 336px !important; flex-shrink: 0 !important; }
    
    .ag-ad-728 { 
        width: 100%; 
        max-width: 728px; 
        height: 90px; 
        margin: 20px auto; 
        display: flex !important; 
    }
    .ag-ad-mobile-336 { display: none !important; }
}

/* --- 5. PLAYER KARTI --- */
.ag-player-card {
    background: var(--ag-surf);
    border: 1px solid var(--ag-border);
    border-radius: 28px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    position: relative;
}

/* PLAY BUTONU VE ETKİLEŞİM DURUMLARI */
.ag-play-circle {
    width: 90px; height: 90px;
    background: var(--ag-blue);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 15px 35px rgba(56, 189, 248, 0.3);
    transition: transform 0.2s ease;
    z-index: 5;
}
.ag-play-circle i { font-size: 55px; color: #000; position: relative; z-index: 2; }

/* Bağlanıyor (Loading) Animasyonu */
.ag-play-circle.loading::before {
    content: '';
    position: absolute;
    inset: -5px;
    border: 4px solid rgba(56, 189, 248, 0.2);
    border-top-color: var(--ag-blue);
    border-radius: 50%;
    animation: agSpin 1s linear infinite;
    z-index: 1;
}
@keyframes agSpin { to { transform: rotate(360deg); } }

/* Hata Durumu */
.ag-play-circle.error::after {
    content: 'close';
    font-family: 'Material Icons Round';
    position: absolute;
    font-size: 18px;
    color: #fff;
    background: #ef4444;
    border-radius: 50%;
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    bottom: 0; right: 0;
    border: 2px solid var(--ag-bg);
    z-index: 3;
}

/* EKOLAYZIR (SESE DUYARLI) */
.ag-eq-wrap { 
    display: flex; 
    align-items: flex-end; 
    gap: 4px; 
    height: 60px; 
    flex-grow: 1;
    justify-content: space-between;
}
.ag-eq-bar { width: 6px; height: 10px; background: var(--ag-blue); border-radius: 3px; opacity: 0.2; transition: 0.3s; }
.ag-eq-wrap.playing .ag-eq-bar { animation: agEqMove 0.8s infinite alternate; opacity: 1; }
@keyframes agEqMove { 0% { height: 10px; } 100% { height: 60px; } }

/* --- 6. SES KONTROLÜ VE REKLAMLAR --- */
.ag-vol-box { background: var(--ag-surf); border: 1px solid var(--ag-border); border-radius: 18px; padding: 15px 25px; margin-top: 20px; display: flex; align-items: center; gap: 15px; }
.ag-slider { flex: 1; accent-color: var(--ag-blue); cursor: pointer; height: 5px; }

/* Sidebar Reklam Kutusu */
.ag-sidebar-ad-box {
    width: 100%;
    min-height: 280px;
    background: #000;
    border: 1px dashed var(--ag-border);
    border-radius: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--ag-blue);
    font-size: 11px;
    margin-bottom: 25px;
    overflow: hidden;
}

/* --- 7. MAKALE VE ETİKET TASARIMI --- */
.ag-article-window { 
    background: var(--ag-surf); 
    border: 1px solid var(--ag-border); 
    border-radius: 20px; 
    margin-top: 20px; 
    height: 300px; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
}
.ag-content-body { padding: 25px; overflow-y: auto; flex: 1; font-size: 14px; line-height: 1.8; color: rgba(255,255,255,0.7); }
.ag-content-body p { margin-bottom: 1.5rem !important; }

.ag-tags-container {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ag-tag-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--ag-blue);
    background: var(--ag-surf);
    padding: 5px 12px;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid var(--ag-border);
    transition: 0.3s;
}
.ag-tag-link:hover {
    background: var(--ag-blue);
    color: #000;
}

/* --- 8. DUYURU BANDI (GÜNCEL) --- */
.ag-announcement-bar {
    width: 100%;
    background: var(--ag-surf);
    border: 1px solid var(--ag-border);
    border-radius: 14px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 48px;
}
.ag-ann-label {
    background: var(--ag-blue);
    color: #000;
    font-size: 9px;
    font-weight: 900;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    z-index: 10;
}

/* --- 9. MOBİL UYUMLULUK (1024px VE ALTI) --- */
@media screen and (max-width: 1024px) {
    .ag-flex-container { display: flex; flex-direction: column; }
    .ag-sidebar-side { width: 100%; margin-top: 30px; }
    .ag-player-card { flex-direction: column; padding: 30px 20px; }
    .ag-eq-wrap { width: 100%; margin-top: 20px; justify-content: center; gap: 3px; }
    .ag-eq-bar { width: 4px; }
    
    .ag-ad-728 { display: none !important; }
    .ag-ad-mobile-336 { 
        width: 100%; 
        max-width: 336px;
        min-height: 280px; 
        margin: 20px auto; 
        display: flex !important; 
        align-items: center; 
        justify-content: center;
        background: rgba(255,255,255,0.03);
        border: 1px dashed var(--ag-border);
        border-radius: 8px;
    }
}