/* ────────────────────────────────────────────────
   Derin Anlam — Stil Dosyası
   Taslak: ornekSablon.html (priz sayfası)
   ──────────────────────────────────────────────── */


/* ── 1. Değişkenler ──────────────────────────── */
:root {
  --bg:    #0a0e0f;
  --ink:   #e8e4d8;
  --dim:   #6b7a78;
  --line:  #1c2624;
  --live:  #e4b84c;   /* faz */
  --earth: #4ca88c;   /* toprak */
  --spark: #f0f0e6;
  --mono:  ui-monospace, "SF Mono", Menlo, monospace;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}


/* ── 2. Reset ────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}


/* ── 3. Temel ────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.55;
  padding: clamp(20px, 5vw, 60px) clamp(18px, 5vw, 40px);
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(
    circle at 15% -10%,
    rgba(228, 184, 76, .05),
    transparent 40%
  );
}
body.page-admin {
  max-width: 980px;
  font-family: var(--mono);
  /* Açık tema — admin paneli */
  --bg:    #ffffff;
  --ink:   #1a1a1a;
  --dim:   #777777;
  --line:  #e2e2e2;
  --live:  #c49a28;
  --earth: #2e8a6e;
  background: #ffffff;
  background-image: none;
  color: #1a1a1a;
}
main {
  flex: 1;
}
a {
  color: inherit;
}


/* ── 4. Masthead ─────────────────────────────── */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 38px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--dim);
  font-family: var(--mono);
}
.masthead-name {
  text-decoration: none;
  color: var(--dim);
  transition: color .2s;
}
.masthead-name:hover {
  color: var(--live);
}
.masthead-live {
  color: var(--live);
}
.masthead-live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  margin-right: 7px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--live);
  animation: pulse 2.4s ease-in-out infinite;
}


/* ── 5. Ana sayfa — arama ────────────────────── */
.hero {
  padding-top: 8vh;
}
.search-form {
  display: flex;
  width: 100%;
  max-width: 480px;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color .2s;
}
.search-form:focus-within {
  border-color: var(--live);
}
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(16px, 4vw, 20px);
  padding: 14px 16px;
  caret-color: var(--live);
}
.search-input::placeholder {
  color: var(--dim);
}
.search-btn {
  background: transparent;
  border: none;
  border-left: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 0 18px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.search-btn:hover,
.search-form:focus-within .search-btn {
  color: var(--live);
  border-left-color: var(--live);
}


/* ── 6. Trend kelimeler (etiket yok) ─────────── */
.trending {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.trending-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
  padding-bottom: 1px;
  transition: all .2s;
}
.trending-link:hover {
  color: var(--live);
  border-color: var(--live);
}


/* ── 7. Headword ─────────────────────────────── */
.headword {
  font-size: clamp(52px, 14vw, 104px);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: .9;
  margin-bottom: 6px;
}
.pronoun {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: .1em;
  margin-bottom: 44px;
}
.pronoun b {
  color: var(--earth);
  font-weight: 400;
}


/* ── 8. Anlam maddesi ────────────────────────── */
.entry {
  position: relative;
  padding: 22px 0 26px 54px;
  border-top: 1px solid var(--line);
}
.entry:last-of-type {
  border-bottom: 1px solid var(--line);
}


/* ── 9. Terminal (oy butonu) ─────────────────── */
.terminal {
  position: absolute;
  left: 0;
  top: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
  font-family: var(--mono);
}
.terminal::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 34px;
  width: 1px;
  height: 0;
  background: var(--line);
  transition: height .3s ease;
}
.entry:not(:last-of-type) .terminal::after {
  height: calc(100% + 2px);
}
.terminal:hover {
  border-color: var(--live);
  color: var(--live);
  box-shadow: 0 0 12px rgba(228, 184, 76, .25);
}
.terminal.charged {
  border-color: var(--live);
  background: var(--live);
  color: #0a0e0f;
  box-shadow: 0 0 16px rgba(228, 184, 76, .5);
}


/* ── 10. Anlam içeriği ───────────────────────── */
.entry-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.entry-title {
  font-size: clamp(21px, 4.5vw, 27px);
  font-weight: 400;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  color: var(--spark);
}
.entry-body {
  font-size: clamp(15px, 3.6vw, 17px);
  color: var(--ink);
  opacity: .9;
}
.entry-body .q {
  color: var(--live);
  font-style: italic;
}


/* ── 11. bk. satırı ──────────────────────────── */
.seealso {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  letter-spacing: .04em;
}
.seealso-lbl {
  color: var(--earth);
  margin-right: 6px;
}
.seealso a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px dotted var(--dim);
  padding-bottom: 1px;
  transition: all .2s;
}
.seealso a:hover {
  color: var(--live);
  border-color: var(--live);
}
.seealso-wire {
  color: var(--line);
  margin: 0 8px;
}
.seealso-pending {
  color: var(--dim);
  border-bottom: 1px dashed var(--line);
  cursor: default;
}


/* ── 12. Katkı alanı ─────────────────────────── */
.contribute {
  margin-top: 16px;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 4px;
}
.contribute-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--earth);
  margin-bottom: 12px;
}
.contribute-desc {
  font-size: 14px;
  color: var(--dim);
  margin-bottom: 16px;
}
.form-field {
  margin-bottom: 12px;
}
.form-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.field-input,
.field-textarea {
  width: 100%;
  background: rgba(255, 255, 255, .015);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.field-input::placeholder,
.field-textarea::placeholder {
  color: var(--dim);
  font-style: italic;
}
.field-input:focus,
.field-textarea:focus {
  border-color: var(--live);
}
.field-textarea {
  min-height: 90px;
}
.form-submit {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 9px 18px;
  cursor: pointer;
  background: transparent;
  transition: all .2s;
}
.form-submit:hover {
  color: var(--live);
  border-color: var(--live);
}
.form-submit:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
.form-msg {
  display: none;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .05em;
}
.form-msg.visible { display: block; }
.form-msg.ok  { color: var(--earth); }
.form-msg.err { color: #c0392b; }


/* ── 13. Bulunamadı sayfası ──────────────────── */
.not-found {
  padding-top: 6vh;
}
.not-found-word {
  font-size: clamp(38px, 10vw, 72px);
  font-weight: 400;
  color: var(--dim);
  letter-spacing: -.01em;
  line-height: 1;
  margin-bottom: 6px;
}
.not-found-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--dim);
  margin-bottom: 40px;
  display: block;
}
.not-found-invite {
  font-size: clamp(15px, 3.5vw, 18px);
  color: var(--ink);
  opacity: .85;
  margin-bottom: 28px;
  max-width: 500px;
}
.not-found-invite b {
  color: var(--live);
  font-weight: 400;
}


/* ── 14. Footer ──────────────────────────────── */
.site-footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-nav a {
  color: var(--dim);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav a:hover {
  color: var(--live);
}


/* ── 15. Dipnot ──────────────────────────────── */
.footnote {
  margin-top: 34px;
  font-size: 11px;
  color: var(--dim);
  font-family: var(--mono);
  letter-spacing: .05em;
  opacity: .6;
}


/* ── 16. Statik sayfalar ─────────────────────── */
.static-page {
  max-width: 560px;
  padding-top: 4vh;
}
.static-page h1 {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 400;
  letter-spacing: -.01em;
  margin-bottom: 28px;
}
.static-page h2 {
  font-size: clamp(17px, 4vw, 21px);
  font-weight: 400;
  color: var(--spark);
  margin: 32px 0 12px;
}
.static-page p {
  font-size: clamp(15px, 3.5vw, 17px);
  opacity: .85;
  margin-bottom: 14px;
}
.static-page a {
  color: var(--earth);
  text-underline-offset: 3px;
}

/* Dizin listesi */
.dizin-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 32px;
}
.dizin-list li {
  margin-bottom: 9px;
  break-inside: avoid;
}
.dizin-list a {
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(15px, 3.5vw, 17px);
  opacity: .85;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.dizin-list a:hover {
  color: var(--earth);
  border-color: var(--earth);
  opacity: 1;
}
@media (max-width: 480px) {
  .dizin-list { columns: 1; }
}


/* ── 17. Admin ───────────────────────────────── */
.admin-login {
  max-width: 340px;
  margin-top: 60px;
}
.admin-login h1 {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 24px;
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 32px;
}
.admin-nav a {
  color: var(--dim);
  text-decoration: none;
  transition: color .2s;
}
.admin-nav a:hover,
.admin-nav a.active {
  color: var(--live);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 32px;
}
.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-table th {
  font-weight: 400;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}
.admin-table tr:hover td {
  background: #f7f7f7;
}
.admin-btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
  margin-right: 4px;
}
.admin-btn:hover {
  color: var(--live);
  border-color: var(--live);
}
.admin-btn.danger:hover {
  color: #c0392b;
  border-color: #c0392b;
}
.admin-count {
  color: var(--earth);
  font-variant-numeric: tabular-nums;
}
.admin-h1 {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 24px;
}
.admin-section {
  margin-bottom: 40px;
}


/* ── 18. Flash mesajları ─────────────────────── */
.flash {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  padding: 11px 16px;
  border-radius: 3px;
  margin-bottom: 20px;
  border: 1px solid;
}
.flash-ok {
  color: var(--earth);
  border-color: rgba(76, 168, 140, .4);
  background: rgba(76, 168, 140, .06);
}
.flash-err {
  color: #c0392b;
  border-color: rgba(192, 57, 43, .4);
  background: rgba(192, 57, 43, .06);
}


/* ── 19. Animasyonlar ────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}


/* ── 20. Erişilebilirlik ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .masthead-live::before {
    animation: none;
    opacity: 1;
  }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

:focus-visible {
  outline: 2px solid var(--live);
  outline-offset: 3px;
}


/* ── 21. Mobil ───────────────────────────────── */
@media (max-width: 480px) {
  .pronoun {
    margin-bottom: 28px;
  }
  .entry {
    padding-left: 44px;
  }
  .terminal {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }
  .contribute {
    padding: 16px;
  }
  .footer-nav {
    gap: 8px 14px;
  }
  .search-form {
    max-width: 100%;
  }
}
