/* ============ Setenay Berru Özay — kişisel site ============ */
:root {
  --ink: #17303a;
  --ink-soft: #4a6572;
  --teal: #0e7c7b;
  --teal-dark: #0a5d5c;
  --teal-soft: #d9f0ee;
  --mint: #f2faf8;
  --sand: #fbf7f1;
  --white: #ffffff;
  --line: #e3edea;
  --radius: 18px;
  --shadow: 0 10px 34px rgba(14, 90, 92, 0.10);
  --font-body: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-soft); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); min-width: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--teal), #16a5a3);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
}
.brand-text { font-weight: 600; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { display: block; font-weight: 500; color: var(--teal); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--teal-dark); }
.nav-ig { color: var(--teal) !important; font-weight: 600 !important; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--mint) 0%, var(--white) 100%); padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.eyebrow {
  color: var(--teal); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px;
}
.hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; line-height: 1.08; margin-bottom: 18px; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 480px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo { position: relative; justify-self: center; }
.photo-ring {
  width: 300px; height: 300px; border-radius: 50%;
  padding: 10px; background: linear-gradient(140deg, var(--teal), #7fd1c8, var(--sand));
  box-shadow: var(--shadow);
}
.photo-ring.small { width: 190px; height: 190px; padding: 7px; }
.photo-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 5px solid var(--white); }
.hero-badge {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 0.85rem; font-weight: 600; white-space: nowrap;
  box-shadow: 0 6px 18px rgba(14, 90, 92, 0.12);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer; font-family: var(--font-body);
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(14, 124, 123, 0.3); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: var(--white); color: var(--teal-dark); border: 1.5px solid var(--teal-soft); }
.btn-ghost:hover { border-color: var(--teal); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--sand); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.section h2 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; }
.link-more { font-weight: 600; font-size: 0.95rem; }
.split { display: grid; grid-template-columns: 1fr; gap: 36px; }
.split-intro { max-width: 640px; margin: 0 auto; text-align: center; }
/* ---------- Dusunce bulutlari (uzmanlik alanlari) ---------- */
.bubble-cloud {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 34px 24px; max-width: 980px; margin: 14px auto 0; padding: 6px 0 34px;
}
.bubble { --r: 0deg; animation: bubble-bob 3.8s ease-in-out infinite alternate; }
.b-in {
  display: inline-block; position: relative; padding: 15px 24px; text-align: center;
  font-weight: 600; font-size: 0.95rem; line-height: 1.5; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: 0 6px 18px rgba(14,90,92,0.07); max-width: 310px; text-wrap: balance;
  transform: rotate(var(--r)); cursor: default;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
/* dusunce kuyrugu: baloncugun altinda kuculen kabarciklar (sol/sag donusumlu) */
.bubble .b-in::before, .bubble .b-in::after {
  content: ''; position: absolute; border-radius: 50%;
  background: inherit; border: 1px solid var(--line); transition: inherit;
}
.bubble .b-in::before { width: 13px; height: 13px; bottom: -8px; }
.bubble .b-in::after { width: 7px; height: 7px; bottom: -18px; }
.tail-l .b-in::before { left: 28px; }
.tail-l .b-in::after { left: 18px; }
.tail-r .b-in::before { right: 28px; }
.tail-r .b-in::after { right: 18px; }
/* pastel tonlar ve hafif boyut farklari */
.b1 .b-in { background: #eaf7f3; }
.b2 .b-in { background: #fdf3e7; font-size: 0.88rem; }
.b3 .b-in { background: #f1effb; }
.b4 .b-in { background: #e9f4fb; }
.b5 .b-in { background: #fdf0f3; font-size: 1.02rem; }
.b6 .b-in { background: #eaf7f3; }
.b7 .b-in { background: #fdf3e7; font-size: 1.02rem; }
.b8 .b-in { background: #f1effb; font-size: 0.88rem; }
.b9 .b-in { background: #e9f4fb; }
/* asimetrik sacilim: her baloncugun egimi ve dusey kaymasi farkli */
.b1 { --r: -2.5deg; animation-duration: 3.4s; }
.b2 { --r: 2deg; margin-top: 22px; animation-duration: 4.2s; animation-delay: 0.5s; }
.b3 { --r: 1.6deg; margin-top: -6px; animation-duration: 3.6s; animation-delay: 1.1s; }
.b4 { --r: -1.8deg; margin-top: 16px; animation-duration: 4.6s; animation-delay: 0.3s; }
.b5 { --r: 2.2deg; margin-top: -4px; animation-duration: 3.3s; animation-delay: 1.6s; }
.b6 { --r: -2deg; margin-top: 18px; animation-duration: 4s; animation-delay: 0.8s; }
.b7 { --r: 1.8deg; margin-top: -6px; animation-duration: 3.5s; animation-delay: 2s; }
.b8 { --r: -1.4deg; margin-top: 12px; animation-duration: 4.4s; animation-delay: 1.3s; }
.b9 { --r: 2.4deg; margin-top: -4px; animation-duration: 3.7s; animation-delay: 0.6s; }
/* uzerine gelince / dokununca canlanma */
.bubble:hover .b-in, .bubble:active .b-in {
  transform: rotate(0deg) scale(1.08); background: var(--teal); color: #fff;
  border-color: var(--teal); box-shadow: 0 16px 34px rgba(14, 124, 123, 0.28);
}
@keyframes bubble-bob {
  from { transform: translateY(0); }
  to { transform: translateY(var(--amp, -10px)); }
}
@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; }
  .b-in { transition: none; }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--ink); display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-cover { height: 170px; background-size: cover; background-position: center; background-color: var(--teal-soft); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.card-body h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.card-body p { color: var(--ink-soft); font-size: 0.93rem; }
.card-meta { margin-top: auto; color: var(--teal); font-size: 0.82rem; font-weight: 600; }

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(180deg, var(--mint), var(--white)); padding: 54px 0 30px; }
.page-hero h1 { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; }

/* ---------- Hakkımda ---------- */
.about-grid { display: grid; grid-template-columns: 250px 1fr; gap: 48px; align-items: start; }
.about-side { text-align: center; position: sticky; top: 100px; }
.about-side .photo-ring { margin: 0 auto 18px; }
.about-name { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 4px; }
.about-links { margin-top: 14px; }

/* ---------- Makale ---------- */
.article-cover {
  display: block; width: 100%; max-height: 400px; object-fit: cover;
  border-radius: 18px; border: 1px solid var(--line); margin-bottom: 30px;
}
.article-container { max-width: 760px; padding-top: 40px; padding-bottom: 64px; }
.article-container h1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; line-height: 1.15; margin-bottom: 22px; }
.article-author { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.article-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.article-cta {
  margin-top: 48px; padding: 30px; text-align: center;
  background: var(--mint); border-radius: var(--radius);
}
.article-cta p { margin-bottom: 14px; font-weight: 500; }

/* ---------- Prose (markdown çıktısı) ---------- */
.prose { font-size: 1.04rem; }
.prose h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin: 34px 0 12px; }
.prose h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin: 26px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 8px; }
.prose ul li::marker { color: var(--teal); }
.prose img { max-width: 100%; }
.prose strong { color: var(--teal-dark); }
.prose blockquote { border-left: 4px solid var(--teal); padding: 8px 18px; background: var(--mint); border-radius: 0 10px 10px 0; margin-bottom: 16px; color: var(--ink-soft); }
.prose img { border-radius: 12px; margin: 10px 0 18px; }
.prose a { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfe0dd; padding: 36px 0; margin-top: 40px; }
.footer-row { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.footer-row strong { color: #fff; }
.footer-links { display: flex; gap: 18px; justify-content: center; }
.footer-links a { color: #8fd3cd; font-weight: 500; }
.footer-note { font-size: 0.8rem; opacity: 0.65; }

/* ---------- Yönetim ---------- */
.admin-body { background: var(--mint); min-height: 100vh; }
.admin-login-card {
  max-width: 400px; margin: 10vh auto; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 38px;
}
.admin-login-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.admin-login-card .muted { margin-bottom: 22px; font-size: 0.9rem; }
.admin-wrap { max-width: 860px; margin: 40px auto; padding: 0 20px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.admin-header h1 { font-size: 1.5rem; }
.admin-nav { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.admin-form, .admin-login-card form { display: flex; flex-direction: column; gap: 6px; }
.admin-form { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.admin-form label, .admin-login-card label { font-weight: 600; font-size: 0.9rem; margin-top: 14px; }
.admin-form input[type="text"], .admin-form textarea,
.admin-login-card input {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px;
  font-family: var(--font-body); font-size: 0.97rem; width: 100%;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-login-card input:focus { outline: 2px solid var(--teal-soft); border-color: var(--teal); }
.admin-form textarea { resize: vertical; line-height: 1.55; }
.admin-form input[type="file"] { padding: 8px 0; font-size: 0.9rem; }
.admin-form .btn { margin-top: 22px; align-self: flex-start; }
.admin-login-card .btn { margin-top: 22px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check-row { display: flex; align-items: center; gap: 10px; margin-top: 18px !important; cursor: pointer; }
.check-row input { width: 18px; height: 18px; }
/* ---------- Renkli bilgi kutulari (::: renk emoji sozdizimi) ---------- */
.kutu {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: 18px; padding: 18px 20px; margin: 24px 0;
  border: 1px solid transparent;
}
.kutu-ikon { font-size: 1.55rem; line-height: 1.25; flex-shrink: 0; }
.kutu-icerik { min-width: 0; flex: 1; }
.kutu-icerik > :first-child { margin-top: 0 !important; }
.kutu-icerik > :last-child { margin-bottom: 0 !important; }
.kutu-pembe { background: #fdf0f3; border-color: #f5d9e0; }
.kutu-yesil { background: #eaf7f3; border-color: #cfe9e0; }
.kutu-mor { background: #f1effb; border-color: #ddd8f2; }
.kutu-sari { background: #fdf6e3; border-color: #f0e5c0; }
.kutu-mavi { background: #e9f4fb; border-color: #cfe4f3; }
.kutu-turuncu { background: #fdf3e7; border-color: #f3ddc2; }

/* Editor yardim kutusu + on izleme alani */
.editor-yardim {
  background: var(--mint); border: 1px solid #cfe9e0; border-radius: 10px;
  padding: 10px 14px; font-size: 0.83rem; line-height: 1.7; margin-bottom: 8px; color: #3d5a5a;
}
.editor-yardim code { background: var(--white); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 0.78rem; }
.onizleme {
  border: 2px dashed var(--line); border-radius: 14px; padding: 22px 24px;
  margin-top: 10px; background: var(--white);
}

/* ---------- Dropzone (gorsel yukleme alani) ---------- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 2px dashed var(--line); border-radius: 14px; padding: 22px 16px; text-align: center;
  cursor: pointer; background: #fbfdfd; transition: border-color 0.2s, background 0.2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--teal); background: var(--mint); }
.dropzone .dz-preview { display: none; max-height: 170px; max-width: 100%; border-radius: 10px; object-fit: cover; }
.dropzone.has-image .dz-preview { display: block; }
.dropzone .dz-text { font-size: 0.83rem; color: #6b7f86; }
.dropzone-sm { padding: 14px 12px; }
.dropzone-sm .dz-preview { max-height: 110px; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 0.93rem; vertical-align: top; }
.admin-table th { background: var(--teal-soft); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.btn-del { background: none; border: 1px solid #f3c1c1; color: #c0392b; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-size: 0.82rem; }
.btn-del:hover { background: #fdf0f0; }

.alert-err { background: #fdecec; color: #b03030; border: 1px solid #f3c1c1; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; font-size: 0.92rem; }
.alert-ok { background: #e8f8f0; color: #1e7d4f; border: 1px solid #bde5cf; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; font-size: 0.92rem; }

/* ---------- Responsive ---------- */
/* ---------- Panel istatistikleri ---------- */
.stats { margin-bottom: 34px; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 2px;
}
.stat-card strong { font-size: 1.7rem; font-family: Fraunces, Georgia, serif; color: var(--teal); }
.stat-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #6b7f86; }
.bars {
  display: flex; align-items: flex-end; gap: 3px; height: 110px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px;
}
.bar { flex: 1; background: var(--teal); opacity: 0.75; border-radius: 3px 3px 0 0; transition: opacity 0.15s; min-width: 3px; }
.bar:hover { opacity: 1; }
.stats-note { font-size: 0.8rem; margin-top: 8px; }
@media (max-width: 560px) {
  .stat-cards { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-text { order: 2; }
  .hero-photo { order: 1; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .split { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-side { position: static; }
  .nav { gap: 14px; }
  .nav a { font-size: 0.85rem; }
  .brand-text small { display: none; }
  .form-2col { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav { gap: 10px; }
  .nav a { font-size: 0.8rem; }
  .brand-text { display: none; }
  .photo-ring { width: 230px; height: 230px; }
  /* dar ekranda bulutlar sikisir: sacilimi kaldir, salinimi azalt, boyutlari kuçult */
  .bubble-cloud { gap: 27px 12px; }
  .bubble-cloud .bubble { margin-top: 0; --amp: -5px; }
  .bubble-cloud .b-in { padding: 11px 17px; font-size: 0.85rem; max-width: 270px; border-radius: 22px; }
}
