/* Rostalo Blog — landing markasıyla tutarlı paylaşılan stil.
   Tokenlar landing/index.html ile aynı (violet/blue glassmorphic). */
:root {
  --bg-base: #0B0D14;
  --bg-elev: #11141d;
  --accent-primary: #7C5CFF;
  --accent-secondary: #3B82F6;
  --text: #E8EAF2;
  --text-dim: #9AA0B4;
  --border: rgba(255,255,255,0.08);
  --glass: rgba(255,255,255,0.04);
  --radius: 16px;
  --maxw: 1120px;
  --readw: 760px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, .brand { font-family: 'Outfit', sans-serif; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 75% -10%, rgba(124,92,255,0.16), transparent 60%),
    radial-gradient(50vw 50vw at 10% 10%, rgba(59,130,246,0.12), transparent 55%);
}
main, header, footer { position: relative; z-index: 1; }

/* Nav — landing ile birebir */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(11,13,20,0.6);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: grid; place-items: center;
}
.logo svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 12px; font-weight: 600; font-size: 15px;
  transition: transform .15s, box-shadow .2s, background .2s; cursor: pointer; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white; box-shadow: 0 8px 24px rgba(124,92,255,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(124,92,255,0.42); }
.btn-ghost { background: var(--glass); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-text { background: transparent; border: none; color: var(--text-dim); padding: 9px 14px; }
.btn-text:hover { background: rgba(255,255,255,0.06); color: var(--text); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }
@media (max-width: 460px) { .nav-links a.btn-ghost { display: none; } }

/* Breadcrumb */
.breadcrumb { font-size: 14px; color: var(--text-dim); padding: 28px 0 0; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { opacity: .6; margin: 0 4px; }

/* ── Blog index ── */
.blog-hero { padding: 56px 0 24px; text-align: center; }
.blog-hero .kicker { color: var(--accent-primary); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.blog-hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; margin-top: 12px; line-height: 1.1; }
.blog-hero p { color: var(--text-dim); margin: 16px auto 0; max-width: 620px; font-size: 17px; }

.post-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); padding: 40px 0 72px; }
@media (max-width: 760px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column;
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform .2s, border-color .2s;
}
.post-card:hover { transform: translateY(-3px); border-color: rgba(124,92,255,0.35); }
.post-card .tag {
  align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  background: rgba(124,92,255,0.15); color: var(--accent-primary); border: 1px solid rgba(124,92,255,0.3);
  margin-bottom: 16px;
}
.post-card h2 { font-size: 21px; font-weight: 700; line-height: 1.25; }
.post-card p { color: var(--text-dim); margin-top: 12px; font-size: 15px; flex-grow: 1; }
.post-card .more { color: var(--accent-primary); font-weight: 600; font-size: 14px; margin-top: 18px; }

/* ── Makale (article) ── */
.article-wrap { max-width: var(--readw); margin: 0 auto; padding: 0 24px; }
.article-header { padding: 24px 0 8px; }
.article-header .tag {
  display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  background: rgba(124,92,255,0.15); color: var(--accent-primary); border: 1px solid rgba(124,92,255,0.3);
  margin-bottom: 18px;
}
.article-header h1 { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; line-height: 1.15; }
.article-meta { color: var(--text-dim); font-size: 14px; margin-top: 16px; display: flex; gap: 16px; flex-wrap: wrap; }

/* Prose typography */
.prose { padding: 8px 0 16px; }
.prose > h1:first-child { font-size: clamp(28px, 4.5vw, 42px); font-weight: 800; line-height: 1.15; margin: 0 0 8px; }
.prose h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin: 40px 0 14px; scroll-margin-top: 84px; }
.prose h3 { font-size: 20px; font-weight: 600; margin: 28px 0 10px; }
.prose p { margin: 14px 0; color: #d6d9e6; }
.prose a { color: var(--accent-primary); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-secondary); }
.prose ul, .prose ol { margin: 14px 0 14px 24px; color: #d6d9e6; }
.prose li { margin: 7px 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--accent-primary); padding: 4px 0 4px 20px; margin: 20px 0;
  color: var(--text-dim); font-style: italic;
}
.prose code {
  background: var(--glass); border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 6px; font-size: 0.9em; font-family: ui-monospace, monospace;
}
.prose pre { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; padding: 18px; overflow-x: auto; margin: 18px 0; }
.prose pre code { background: none; border: none; padding: 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 20px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.prose th { background: var(--glass); font-weight: 600; }

/* İçindekiler (TOC) */
.prose nav, .toc {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 26px; margin: 24px 0;
}
.prose nav h2, .toc h2 { font-size: 16px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.prose nav ul, .toc ul { margin: 0 0 0 18px; }
.prose nav a { text-decoration: none; }

/* Hukuki uyarı / callout kutusu */
.disclaimer-box, .prose blockquote.disclaimer {
  background: linear-gradient(135deg, rgba(124,92,255,0.08), rgba(59,130,246,0.05));
  border: 1px solid rgba(124,92,255,0.25); border-radius: var(--radius);
  padding: 18px 22px; margin: 26px 0; font-size: 14.5px; color: var(--text-dim); font-style: normal;
}
.disclaimer-box strong { color: var(--text); }

/* Makale sonu CTA */
.cta-box {
  border: 1px solid var(--border); border-radius: 20px; margin: 40px 0 24px;
  padding: 36px 28px; text-align: center;
  background: linear-gradient(135deg, rgba(124,92,255,0.12), rgba(59,130,246,0.08));
}
.cta-box h3 { font-size: 24px; font-weight: 700; }
.cta-box p { color: var(--text-dim); margin-top: 10px; }
.cta-box .cta { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-box .btn { padding: 13px 24px; font-size: 15px; }

/* İlgili yazılar */
.related { padding: 12px 0 40px; }
.related h2 { font-size: 20px; margin-bottom: 18px; }
.related-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .related-grid { grid-template-columns: 1fr; } }
.related-card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; transition: border-color .2s, transform .2s; }
.related-card:hover { border-color: rgba(124,92,255,0.35); transform: translateY(-2px); }
.related-card h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }

/* Footer — landing ile birebir */
footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--text-dim); font-size: 14px; margin-top: 40px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--text-dim); }
.foot a:hover { color: var(--text); }
.disclaimer { text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 20px; opacity: .8; }
