/* Duygu Dünyam — tasarım v2 */
:root {
  --bg: #0F0D14;
  --bg-glow-1: rgba(110, 63, 232, 0.22);
  --bg-glow-2: rgba(232, 92, 102, 0.16);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --surface-solid: #1A1622;
  --sel: rgba(255, 122, 107, 0.12);
  --line: rgba(255, 255, 255, 0.09);
  --line2: rgba(255, 255, 255, 0.16);
  --fg: #F6F2EE; --muted: #B9B1C2; --faint: #9A92A6;
  --accent: #FF7A6B; --accent-text: #FF9A8E;
  --violet: #A98BFF;
  --grad: linear-gradient(135deg, #6A3BE0 0%, #C9405A 100%);
  --grad-text: linear-gradient(100deg, #C6B2FF 0%, #FF9A8E 100%);
  --gold: #F2C14E; --gold-empty: rgba(242, 193, 78, 0.22);
  --ok-bg: rgba(64, 160, 110, 0.12); --ok-line: rgba(90, 190, 140, 0.35);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 20px;
  color-scheme: dark;
}
:root[data-tema="gunduz"] {
  --bg: #FAF6F1;
  --bg-glow-1: rgba(140, 100, 240, 0.14);
  --bg-glow-2: rgba(255, 140, 120, 0.16);
  --surface: rgba(255, 255, 255, 0.75);
  --surface-2: #FFFFFF;
  --surface-solid: #FFFFFF;
  --sel: #FCE9E5;
  --line: rgba(40, 20, 60, 0.09); --line2: rgba(40, 20, 60, 0.18);
  --fg: #1C1724; --muted: #5C5466; --faint: #6B6375;
  --accent: #C2392E; --accent-text: #A92F26;
  --violet: #5B32C8;
  --grad-text: linear-gradient(100deg, #5B32C8 0%, #C2392E 100%);
  --gold: #D99A1C; --gold-empty: rgba(160, 120, 40, 0.22);
  --ok-bg: #E7F4EC; --ok-line: #A5D1B6;
  --shadow: 0 16px 40px rgba(60, 30, 90, 0.12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(900px 600px at 8% -10%, var(--bg-glow-1), transparent 60%),
    radial-gradient(800px 600px at 100% 110%, var(--bg-glow-2), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
}
a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3, .baslik { font-family: "Space Grotesk", Inter, sans-serif; letter-spacing: -0.4px; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
h1:focus { outline: none; }
.gizli { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Üst bar */
.ust-kap { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--line); }
.ust { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 24px; max-width: 1180px; margin: 0 auto; }
.ust a.logo { display: block; line-height: 0; }
.ust img { height: 50px; width: auto; }
.logo-gunduz { display: none; }
:root[data-tema="gunduz"] .logo-gece { display: none; }
:root[data-tema="gunduz"] .logo-gunduz { display: inline; }
.ust-sag { display: flex; align-items: center; gap: 8px; }
.ust-link { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 10px 12px; border-radius: 999px; }
.ust-link:hover { color: var(--fg); background: var(--surface); }
.tema-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line2); cursor: pointer; font-size: 14px; font-weight: 600;
}
.tema-btn:hover { background: var(--surface-2); }
.tema-btn svg { width: 18px; height: 18px; }
.ikon-ay { display: none; }
:root[data-tema="gunduz"] .ikon-gunes { display: none; }
:root[data-tema="gunduz"] .ikon-ay { display: inline; }

main { max-width: 1180px; margin: 0 auto; padding: 28px 24px 0; }

/* Adımlar */
.adimlar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 6px; margin: 0 0 32px; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.adimlar li { display: flex; }
.adimlar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 10px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.adimlar .no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; background: var(--surface-2); border: 1px solid var(--line2); }
.adimlar li[aria-current="step"] a { background: var(--grad); color: #fff; box-shadow: 0 6px 20px rgba(150, 60, 160, 0.35); }
.adimlar li[aria-current="step"] .no { background: rgba(255,255,255,.22); border-color: transparent; }
.adimlar li.bitti a { color: var(--fg); }
.adimlar li.bitti .no { background: var(--accent); color: #fff; border-color: transparent; }

.duzen { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.ana { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.onizleme-alan { flex: 1 1 300px; max-width: 360px; margin: 0 auto; position: sticky; top: 92px; display: flex; flex-direction: column; gap: 10px; }

h1 { font-size: clamp(34px, 6vw, 56px); margin: 0; line-height: 1.04; font-weight: 700; }
.renkli { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ust-yazi { margin: -10px 0 0; color: var(--muted); font-size: 17px; max-width: 560px; }
h2 { font-size: 21px; margin: 0; }
.aciklama { color: var(--muted); margin: 0; }
.kart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Girdi */
.alan { display: flex; flex-direction: column; gap: 8px; }
.alan > label { font-weight: 600; }
.girdi, .metin {
  width: 100%; padding: 16px 18px; border-radius: 16px; background: var(--surface-solid);
  border: 1px solid var(--line2); font-size: 18px; transition: border-color .15s, box-shadow .15s;
}
.girdi::placeholder, .metin::placeholder { color: var(--faint); }
.girdi:focus, .metin:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 22%, transparent); }
.metin { resize: vertical; min-height: 130px; line-height: 1.5; }
.sayac { align-self: flex-end; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }

/* Çipler */
.cipler { display: flex; flex-wrap: wrap; gap: 8px; }
.cip {
  min-height: 40px; padding: 6px 15px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line2); cursor: pointer; font-size: 14px; font-weight: 500;
}
.cip:hover { border-color: var(--violet); }
.cip[aria-pressed="true"] { border-color: transparent; background: var(--grad); color: #fff; }

/* Söz kartları */
.sozler { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.soz {
  position: relative; display: flex; flex-direction: column; gap: 12px; text-align: left; padding: 18px 18px 20px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  cursor: pointer; font-size: 16px; line-height: 1.5; overflow: hidden;
}
.soz::after { content: "\201D"; position: absolute; right: 12px; bottom: -28px; font: 700 110px/1 Georgia, serif; color: var(--line2); pointer-events: none; }
.soz:hover { border-color: var(--line2); transform: translateY(-2px); box-shadow: var(--shadow); }
.soz[aria-pressed="true"] { border: 1px solid var(--accent); background: var(--sel); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.soz-ust { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.soz .etiket { font-size: 12px; color: var(--faint); letter-spacing: .2px; }
.soz[aria-pressed="true"] .etiket { color: var(--accent-text); font-weight: 600; }
.soz-metin { font-family: "Space Grotesk", Inter, sans-serif; font-size: 18px; font-weight: 500; line-height: 1.4; position: relative; z-index: 1; }

/* Yıldızlar */
.yildizlar { display: inline-flex; gap: 1px; font-size: 13px; line-height: 1; white-space: nowrap; }
.yildizlar i { font-style: normal; color: var(--gold); text-shadow: 0 0 6px rgba(242, 193, 78, .35); }
.yildizlar i.bos { color: var(--gold-empty); text-shadow: none; }
.yildiz-karo { position: absolute; left: 6px; bottom: 6px; padding: 3px 6px; border-radius: 999px; background: rgba(10, 8, 14, .62); backdrop-filter: blur(4px); font-size: 11px; }
.yildiz-karo i.bos { color: rgba(255, 255, 255, .28); }

/* Butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px; border-radius: 16px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; letter-spacing: .1px;
  box-shadow: 0 10px 28px rgba(150, 60, 160, 0.32);
}
.btn:hover:not([disabled]) { filter: brightness(1.07); }
.btn[disabled] { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn-ikincil { background: var(--surface); color: var(--fg); border: 1px solid var(--line2); box-shadow: none; }
.btn-ikincil:hover:not([disabled]) { background: var(--surface-2); filter: none; }
.btn-metin { background: transparent; color: var(--accent-text); padding: 0 6px; min-height: 44px; border: 0; cursor: pointer; font-weight: 600; }
.btn-satir { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn-satir .btn { flex: 1 1 220px; }

/* Görsel ızgarası */
.izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.karo {
  position: relative; aspect-ratio: 9 / 16; padding: 0; overflow: hidden; border-radius: 14px;
  border: 0; background: var(--surface); cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.22);
}
.karo::before { content: ""; position: absolute; inset: 0; border-radius: 14px; border: 3px solid transparent; z-index: 2; pointer-events: none; }
.karo img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; pointer-events: none; transition: transform .3s; }
.karo:hover img { transform: scale(1.04); }
.karo[aria-pressed="true"]::before { border-color: var(--accent); box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); }
.karo[aria-pressed="true"]::after { content: "✓"; position: absolute; right: 6px; top: 6px; z-index: 3; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; }
.izgara-ust { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.renkler { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; max-width: 500px; }
.renk { aspect-ratio: 1; min-height: 40px; border-radius: 999px; border: 2px solid var(--line2); cursor: pointer; }
.renk[aria-pressed="true"] { outline: 3px solid var(--accent); outline-offset: 3px; }
.kutu { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 600; padding: 4px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); width: fit-content; }
.kutu input { width: 20px; height: 20px; accent-color: var(--accent); }

/* Önizleme */
.onizleme { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: #2B2536; box-shadow: var(--shadow), 0 0 0 8px var(--surface), 0 0 0 9px var(--line); touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.onizleme.suruk { cursor: grabbing; }
.onizleme canvas, .onizleme img { width: 100%; height: 100%; display: block; pointer-events: none; }
.onizleme-etiket { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--faint); font-weight: 600; text-align: center; }
.not { font-size: 13px; color: var(--faint); }

/* Paylaş */
.platformlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.platformlar .btn { width: 100%; }
.btn-pin { background: #E60023; color: #fff; border-color: #E60023; }
.btn-pin:hover { background: #c4001d; }
.bilgi { padding: 12px 14px; border-radius: 14px; background: var(--ok-bg); border: 1px solid var(--ok-line); }
.bilgi:empty { display: none; }

/* Reklam */
.reklam { min-height: 100px; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--line2); border-radius: 16px; color: var(--faint); font-size: 12px; }
.reklam.aktif { border: 0; }

/* Alt bilgi */
footer.alt { border-top: 1px solid var(--line); margin-top: 72px; background: color-mix(in srgb, var(--bg) 70%, transparent); }
footer .ic { max-width: 1180px; margin: 0 auto; padding: 28px 24px 36px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer nav a { color: var(--fg); text-decoration: none; }
footer nav a:hover { color: var(--accent-text); }

/* Çerez bandı */
.cerez {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 720px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 16px;
  background: var(--surface-solid); border: 1px solid var(--line2); border-radius: 18px; box-shadow: var(--shadow); font-size: 14px;
}
.cerez p { margin: 0; flex: 1 1 280px; }
.cerez .btn { min-height: 44px; }

/* Uygulama olarak yükleme */
.yukle-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-text); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.yukle-kart {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 520px; margin: 0 auto;
  display: flex; gap: 12px; align-items: center; padding: 12px 12px 12px 14px;
  background: var(--surface-solid); border: 1px solid var(--line2); border-radius: 18px; box-shadow: var(--shadow); font-size: 14px;
}
.yukle-kart img { border-radius: 12px; flex: none; }
.yukle-kart p { margin: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.yukle-kart p span { color: var(--muted); font-size: 13px; }
.yukle-kart .btn { min-height: 44px; padding: 0 18px; }
.yukle-x { background: none; border: 0; color: var(--muted); font-size: 24px; line-height: 1; width: 44px; height: 44px; cursor: pointer; flex: none; }
.yukle-pencere { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.yukle-ic { background: var(--surface-solid); border: 1px solid var(--line2); border-radius: 22px; padding: 22px 22px 18px; max-width: 440px; width: 100%; box-shadow: var(--shadow); }
.yukle-ic h2 { margin: 0 0 10px; font-size: 20px; }
.yukle-ic ol { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 8px; }
.yukle-ic .btn { width: 100%; min-height: 48px; margin-top: 6px; }
@media (display-mode: standalone) { .yukle-btn, .yukle-kart { display: none !important; } }

/* İçerik sayfaları */
.yazi { max-width: 780px; }
.yazi h1 { margin-bottom: 14px; font-size: clamp(30px, 5vw, 44px); }
.yazi h2 { margin-top: 30px; margin-bottom: 10px; }
.liste-soz { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.liste-soz li { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; }
.liste-soz li span { font-family: "Space Grotesk", Inter, sans-serif; font-size: 17px; }
.liste-soz a { white-space: nowrap; font-size: 14px; font-weight: 600; }
.kategori-kartlar { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.kategori-kartlar a { display: block; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 700; font-family: "Space Grotesk", Inter, sans-serif; font-size: 17px; }
.kategori-kartlar a:hover { border-color: var(--violet); transform: translateY(-2px); box-shadow: var(--shadow); }
.kategori-kartlar a span { display: block; margin-top: 4px; font-weight: 400; font-size: 13px; color: var(--muted); font-family: Inter, sans-serif; }

[hidden] { display: none !important; }

@media (max-width: 720px) {
  main { padding: 18px 16px 0; }
  .ust { padding: 8px 14px; }
  .ust img { height: 42px; }
  .ust-link { display: none; }
  .adimlar { margin-bottom: 22px; }
  .adimlar a { font-size: 13px; padding: 8px 6px; gap: 6px; }
  .onizleme-alan { position: static; max-width: 290px; }
  #adim-paylas .onizleme-alan { order: -1; max-width: 220px; }
  .renkler { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .izgara { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sozler { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .soz, .karo, .btn, .cip, .kategori-kartlar a { transition: border-color .15s, background-color .15s, transform .15s, box-shadow .2s; }
  .btn:active { transform: scale(.98); }
  section:not([hidden]) .ana { animation: belir .35s ease both; }
  @keyframes belir { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
