/* Voga FM - Global Modern Style Sheet 
    Glassmorphism & Neon Accent Design
*/

/* 1. ANA DEĞİŞKENLER VE SIFIRLAMA */
:root {
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(40px);
    --voga-blue: #2563eb;
    --voga-red: #dc2626;
    --bg-dark: #050614;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 2. GLASSMORPHISM ANA KUTU YAPISI */
.glass-box {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-box:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* 3. BAŞLIKLAR VE TİPOGRAFİ */
.section-title {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #6b7280;
    margin-bottom: 2rem;
    border-left: 2px solid var(--voga-blue);
    padding-left: 1rem;
    display: block;
}

/* 4. MOBİL UYGULAMA VE DİĞER BUTONLAR */
.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
}

.app-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

/* 5. FORM GİRİŞLERİ */
.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem;
    padding: 1rem;
    color: white;
    font-size: 11px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--voga-blue);
    background: rgba(255, 255, 255, 0.05);
}

/* 6. ANİMASYONLAR */
.animate-marquee {
    display: inline-flex;
    animation: marquee 40s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.rotate-slow {
    animation: spin 20s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 7. ÖZEL SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--voga-blue);
}

/* 8. YARDIMCI SINIFLAR */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-slow {
    animation: spin-slow 8s linear infinite;
    animation-play-state: paused; /* Radyo çalmazken dursun */
}
.radio-playing .animate-spin-slow {
    animation-play-state: running; /* Radyo çalarken dönsün */
}

/* Kesikli Kenarlık ve Avatar Stili */
.dj-avatar-wrapper {
    position: relative;
    padding: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.2); /* Görseldeki kesikli çizgi */
    border-radius: 50%;
    transition: all 0.4s ease;
}

.dj-item:hover .dj-avatar-wrapper {
    border-color: #ec4899; /* Pink-500 rengi hoverda parlar */
    transform: rotate(15deg); /* Hafif bir dönüş efekti */
}

.dj-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(30%); /* Hafif sanatsal hava */
    transition: all 0.4s ease;
}

.dj-item:hover .dj-image {
    filter: grayscale(0%);
    transform: rotate(-15deg); /* Resmin düz kalması için ters dönüş */
}

/* Yatay Kaydırma Çubuğunu Gizle ama Kaydırmayı Koru */
.mask-fade::-webkit-scrollbar {
    display: none;
}
.mask-fade {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

function openEditModal(id, adi, sira) {
    document.getElementById('edit_id').value = id;
    document.getElementById('edit_adi').value = adi;
    document.getElementById('edit_sira').value = sira;
    
    const m = document.getElementById('editModal');
    m.classList.remove('hidden');
    m.classList.add('flex');
}

function closeEditModal() {
    const m = document.getElementById('editModal');
    m.classList.add('hidden');
    m.classList.remove('flex');
}