/* program.css - Midnight Gold Karargah (Tam Mühür) */

:root {
    --bg-main: #0B1120;
    --bg-card: #172133;
    --text-pure: #FFFFFF;
    --text-muted: #94A3B8;
    --primary: #818CF8;
    --accent: #FBBF24; /* Altın Sarısı */
    --border-soft: rgba(251, 191, 36, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; outline: none !important; }
body { background-color: var(--bg-main); font-family: 'Inter', sans-serif; color: var(--text-pure); text-align: center; }

.estetik-cerceve { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* BÜYÜTÜLMÜŞ & FERAH KONTROL PANELİ */
.kontrol-paneli {
    background: var(--bg-card); padding: 35px 50px; border-radius: 35px;
    border: 1px solid var(--border-soft); display: flex; flex-direction: column; 
    gap: 25px; margin: 20px auto 60px; max-width: 1150px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.info-notu {
    background: rgba(129, 140, 248, 0.05); border: 1px dashed var(--primary); padding: 12px;
    border-radius: 15px; font-size: 0.75rem; color: var(--text-muted); text-align: center;
}

.ayar-satiri { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; align-items: center; }
input, select { background: var(--bg-main) !important; border: 1px solid var(--border-soft) !important; color: #fff !important; padding: 12px 18px; border-radius: 12px; font-size: 0.9rem; }

/* BUTON ANİMASYONLARI */
.buton-mühür, .buton-tatil { transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; border: none; padding: 12px 25px; border-radius: 15px; font-weight: 700; }
.buton-mühür { background: var(--primary); color: #fff; }
.buton-mühür:hover { background: var(--accent); color: var(--bg-main); transform: translateY(-4px); box-shadow: 0 8px 20px rgba(251, 191, 36, 0.2); }
.buton-tatil { background: var(--accent) !important; color: var(--bg-main) !important; }
.buton-tatil:hover { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3); }

.buton-pdf { 
    margin-top: 15px; background: transparent; border: 2px solid var(--accent); color: var(--accent); 
    padding: 16px 45px; border-radius: 20px; font-weight: 800; cursor: pointer; align-self: center; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.buton-pdf:hover { background: var(--accent); color: var(--bg-main); transform: scale(1.05); box-shadow: 0 10px 25px rgba(251, 191, 36, 0.2); }

/* PLAN TABLOSU & HAFTALIK İZGARA */
.orman-temasi { background: var(--bg-card) !important; width: 100%; max-width: 1100px; padding: 35px !important; border-radius: 25px; border: 1px solid var(--border-soft); display: flex; flex-direction: column; margin: 0 auto 60px; padding-bottom: 80px !important;}
.pdf-header { border-bottom: 3px solid var(--accent); padding-bottom: 15px; margin-bottom: 25px; }
.pdf-isim { font-family: 'Caveat', cursive; font-size: 2.2rem; color: #fff; text-align: left; background: transparent !important; }

.haftalik-izgara { display: flex !important; gap: 8px; flex-grow: 1; height: 520px; }
.gun-sutunu { flex: 1; border-radius: 12px; background: rgba(11, 17, 32, 0.4); border: 1px solid var(--border-soft); overflow: hidden; display: flex; flex-direction: column; }

/* GÜN BAŞLIKLARI (LACİVERT & ALTIN AYRIMI) */
.gun-basligi { background: #1e293b !important; color: #fff !important; padding: 12px 5px; font-weight: 800; font-size: 0.7rem; text-transform: uppercase; border-bottom: 1px solid var(--border-soft); }
.gun-basligi.haftasonu { background: var(--accent) !important; color: var(--bg-main) !important; }

/* MODERNLEŞTİRİLMİŞ PREMIUM DERS KARTLARI (8 ADET SIĞACAK) */
.ders-listesi { 
    padding: 8px; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    
    /* İŞTE KRİTİK AYARLAR */
    flex-grow: 1;          /* Sütunun kalan tüm boşluğunu kapla der */
    min-height: 300px;     /* Gün boş olsa bile geniş bir tutma alanı bırakır */
    
    overflow-y: auto; 
}
.ders-karti { 
    background: linear-gradient(145deg, #25334a, #172133); border-radius: 10px; padding: 6px 4px; 
    border-left: 5px solid var(--primary); text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); cursor: grab;
}
.ders-karti:hover { border-left-color: var(--accent); transform: scale(1.02); }
.ders-adi-buyuk { font-size: 0.8rem; font-weight: 800; color: #fff; margin-bottom: 3px; }
.konu-adi-kucuk { font-size: 0.65rem; color: var(--text-muted); margin-bottom: 5px; }
.sure-vurgu { font-size: 0.6rem; font-weight: 800; color: #fff; background: rgba(251, 191, 36, 0.15); padding: 3px 10px; border-radius: 20px; display: inline-block; }


/* ==========================================
   PDF MODU (TEK SAYFA & NET TASARIM)
   ========================================== */
.pdf-modu { 
    background-color: #ffffff !important;
    background-image: linear-gradient(rgba(0,0,0,0.08) 1.5px, transparent 1.5px), 
                      linear-gradient(90deg, rgba(0,0,0,0.08) 1.5px, transparent 1.5px) !important;
    background-size: 20px 20px !important; color: #000 !important;
    padding: 10mm !important; margin: 0 !important; width: 297mm !important; 
    min-height: 206mm; max-height: 206mm; overflow: hidden !important; position: relative !important;
}
.pdf-modu .pdf-header h2, .pdf-modu .pdf-isim { color: #000 !important; }
.pdf-modu .gun-sutunu { background: rgba(255,255,255,0.9) !important; border: 1px solid #cbd5e1 !important; }

/* ==========================================
   PDF MODU (BEYAZ PREMIUM KARELİ - TEK SAYFA)
   ========================================== */
.pdf-modu { 
    background-color: #ffffff !important;
    background-image: linear-gradient(rgba(0,0,0,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(0,0,0,0.08) 1px, transparent 1px) !important;
    background-size: 20px 20px !important; color: #000 !important;
    padding: 10mm !important; margin: 0 !important; width: 297mm !important; 
    min-height: 206mm; max-height: 206mm; overflow: hidden !important; position: relative !important;
}
/* PDF BAŞLIK OKUNURLUĞU FİXED */
.pdf-modu .pdf-header h2 { color: #000 !important; }
.pdf-modu .pdf-isim { color: #000 !important; text-shadow: none !important; }

.pdf-modu .gun-sutunu { background: rgba(255,255,255,0.9) !important; border: 1px solid #cbd5e1 !important; }

/* PDF'te Kartların Görünürlük Mührü */
.pdf-modu .ders-karti { 
    background: #f8fafc !important; /* Kareli zeminde net gözükmesi için hafif gri */
    color: #000 !important; 
    border: 1px solid #cbd5e1 !important; 
    border-left: 5px solid #818CF8 !important; 
    box-shadow: none !important; 
}
.pdf-modu .ders-adi-buyuk { color: #000 !important; }
.pdf-modu .sure-vurgu { color: #000 !important; background: #e2e8f0 !important; }
.pdf-modu .ders-listesi { overflow: hidden !important; }

/* Sürüklenen kartın arkasındaki hayalet yer */
.sortable-ghost {
    opacity: 0.4;
    background: var(--primary) !important;
    border: 2px dashed var(--accent) !important;
}

/* MODAL TASARIMI */
.modal-arkaplan {
    display: none; /* Başlangıçta gizli */
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(8px); /* Arkayı bulanıklaştırır */
    justify-content: center;
    align-items: center;
}

.modal-icerik {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 25px;
    border: 1px solid var(--accent);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: modalAcilis 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalAcilis {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-ikon { font-size: 3rem; margin-bottom: 15px; }
#modalMesaj { font-size: 1.1rem; color: #fff; margin-bottom: 25px; font-weight: 600; }
.modal-butonlar { display: flex; gap: 15px; justify-content: center; }
#headerTarih {
    font-size: 0.95rem !important; /* 1.2'den 0.95'e düşürdük, daha dengeli durur */
    padding: 6px 18px !important;  /* Kutuyu da yazıya göre biraz daralttık */
    font-weight: 800 !important;   /* Yine kalın kalsın ki sarı üstünde kaybolmasın */
    letter-spacing: 0.3px;
}