/* İnternetsiz Font Tanımlamaları */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/Roboto-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald-Bold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron-Bold.ttf') format('truetype');
    font-weight: bold;
}
/* --- LOGO EFEKTLERİ --- */

/* Parlama Efekti */
.fx-glow { 
    filter: drop-shadow(0 0 12px var(--pure-black)) !important; 
}

/* Yuvarlak Yapma */
.fx-circle { 
    border-radius: 50% !important; 
    object-fit: cover;
}

/* Siyah Beyaz Efekti */
.fx-grayscale { 
    filter: grayscale(100%) !important; 
}

/* Nefes Alma (Pulse) Efekti */
.fx-pulse { 
    animation: logo-pulse-anim 2s infinite ease-in-out !important; 
}

@keyframes logo-pulse-anim { 
    0% { transform: scale(1); } 
    50% { transform: scale(1.1); } 
    100% { transform: scale(1); } 
}
:root { 
    --radius: 15px; 
    --cyan: #00eaff; 
    --green: #2bff88; 
    --orange: #ffaa00; 
    --bg-deep: #05060f;
    --panel-bg: rgba(16, 20, 35, 0.85);
    --border-glow: 0 0 20px rgba(0, 234, 255, 0.15);
}

::-webkit-scrollbar { display: none; }
* { box-sizing: border-box; -ms-overflow-style: none; scrollbar-width: none; }

body {
    margin: 0; padding: 0; font-family: 'Roboto', sans-serif;
    background: var(--bg-deep); 
    background-image: radial-gradient(circle at 50% 50%, #1a2238 0%, #05060f 100%);
    color: #fff; display: flex; flex-direction: column; height: 100vh; width: 100vw; overflow: hidden;
}

/* HEADER */
#header {
    height: 85px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 30px; background: rgba(0,0,0,0.8); border-bottom: 4px solid var(--cyan); 
    flex-shrink: 0; box-shadow: 0 5px 25px rgba(0,0,0,0.5); z-index: 100;
}
.header-left { width: 30%; display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.header-center { width: 40%; text-align: center; display: flex; justify-content: center; align-items: center; }
.header-right { width: 30%; display: flex; justify-content: flex-end; }

#school-name { font-family: 'Oswald'; font-size: 1.6em; color: var(--cyan); text-transform: uppercase; font-weight: 700; }
.main-tag { 
    font-family: 'Orbitron'; font-size: 18px; color: #fff; border: 2px solid var(--cyan); 
    padding: 5px 25px; border-radius: 50px; background: rgba(0,234,255,0.05); 
    text-shadow: 0 0 10px var(--cyan); white-space: nowrap;
}

#time-widget { font-family: 'Roboto'; text-align: right; color: var(--green); }
#time-widget .clock { font-size: 2.2em; font-weight: 700; line-height: 1; text-shadow: 0 0 15px var(--green); }

/* GRID */
#main-container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    flex: 1;
    padding: 15px;
    gap: 15px;
    overflow: hidden;
    min-height: 0;
}
.panel { display: flex; flex-direction: column; gap: 15px; height: 100%; min-height: 0; }
.widget { 
    background: var(--panel-bg); padding: 18px; border-radius: var(--radius); 
    border: 1px solid rgba(0, 234, 255, 0.2); display: flex; flex-direction: column; 
    position: relative; overflow: hidden; box-shadow: var(--border-glow); backdrop-filter: blur(12px);
}
.widget h3 { margin: 0 0 12px 0; border-left: 6px solid var(--cyan); padding-left: 12px; color: var(--cyan); font-size: 1.2em; text-transform: uppercase; font-family: 'Oswald'; }

.flex-priority { flex: 1; min-height: 0; }
.scroll-content { flex: 1; overflow-y: hidden; position: relative; }

/* VİDEO MODÜLÜ */
#video-widget { flex: 1; padding: 0; background: #000; position: relative; border: 3px solid rgba(0, 234, 255, 0.3); border-radius: var(--radius); }
#playerContainer { width: 100%; height: 100%; position: relative; overflow: hidden; }
#playerContainer video, #playerContainer img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; }

#video-info {
    position: absolute; bottom: 0px; left: 0; width: 100%; padding: 15px; 
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
    backdrop-filter: blur(8px); z-index: 45; opacity: 0; transition: opacity 1s ease-in-out;
}
#video-info.show { opacity: 1; }
#video-info h2 { margin: 0; font-family: 'Oswald'; color: var(--cyan); font-size: 1.3em; text-transform: uppercase; }
#video-info p { margin: 5px 0 0 0; color: #eee; font-size: 1.0em; }

#video-controls {
    position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(0, 10, 20, 0.95); 
    border-top: 1px solid var(--cyan); padding: 15px 20px; display: flex; flex-direction: column; 
    gap: 10px; transform: translateY(100%); transition: 0.4s; z-index: 50;
}
#video-widget:hover #video-controls { transform: translateY(0); }

.btn-ctrl { background: rgba(0,234,255,0.1); border: 1px solid var(--cyan); color: white; cursor: pointer; padding: 6px 12px; border-radius: 4px; font-family: 'Orbitron'; font-size: 10px; min-width: 80px; }
input[type=range] { -webkit-appearance: none; flex: 1; height: 6px; background: #333; border-radius: 5px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 16px; width: 16px; border-radius: 50%; background: var(--cyan); }

/* DERS VE NÖBET TASARIMI */
.nobetci-item { background: linear-gradient(90deg, rgba(0, 234, 255, 0.1), rgba(0, 0, 0, 0.3)); border-left: 5px solid var(--cyan); padding: 8px; margin-bottom: 5px; border-radius: 5px; display: flex; align-items: center; justify-content: space-between; }
.nobet-yer { font-family: 'Orbitron'; font-size: 0.65em; color: var(--cyan); }
.nobet-isim { font-family: 'Oswald'; font-size: 0.9em; font-weight: bold; }

#ders-durum-mesaj { background: rgba(0, 234, 255, 0.1); padding: 10px; border-radius: 10px; border: 1px solid var(--cyan); margin-bottom: 10px; font-family: 'Oswald'; font-size: 1.1em; display: flex; align-items: center; gap: 10px; }
.kalan-sure { font-family: 'Roboto'; font-size: 1.4em; color: var(--green); font-weight: bold; }
#ders-tablo { width: 100%; border-collapse: separate; border-spacing: 0 4px; table-layout: fixed; }
#ders-tablo td { padding: 8px; font-family: 'Oswald'; font-weight: bold; border-radius: 6px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sinif-hucre { background: rgba(0, 234, 255, 0.15); color: var(--cyan); width: 35%; }

/* FOOTER */
#footer { height: 45px; background: rgba(0,0,0,0.9); border-top: 3px solid var(--cyan); display: flex; align-items: center; overflow: hidden; }
.duyuru-text {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    /* Titremeyi ve takılmayı önleyen kritik ayarlar */
    will-change: transform;
    transform: translateZ(0); 
    backface-visibility: hidden;
    perspective: 1000;
    -webkit-font-smoothing: antialiased;
}

@keyframes marquee { 
    from { transform: translate3d(0, 0, 0); } 
    to { transform: translate3d(-100%, 0, 0); } 
}

/* ESNEK MODÜL STİLLERİ */
#esnek-icerik { font-family: 'Oswald'; font-size: 1.2em; line-height: 1.4; white-space: pre-line; overflow-y: auto; flex: 1; }
#esnek-baslik { font-family: 'Oswald' !important; font-size: 1.3em !important; }

/* OVERLAY */
#start-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; 
    background: rgba(5, 6, 15, 0.2); z-index: 10000; display: flex; 
    align-items: center; justify-content: center; backdrop-filter: blur(10px); 
    transition: opacity 0.5s ease; border: none;
}
.start-box {
    background: #101423; border: 2px solid #00eaff; width: 600px; 
    padding: 50px; border-radius: 15px; text-align: center; 
    box-shadow: 0 0 50px rgba(0, 234, 255, 0.2); flex-shrink: 0;
}
.start-btn {
    background: #00eaff; color: #000000; border: none; width: 280px; 
    height: 60px; font-family: 'Orbitron', sans-serif; font-weight: bold; 
    font-size: 18px; border-radius: 50px; cursor: pointer; transition: transform 0.2s; 
    box-shadow: 0 0 25px rgba(0, 234, 255, 0.4); display: inline-block;
}

/* EFFECTS & ANIMATIONS */
.fx-glow { filter: drop-shadow(0 0 15px var(--cyan)); }
.fx-grayscale { filter: grayscale(100%); }
.fx-circle { border-radius: 50%; }

.effect-zoom { animation: zoomIn 0.8s ease-out; }
.effect-slide { animation: slideIn 0.8s ease-out; }
.effect-pulse { animation: pulse 2s infinite; }

@keyframes zoomIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes slideIn { from { transform: translateX(-50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }

@media (max-width: 1000px) {
    .header-center { display: none; }
    .header-left, .header-right { width: 50%; }
}
.gunun-notu-metni {
    color: #ffffff; /* Neon temada beyaz metin en iyi sonucu verir */
    font-size: 1.1em;
    line-height: 1.4;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}
.gunun-notu-baslik {
    color: var(--orange);
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
@media (max-width: 992px) {
    /* 1. Sayfayı kilitleyen yükseklik ayarlarını kaldır */
    body {
        overflow-y: auto !important;
        height: auto !important;
        display: block !important;
    }

    /* 2. Logoların ve Okul İsminin Olduğu Üst Kısmı Düzenle */
    #header {
        height: auto !important;
        flex-direction: column !important;
        padding: 15px !important;
        gap: 10px;
    }

    .header-left, .header-center, .header-right {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* 3. Kutuları Alt Alta Diz (Grid'i İptal Et) */
    #main-container {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        padding: 10px !important;
        gap: 20px !important;
    }

    .panel {
        height: auto !important;
        width: 100% !important;
    }

    /* 4. "SİSTEMİ BAŞLAT" BUTONUNUN OLDUĞU KONTROL PANELİ */
    #video-controls {
        position: static !important; /* Gizlendiği yerden çıkar */
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: flex !important;
        flex-direction: column !important;
        background: #f8f8f8 !important;
        border: 2px solid #000 !important;
        margin-top: 10px !important;
        padding: 15px !important;
    }

    .btn-ctrl {
        width: 100% !important;
        height: 50px !important; /* Mobilde parmakla basmak için ideal boy */
        font-weight: bold !important;
        background: #000 !important;
        color: #fff !important;
        margin-bottom: 5px !important;
    }

    /* 5. Alt Duyuru Bandını Sabitleme (Kaydırmayı Engellemesin) */
    #footer {
        position: relative !important;
        height: 50px !important;
        margin-top: 30px !important;
    }
}
#playerContainer iframe {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* Videoyu alana yayar */
    border: none;
}

#video-widget {
    overflow: hidden; /* Taşmaları engeller */
}