/* =====================================================================
   recepkurnaz.com - ORTAK SİTE STİLLERİ
   Eskiden her sayfanın içinde dağınık duran <style> kodları burada toplandı.
   Renkler: --primary #2563eb, --secondary #0ea5e9
   ===================================================================== */

:root {
    --primary: #2563eb;
    --primary-koyu: #1d4ed8;
    --secondary: #0ea5e9;
    --metin: #334155;
    --baslik: #0f172a;
}

html { scroll-behavior: smooth; scroll-padding-top: 7rem; }

/* ---------- Ortak butonlar ---------- */
.btn-gradyan {
    background-image: linear-gradient(to right, var(--primary), var(--secondary));
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, .3), 0 4px 6px -4px rgba(59, 130, 246, .3);
    transition: all .2s ease;
}
.btn-gradyan:hover {
    background-image: linear-gradient(to right, #1d4ed8, #2563eb);
    transform: translateY(-2px);
}

/* Footer sosyal medya kareleri */
.sosyal-kare {
    width: 2.5rem; height: 2.5rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: .5rem; color: #fff;
    background-image: linear-gradient(to bottom right, var(--primary), var(--secondary));
    box-shadow: 0 4px 6px -1px rgba(0,0,0,.1);
    transition: all .2s ease;
}
.sosyal-kare:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,.15); }

/* ---------- Özel kaydırma çubuğu ---------- */
.custom-scrollbar::-webkit-scrollbar { width: 5px; height: 5px; }
.custom-scrollbar::-webkit-scrollbar-track { background: #f1f5f9; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* ---------- Blog yazı içeriği (Zengin metin editörü çıktısı) ---------- */
.okuma-alani { line-height: 1.8; color: var(--metin); font-size: 1.125rem; overflow-wrap: break-word; }
.okuma-alani h2 { font-size: 2rem; font-weight: 800; color: var(--baslik); margin-top: 2em; margin-bottom: 1em; line-height: 1.3; }
.okuma-alani h3 { font-size: 1.5rem; font-weight: 700; color: #1e293b; margin-top: 1.5em; margin-bottom: .75em; line-height: 1.4; }
.okuma-alani p { margin-bottom: 1.25em; }
.okuma-alani ul { list-style-type: disc; padding-left: 1.5em; margin-bottom: 1.25em; }
.okuma-alani ol { list-style-type: decimal; padding-left: 1.5em; margin-bottom: 1.25em; }
.okuma-alani li { margin-bottom: .5em; }
.okuma-alani a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.okuma-alani a:hover { color: var(--primary-koyu); }
.okuma-alani img { border-radius: 1rem; margin: 2.5em auto; max-width: 100%; height: auto; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1); }
.okuma-alani b, .okuma-alani strong { font-weight: 700; color: var(--baslik); }
.okuma-alani i, .okuma-alani em { font-style: italic; }
.okuma-alani blockquote { border-left: 4px solid var(--primary); background: #f8fafc; padding: 1em 1.5em; font-style: italic; margin-bottom: 1.5em; border-radius: 0 .5rem .5rem 0; }
.okuma-alani pre, .okuma-alani code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.okuma-alani pre { background: #0f172a; color: #e2e8f0; padding: 1.25em; border-radius: .75rem; overflow-x: auto; margin-bottom: 1.5em; }
.okuma-alani :not(pre) > code { background: #f1f5f9; color: #be123c; padding: .15em .4em; border-radius: .35rem; }
.okuma-alani table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: .95em; }
.okuma-alani th, .okuma-alani td { border: 1px solid #e2e8f0; padding: .6em .8em; text-align: left; }
.okuma-alani th { background: #f8fafc; }

/* Anasayfa hakkımda metni (editörden gelen biçimler) */
.hakkimda-metni a { color: var(--primary); text-decoration: underline; }
.hakkimda-metni ul { list-style: disc; padding-left: 1.5em; }
.hakkimda-metni ol { list-style: decimal; padding-left: 1.5em; }
.hakkimda-metni b, .hakkimda-metni strong { color: var(--baslik); }
.hakkimda-metni img { max-width: 100%; height: auto; border-radius: .75rem; }

/* Okuma ilerleme çubuğu (yazı detay sayfası) */
#okuma-ilerleme { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(to right, var(--primary), var(--secondary)); transition: width .1s linear; }

/* Satır kısaltma yardımcıları */
.satir-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.satir-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Yukarı çık butonu ---------- */
#yukari-cik.gorunur { opacity: 1; pointer-events: auto; }

/* ---------- Yapay zeka asistanı ---------- */
.ai-pencere { height: min(520px, calc(100vh - 8rem)); }
.ai-baloncuk { box-shadow: 0 10px 25px -5px rgba(37, 99, 235, .6); }
.ai-oneri {
    flex-shrink: 0; white-space: nowrap;
    font-size: 12px; font-weight: 600;
    padding: 6px 12px; border-radius: 9999px;
    background: #fff; color: var(--primary);
    border: 1px solid #dbeafe; transition: all .15s ease;
}
.ai-oneri:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.ai-mesaj a { color: var(--primary); text-decoration: underline; word-break: break-all; }
.ai-mesaj ul { list-style: disc; padding-left: 1.2em; margin: .35em 0; }
.ai-mesaj ol { list-style: decimal; padding-left: 1.2em; margin: .35em 0; }
.ai-mesaj li { margin: .15em 0; }
.ai-mesaj code { background: #f1f5f9; padding: .1em .35em; border-radius: .25rem; font-size: .9em; }
.ai-mesaj p + p { margin-top: .5em; }

/* Kart açılma animasyonu */
.gorunce-belir { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.gorunce-belir.belirdi { opacity: 1; transform: none; }

/* Hareket azaltma tercihi olan kullanıcılar için animasyonları kapat */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .gorunce-belir { opacity: 1; transform: none; }
}

/* ---------- Filtre butonları (Projeler / Yazılar) ---------- */
.filtre-btn { background: #fff; color: #475569; border-color: #e2e8f0; }
.filtre-btn:hover { border-color: var(--primary); color: var(--primary); }
.filtre-btn.aktif { background: var(--primary); color: #fff; border-color: var(--primary); }
