:root {
  --bg: #090b10;
  --bg-2: #11141b;
  --text: #ece6dc;
  --muted: #a8a097;
  --line: rgba(236, 230, 220, 0.08);
  --accent: #b9836d;
  --accent-soft: rgba(185, 131, 109, 0.14);
  --danger: #cf6b6b;
  --success: #7eb48e;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  --radius-lg: 30px;
  --wrap: 1360px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(185, 131, 109, 0.13), transparent 24%),
    radial-gradient(circle at bottom right, rgba(87, 97, 130, 0.12), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, #090b10 100%);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.45), transparent 86%);
}

a { color: inherit; text-decoration: none; }

.page-shell {
  width: min(calc(100% - 32px), var(--wrap));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.page-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 760px) 1fr;
  gap: 26px;
  align-items: start;
}

.left-rail {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 20px;
}

.rail-card,
.post-card,
.admin-card,
.auth-card {
  background: linear-gradient(180deg, rgba(20,22,30,.95) 0%, rgba(13,15,22,.94) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px;
}

.identity-card {
  position: relative;
  overflow: hidden;
}

.identity-card::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -44px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(185, 131, 109, 0.12);
  filter: blur(12px);
}
.identity-avatar {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  overflow: hidden; /* 🔥 KRİTİK */
  position: relative; /* 🔥 önemli */
  background: linear-gradient(180deg, rgba(185,131,109,.25), rgba(255,255,255,.05));
  border: 1px solid rgba(236,230,220,.14);
  box-shadow: 0 14px 38px rgba(0,0,0,.35);
}

.identity-avatar img {
  position: absolute; /* 🔥 bunu yapıyoruz */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.site-title,
.intro-title,
.post-title,
.admin-title,
.auth-title {
  margin: 16px 0 12px;
  line-height: 1;
  letter-spacing: -.05em;
  font-weight: 400;
}

.site-title { font-size: clamp(2rem, 3vw, 2.8rem); }
.intro-title { font-size: clamp(2rem, 4vw, 3.2rem); }
.post-title { font-size: clamp(1.8rem, 3vw, 2.5rem); }

.site-slogan,
.identity-note,
.intro-copy,
.post-content,
.post-excerpt,
.meta,
.flash,
label,
input,
textarea,
select,
td,
th,
.admin-topbar,
.admin-subtle {
  color: var(--muted);
}

.site-slogan,
.identity-note,
.intro-copy,
.post-content,
.post-excerpt {
  line-height: 0.9;
}

.identity-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(236,230,220,.08);
}

.coming-banner {
  min-height: 279px;
  display: flex;
  align-items: center;
  justify-content: center;

  writing-mode: vertical-rl;
  text-orientation: mixed;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--accent);

  position: relative; /* 🔥 EKLENDİ */
  overflow: hidden;    /* 🔥 EKLENDİ */

  background:
    linear-gradient(180deg, rgba(185, 131, 109, 0.12), rgba(185, 131, 109, 0.02)),
    url('https://i.hizliresim.com/kc7l637.png'),  /* 🔥 BANNER RESİM */
    rgba(13, 15, 21, 0.94);

  background-size: cover;
  background-position: center;
}
.coming-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.coming-banner span {
  position: relative;
  z-index: 1;
  padding: 16px 0;
  font-size: .9rem;
}

.coming-banner span::before,
.coming-banner span::after {
  content: "";
  display: block;
  width: 1px;
  height: 54px;
  margin: 18px auto;
  background: rgba(185, 131, 109, .28);
}

.main-column {
  display: grid;
  gap: 18px;
}

.intro-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #dcc0b5;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .82rem;
}

.posts-grid { display: grid; gap: 18px; }

.post-meta,
.admin-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.post-meta {
  margin-bottom: 18px;
  font-size: .95rem;
}

.post-content {
  font-size: 1.08rem;
  color: var(--text);
  white-space: pre-wrap;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(185,131,109,.2);
  background: var(--accent-soft);
  color: #f0ddd6;
  cursor: pointer;
  font: inherit;
}

.button-danger {
  border-color: rgba(207, 107, 107, .3);
  background: rgba(207, 107, 107, .12);
  color: #f3cfcf;
}

.button-ghost {
  background: rgba(255,255,255,.04);
}

.flash {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.flash-success { color: var(--success); }
.flash-error { color: var(--danger); }

.form-grid {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 8px;
  font-size: .96rem;
}

input[type="email"],
input[type="password"],
input[type="text"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(236,230,220,.12);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 240px;
  resize: vertical;
}

.error-text { color: var(--danger); font-size: .9rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 8px; border-bottom: 1px solid rgba(236,230,220,.08); text-align: left; }
.auth-shell { width: min(calc(100% - 32px), 560px); margin: 48px auto; }
.empty-state { text-align: center; padding: 48px 24px; color: var(--muted); }
.footer-note { padding: 18px 24px; border-radius: 20px; border: 1px solid var(--line); color: var(--muted); background: rgba(12,13,18,.7); text-align: center; }

@media (max-width: 1180px) {
  .page-grid { grid-template-columns: 300px minmax(0, 1fr); }
  .layout-spacer { display: none; }
}

@media (max-width: 860px) {
  .page-shell { width: min(calc(100% - 20px), var(--wrap)); padding-top: 18px; }
  .page-grid { grid-template-columns: 1fr; }
  .left-rail { position: static; }
  .coming-banner {
    min-height: auto;
    writing-mode: horizontal-tb;
    transform: none;
    letter-spacing: .12em;
    padding: 18px;
  }
  .coming-banner span {
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: center;
    text-align: center;
  }
  .coming-banner span::before,
  .coming-banner span::after {
    width: 38px;
    height: 1px;
    margin: 0;
  }
}
