/* İyilik Hali İçerik Editörü — teal marka, kenar menü, yazı editörü */
:root { --ink: #06919D; --ink-dark: #057A84; --sand: #F6F4EF; --text: #1f2a2c; }
body { font-family: 'Public Sans', system-ui, sans-serif; color: var(--text); margin: 0; background: #f4f6f6; }
h1, h2, h3 { font-family: 'Instrument Serif', Georgia, serif; }

.btn-portal { background: var(--ink); color: #fff; border: none; border-radius: 10px; padding: .5rem 1.1rem; font-weight: 600; }
.btn-portal:hover { background: var(--ink-dark); color: #fff; }

/* Durum badge'leri */
.badge-soft { display: inline-block; background: rgba(6,145,157,.12); color: var(--ink-dark); border-radius: 999px; padding: .15rem .7rem; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge-durum-yayinda { background: rgba(25,135,84,.12); color: #146c43; }
.badge-durum-onay_bekliyor { background: rgba(255,152,0,.12); color: #b96a00; }
.badge-durum-taslak { background: rgba(108,117,125,.12); color: #495057; }

.lms-title { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* LMS shell — sidebar + içerik alanı */
.lms-shell { display: flex; min-height: 100vh; }
.lms-sidebar { width: 240px; background: #0f1718; color: #cdd7d8; flex-shrink: 0; padding: 1.2rem 0; }
.lms-brand { font-family: 'Instrument Serif', serif; font-size: 1.4rem; color: #fff; padding: 0 1.4rem 1rem; display: flex; align-items: center; gap: .5rem; }
.lms-sidebar nav { display: flex; flex-direction: column; }
.lms-sidebar nav a { color: #aebcbd; text-decoration: none; padding: .65rem 1.4rem; display: flex; align-items: center; gap: .7rem; font-size: .93rem; }
.lms-sidebar nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.lms-sidebar nav a.active { background: var(--ink); color: #fff; }
.lms-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.lms-topbar { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1.4rem; background: #fff; border-bottom: 1px solid #eee; }

/* Editör genel kartı */
.editor-kart { background: #fff; border: 1px solid #eaeaea; border-radius: 14px; padding: 1.1rem; }

/* Yazı listesi satır düzeni */
.yazi-listesi { background: #fff; border: 1px solid #eaeaea; border-radius: 14px; overflow: hidden; }
.yazi-satir { padding: .9rem 1.2rem; border-bottom: 1px solid #f1f1f1; display: flex; align-items: center; gap: .75rem; }
.yazi-satir:last-child { border-bottom: none; }

/* Editör formu */
.editor-form-kart { background: #fff; border: 1px solid #eaeaea; border-radius: 14px; padding: 1.6rem; }
.editor-baslik-input { font-family: 'Instrument Serif', serif; font-size: 1.3rem; border: none; border-bottom: 2px solid #eaeaea; border-radius: 0; padding: .5rem 0; }
.editor-baslik-input:focus { outline: none; box-shadow: none; border-color: var(--ink); }
.editor-metin-alani { font-size: .97rem; line-height: 1.7; resize: vertical; min-height: 320px; border-radius: 10px; }
.editor-metin-alani:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(6,145,157,.15); }

/* Özet kartları (pano) */
.ozet-kart { background: #fff; border: 1px solid #eaeaea; border-radius: 14px; padding: 1.2rem 1.4rem; text-align: center; }
.ozet-ikon { font-size: 1.8rem; color: var(--ink); display: block; margin-bottom: .4rem; }
.ozet-sayi { font-size: 2rem; font-weight: 700; color: var(--text); line-height: 1; }
.ozet-etiket { font-size: .82rem; color: #6c757d; margin-top: .25rem; }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--ink) 0%, var(--ink-dark) 100%); padding: 1rem; }
.login-card { background: #fff; border-radius: 18px; padding: 2rem; width: 100%; max-width: 400px; box-shadow: 0 20px 50px rgba(0,0,0,.2); }

/* ═══════════════ Zengin BlogEditor ═══════════════ */
.text-ink { color: var(--ink-dark); }
/* AI araç çubuğu */
.ai-cip { display: inline-flex; align-items: center; gap: .35rem; background: rgba(6,145,157,.1); color: var(--ink-dark); border: none; border-radius: 999px; padding: .35rem .8rem; font-size: .78rem; font-weight: 600; cursor: pointer; }
.ai-cip:hover:not(:disabled) { background: rgba(6,145,157,.18); }
.ai-cip:disabled { opacity: .5; cursor: not-allowed; }
.ai-oneri-panel { border: 1px solid rgba(6,145,157,.3); background: rgba(6,145,157,.05); border-radius: 12px; padding: .75rem; }
.ai-oneri-satir { display: block; width: 100%; text-align: left; background: #fff; border: none; border-radius: 8px; padding: .5rem .75rem; font-size: .88rem; cursor: pointer; margin-bottom: .25rem; }
.ai-oneri-satir:hover { background: rgba(6,145,157,.1); }
/* Markdown biçimlendirme */
.bicim-cubugu { display: flex; flex-wrap: wrap; gap: .25rem; }
.bicim-btn { min-width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e0e5e6; background: #fff; border-radius: 8px; font-size: .85rem; cursor: pointer; padding: 0 .4rem; }
.bicim-btn:hover { background: rgba(6,145,157,.08); }
/* Önizleme */
.onizleme-kutu { max-height: 28rem; overflow-y: auto; border: 1px solid #e0e5e6; background: #fafafa; border-radius: 10px; padding: .75rem 1rem; font-size: .9rem; line-height: 1.6; }
.onizleme-kutu h1, .onizleme-kutu h2, .onizleme-kutu h3 { font-family: 'Instrument Serif', Georgia, serif; margin: .6rem 0 .3rem; }
.onizleme-kutu blockquote { border-left: 3px solid var(--ink); margin: .5rem 0; padding-left: .75rem; color: #555; }
.onizleme-kutu a { color: var(--ink-dark); }
/* Kapak görseli */
.kapak-onizle { position: relative; border-radius: 12px; overflow: hidden; }
.kapak-onizle img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.kapak-kaldir { position: absolute; top: .5rem; right: .5rem; width: 1.8rem; height: 1.8rem; border: none; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; cursor: pointer; }
.kapak-sekme { display: flex; gap: .25rem; background: rgba(6,145,157,.08); border-radius: 8px; padding: .15rem; font-size: .78rem; }
.kapak-sekme-btn { flex: 1; border: none; background: none; border-radius: 6px; padding: .35rem; font-weight: 600; color: #6b7a7c; cursor: pointer; }
.kapak-sekme-btn.aktif { background: #fff; color: var(--ink-dark); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.kapak-yukle { display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; border: 1px dashed #cdd8d9; border-radius: 8px; padding: .75rem; font-size: .85rem; color: #6b7a7c; cursor: pointer; }
.kapak-yukle:hover { border-color: var(--ink); }
.mdi-spin { animation: mdi-spin 1s linear infinite; }
@keyframes mdi-spin { to { transform: rotate(360deg); } }
