/* Codefein Link Merkezi — bordo (#4a1327) + beyaz (#f5f7fb) + koyu (#05070d) */

:root {
  --bordo: #4a1327;
  --bordo-2: #7a2040;
  --bordo-soft: rgba(74, 19, 39, 0.5);
  --ink: #05070d;
  --white: #f5f7fb;
  --muted: #a8b3c7;
  --muted-2: #7f8ba3;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --blue: #2f74ff;
  --shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.85);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.l-body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--white);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Bordo üst şerit + üst glow */
body.l-body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bordo), var(--bordo-2), var(--bordo));
  z-index: 5;
}

.l-glow {
  position: fixed;
  top: -220px;
  left: 50%;
  width: 720px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(74, 19, 39, 0.55), rgba(74, 19, 39, 0) 68%);
  pointer-events: none;
  z-index: 0;
}

.l-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 20px 48px;
}

/* ---------------- üst bölüm ---------------- */

.l-top { text-align: center; }

.l-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(74, 19, 39, 0.95), rgba(20, 8, 14, 0.9));
  border: 1px solid rgba(122, 32, 64, 0.65);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.l-logo:hover { transform: translateY(-2px); border-color: var(--bordo-2); }
.l-logo img { width: 44px; height: 44px; object-fit: contain; }

.l-brand {
  margin: 20px 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
}

.l-tagline {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.l-bio {
  margin: 16px auto 0;
  max-width: 46ch;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------------- alt sayfa başlığı ---------------- */

.l-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-decoration: none;
  transition: color 0.16s ease;
}
.l-back:hover { color: var(--white); }

.l-head { margin-bottom: 20px; text-align: center; }
.l-title { margin: 0; font-size: 20px; font-weight: 700; color: var(--white); }
.l-sub {
  margin: 8px 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bordo-2);
  filter: brightness(1.7);
}
.l-intro { margin: 12px auto 0; max-width: 46ch; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------------- bağlantı listesi ---------------- */

.l-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.l-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.l-btn:hover,
.l-btn:focus-visible {
  transform: translateY(-2px);
  background: var(--bordo-soft);
  border-color: rgba(122, 32, 64, 0.7);
  box-shadow: 0 20px 38px -22px rgba(0, 0, 0, 0.9);
}
.l-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.l-btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.l-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(160deg, #5a1730, #3a0f1e);
  border: 1px solid rgba(122, 32, 64, 0.5);
  color: var(--white);
}
.l-ico svg { width: 21px; height: 21px; }

.l-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.l-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}
.l-badge {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(47, 116, 255, 0.16);
  color: #9db9ff;
  border: 1px solid rgba(47, 116, 255, 0.3);
}
.l-badge--file {
  background: rgba(214, 68, 104, 0.16);
  color: #eab4c2;
  border-color: rgba(214, 68, 104, 0.32);
}
.l-desc {
  font-size: 12.5px;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.l-arrow {
  flex: 0 0 auto;
  color: rgba(245, 247, 251, 0.3);
  transition: color 0.16s ease, transform 0.16s ease;
}
.l-arrow svg { width: 17px; height: 17px; display: block; }
.l-btn:hover .l-arrow { color: var(--white); transform: translate(2px, -2px); }

.l-empty {
  padding: 22px;
  border: 1px dashed var(--line-2);
  border-radius: 16px;
  text-align: center;
  color: var(--muted-2);
  font-size: 13.5px;
}

/* ---------------- sosyal ---------------- */

.l-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}
.l-soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.l-soc svg { width: 18px; height: 18px; }
.l-soc:hover,
.l-soc:focus-visible {
  color: var(--white);
  border-color: rgba(122, 32, 64, 0.8);
  background: var(--bordo-soft);
  transform: translateY(-2px);
}
.l-soc:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* ---------------- alt bilgi ---------------- */

.l-foot {
  margin: 34px 0 0;
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: rgba(245, 247, 251, 0.36);
}
.l-foot a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.16s ease, border-color 0.16s ease; }
.l-foot a:hover { color: var(--white); border-color: var(--bordo-2); }
.l-copy { margin: 10px 0 0; text-align: center; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 10px; letter-spacing: 0.08em; color: rgba(245, 247, 251, 0.24); }

/* ---------------- responsive ---------------- */

@media (max-width: 420px) {
  .l-wrap { padding: 44px 16px 40px; }
  .l-brand { font-size: 22px; }
  .l-btn { min-height: 64px; padding: 12px 14px; }
  .l-desc { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .l-btn, .l-logo, .l-soc, .l-arrow { transition: none; }
  .l-btn:hover, .l-logo:hover, .l-soc:hover { transform: none; }
}
