/* ---------- Yıllık Planlama ---------- */
.planner { flex: 1; min-height: 0; display: flex; background: var(--bg); }

/* sol: mevcut dönemin kendisi */
.pl-side { width: 380px; flex: none; background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; }
.ps { padding: 16px 20px 28px; border-top: 6px solid var(--c); min-height: 100%; }
.ps-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.ps-title-row { display: flex; align-items: center; gap: 10px; }
.ps-title { flex: 1; margin: 2px 0 4px; font-family: 'Bebas Neue', sans-serif; font-style: italic; font-weight: 400; font-size: 46px; line-height: 1; letter-spacing: .01em; }
.ps-lbl {
  display: flex; align-items: center; gap: 8px; margin: 18px 0 6px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted);
}
.ps-hint { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted-2); }
.ps-theme {
  width: 100%; font-size: 20px; font-weight: 800; border: 1px solid var(--line-2); border-radius: 9px; padding: 9px 11px;
  color: color-mix(in srgb, var(--c) 60%, var(--ink)); background: color-mix(in srgb, var(--c) 7%, var(--panel));
}
.ps-theme:focus, .ps-area:focus { outline: 2px solid rgba(0,163,154,.35); outline-offset: -1px; border-color: var(--accent); }
.ps-theme::placeholder { color: var(--muted-2); font-weight: 600; font-size: 16px; }
.ps-area { width: 100%; min-height: 56px; border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 10px; resize: none; line-height: 1.45; font-size: 13px; }
.ps .pc-items { border: 1px solid var(--line); border-radius: 9px; padding: 4px 10px; }
.ps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ps-grid .field { width: 100%; min-width: 0; }
.stars { display: flex; gap: 2px; margin-bottom: 6px; }
.stars button { font-size: 22px; line-height: 1; color: var(--line-2); background: none; border: none; cursor: pointer; padding: 0 1px; }
.stars button.on { color: #f2a51a; }
.stars button:hover { transform: scale(1.12); }

/* sağ: alt dönem kartları */
.pl-main { flex: 1; min-width: 0; overflow: auto; padding: 14px 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.pl-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.crumb {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 8px; border: none;
  background: transparent; cursor: pointer; font-weight: 700; font-size: 14px; color: var(--muted);
}
.crumb:hover { background: var(--hover); color: var(--text); }
.crumb.active { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); cursor: default; }
.crumb .ct {
  font-weight: 600; font-size: 12px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 2px 8px; border-radius: 10px; color: color-mix(in srgb, var(--c) 70%, var(--ink)); background: color-mix(in srgb, var(--c) 15%, var(--panel));
}
.crumb-sep { color: var(--muted-2); display: flex; }
.pl-nav { display: flex; gap: 4px; }
.pl-childtitle { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--muted); margin-top: 2px; }
.pl-grid { display: grid; gap: 12px; }
.pl-grid.lvl-life { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.pl-grid.lvl-year { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.pl-grid.lvl-month { grid-template-columns: repeat(var(--n), minmax(220px, 1fr)); flex: 1; }
.lvl-month .pcard { min-height: 380px; }

.pcard {
  --c: #c9ced6; background: var(--panel); border: 1px solid var(--line); border-top: 5px solid var(--c); border-radius: 12px;
  padding: 9px 12px 12px; display: flex; flex-direction: column; gap: 4px; min-height: 200px; transition: box-shadow .12s;
}
.pcard:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.pcard.now { box-shadow: 0 0 0 2px var(--accent); }
.pc-head { display: flex; align-items: center; gap: 8px; min-height: 28px; }
.pc-label { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.pc-label b { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 23px; line-height: 1; letter-spacing: .02em; white-space: nowrap; }
.pc-label span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.pc-now { font-size: 10.5px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 10px; padding: 2px 7px; white-space: nowrap; }
.pc-prog { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
.pc-prog.full { color: var(--ok); }
.pc-open { padding: 0 5px 0 9px; gap: 2px; opacity: .75; }
.pcard:hover .pc-open { opacity: 1; }
.pc-color { width: 16px; height: 16px; border-radius: 50%; border: none; cursor: pointer; flex: none; padding: 0; }
.pc-color.big { width: 26px; height: 26px; }
.pc-color.none { background: repeating-conic-gradient(var(--line-2) 0 25%, var(--panel) 0 50%) 50% / 8px 8px !important; border: 1px solid var(--line-2); }
.pc-theme {
  width: 100%; border: none; border-bottom: 1px dashed transparent; background: transparent; padding: 3px 0 4px;
  font-size: 16px; font-weight: 800; color: color-mix(in srgb, var(--c) 60%, var(--ink));
}
.pc-theme:hover { border-bottom-color: var(--line-2); }
.pc-theme:focus { outline: none; border-bottom: 1px solid var(--accent); }
.pc-theme::placeholder { color: var(--muted-2); font-weight: 600; font-size: 14px; }

.pc-items { display: flex; flex-direction: column; }
.it { display: flex; align-items: center; gap: 7px; min-height: 25px; }
.it input[type=checkbox] { accent-color: var(--accent); margin: 0; flex: none; cursor: pointer; }
.it-text, .it-add { flex: 1; min-width: 0; border: none; background: transparent; padding: 3px 0; font-size: 13px; }
.it-text:focus, .it-add:focus { outline: none; box-shadow: 0 1px 0 var(--accent); }
.it.done .it-text { text-decoration: line-through; color: var(--muted-2); }
.it-add::placeholder { color: var(--muted-2); }
.it-plus { width: 13px; display: flex; justify-content: center; color: var(--muted-2); flex: none; }
.it-del { opacity: 0; border: none; background: none; cursor: pointer; color: var(--muted); padding: 3px; border-radius: 4px; display: flex; }
.it:hover .it-del { opacity: 1; }
.it-del:hover { background: var(--hover); color: var(--danger); }
.pcard.nocolor .pc-theme, .ps.nocolor .ps-theme { color: var(--text); }
.ps.nocolor .ps-theme { background: var(--panel); }
.pc-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pc-note {
  margin-top: auto; border: none; resize: none; background: var(--panel-2); border-radius: 7px; padding: 6px 8px;
  font-size: 12.5px; line-height: 1.4; min-height: 32px;
}
.pc-note:focus { outline: 1px solid var(--accent); background: var(--panel); }

.swatch-pop { display: grid; grid-template-columns: repeat(6, 24px); gap: 7px; padding: 9px; min-width: 0; }
.popover.swatch-pop button.sw { width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 2px solid transparent; display: block; }
.popover.swatch-pop button.sw.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--strong); }
.popover.swatch-pop button.sw.none { background: repeating-conic-gradient(var(--line-2) 0 25%, var(--panel) 0 50%) 50% / 8px 8px; border: 1px solid var(--line-2); }

/* ---------- Hayat vizyonu ---------- */
.planner.no-side .pl-main > * { max-width: 1500px; }
.vision-hero {
  --c: var(--accent); position: relative; border-radius: 16px; padding: 18px 22px 16px; margin: 2px 0 6px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, var(--panel)), var(--panel) 70%);
  border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line));
}
.vh-head { display: flex; align-items: center; gap: 8px; }
.vh-kicker {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--c) 70%, var(--ink));
}
.vision-hero.nocolor .vh-kicker { color: var(--accent-2); }
:root[data-theme="dark"] .vision-hero.nocolor .vh-kicker { color: var(--accent); }
.vh-quote { display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; }
.vh-mark { font-family: Georgia, 'Times New Roman', serif; font-size: 56px; line-height: .9; color: color-mix(in srgb, var(--c) 55%, transparent); user-select: none; }
.vh-text {
  flex: 1; min-width: 0; border: none; background: transparent; resize: none; overflow: hidden; padding: 6px 0 2px;
  font-size: 26px; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; color: var(--text);
  border-bottom: 1px dashed transparent;
}
.vh-text:hover { border-bottom-color: var(--line-2); }
.vh-text:focus { outline: none; border-bottom-color: var(--accent); }
.vh-text::placeholder { color: var(--muted-2); font-weight: 600; font-size: 21px; }
.vh-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 2px 34px; }
.vh-count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vh-count.near { color: var(--warn); font-weight: 700; }
.vh-goals { margin: 10px 0 0 34px; border-top: 1px solid color-mix(in srgb, var(--c) 25%, var(--line)); padding-top: 8px; }
.vh-goals summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--text-2); list-style: none; }
.vh-goals summary::-webkit-details-marker { display: none; }
.vh-goals summary::before { content: '▸'; color: var(--muted); transition: transform .15s; }
.vh-goals[open] summary::before { transform: rotate(90deg); }
.vh-goals .pc-items { margin-top: 6px; columns: 2; column-gap: 28px; display: block; }
.vh-goals .it { break-inside: avoid; }
.vh-birth { margin: 10px 0 0 34px; font-size: 12.5px; }

/* yıl/ay sayfalarında vizyon şeridi */
.vision-strip, .wc-vision {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-width: 0; border: none; cursor: pointer; text-align: left;
  background: var(--accent-soft); color: var(--accent-2); border-radius: 18px; padding: 6px 12px; font-size: 13px; font-weight: 600; font-style: italic;
}
:root[data-theme="dark"] .vision-strip, :root[data-theme="dark"] .wc-vision { color: var(--accent); }
.vision-strip span, .wc-vision span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vision-strip { align-self: flex-start; }
.vision-strip:hover, .wc-vision:hover { filter: brightness(.97); }
.wc-vision { height: 26px; padding: 0 10px; font-size: 12px; max-width: 360px; }

/* Ayarlar → Profil vizyon alanı */
.st-vision-wrap { display: flex; flex-direction: column; gap: 4px; width: 320px; max-width: 100%; }
.st-vision-wrap .row { justify-content: space-between !important; }
.st-vision { height: auto !important; min-height: 56px; width: 100%; padding: 8px 10px; resize: vertical; }

@media (max-width: 900px) {
  .vision-hero { order: 2; margin: 0 10px 4px; padding: 14px 14px 12px; }
  .vision-strip { order: 0; margin: 10px 10px 0; }
  .vh-text { font-size: 20px; }
  .vh-text::placeholder { font-size: 17px; }
  .vh-mark { font-size: 42px; }
  .vh-foot, .vh-goals, .vh-birth { margin-left: 0; }
  .vh-foot { flex-direction: column-reverse; align-items: flex-start; gap: 2px; }
  .vh-goals .pc-items { columns: 1; }
  .wc-vision { max-width: 100%; flex-basis: 100%; }
  .st-vision-wrap { width: 100%; }
}

/* hayat planında ilk/son yılı kaldırma düğmesi */
.pc-del {
  width: 26px; height: 26px; border: none; border-radius: 6px; background: none; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex: none; opacity: 0; transition: opacity .12s;
}
.pcard:hover .pc-del, .pc-del:focus-visible { opacity: 1; }
.pc-del:hover { background: var(--danger-soft); color: var(--danger); }
@media (hover: none) { .pc-del { opacity: .7; } }
/* hicri takvim satırları */
.pc-hijri, .ps-hijri { display: flex; align-items: center; gap: 5px; color: #2e8b57; font-size: 11.5px; font-weight: 600; min-width: 0; }
.pc-hijri { margin: -2px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-hijri { font-size: 13px; margin: -2px 0 8px; }
:root[data-theme="dark"] .pc-hijri, :root[data-theme="dark"] .ps-hijri { color: #5fc792; }
