/* =========================================================================
   Meya Studio — ana sayfa (bağlantı sayfası), protokoller ve yazı sayfaları
   Renkler panelden gelir: --lp-bg (arka plan), --lp-btn (buton),
   --lp-ink / --lp-btn-ink (zemine göre otomatik yazı rengi).
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.lp-body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--lp-bg); color: var(--lp-ink);
  font-family: "Courier Prime", "Courier New", Courier, monospace;
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.ic { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lp-wrap { width: min(560px, 100% - 32px); margin: 0 auto; padding: 64px 0 56px; }

/* Paylaş */
.lp-share {
  position: fixed; top: 14px; right: 14px; z-index: 10; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer; color: #fff;
  background: color-mix(in srgb, var(--lp-ink) 32%, transparent); backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12); transition: transform .15s;
}
.lp-share:hover { transform: scale(1.06); }

/* Üst kısım: yuvarlak görsel + logo */
.lp-head { text-align: center; }
.lp-avatar {
  width: 156px; height: 156px; margin: 0 auto; border-radius: 50%; overflow: hidden; background: #fff;
  border: 4px solid rgba(255, 255, 255, .92); box-shadow: 0 6px 22px rgba(60, 30, 40, .14);
}
.lp-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-avatar.is-logo img { object-fit: contain; padding: 26px 18px; }
.lp-wordmark { display: block; height: 66px; width: auto; margin: 18px auto 0; }
.lp-title { margin: 16px 0 0; font-size: 30px; font-weight: 400; letter-spacing: .03em; line-height: 1.2; }
.lp-sub { margin: 8px auto 0; max-width: 40ch; font-size: 15.5px; opacity: .82; }

/* Butonlar */
.lp-links { display: grid; gap: 16px; margin-top: 30px; }
.lp-btn, .lp-back {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 14px 20px;
  background: var(--lp-btn); color: var(--lp-btn-ink); border-radius: 6px; text-align: center;
  font-size: 17px; letter-spacing: .02em; line-height: 1.3;
  box-shadow: 0 1px 2px rgba(60, 30, 40, .08), 0 4px 14px rgba(60, 30, 40, .08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.lp-btn:hover, .lp-back:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(60, 30, 40, .1), 0 10px 22px rgba(60, 30, 40, .12); }
.lp-btn:active, .lp-back:active { transform: translateY(0); }
.lp-btn:focus-visible, .lp-back:focus-visible, .lp-share:focus-visible, .lp-img:focus-visible {
  outline: 3px solid var(--lp-ink); outline-offset: 3px;
}
.lp-empty { text-align: center; margin-top: 28px; opacity: .8; }

/* Alt sayfalar */
.lp-back { border-radius: 999px; min-height: 50px; font-size: 16px; }
.lp-page-head { text-align: center; margin: 34px 0 22px; }
.lp-page-head img { display: block; height: 52px; width: auto; margin: 0 auto 12px; }
.lp-page-head h1 { margin: 0; font-size: 28px; font-weight: 400; letter-spacing: .03em; }

.lp-gallery { display: grid; gap: 18px; }
.lp-card { margin: 0; background: var(--lp-btn); color: var(--lp-btn-ink); border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(60, 30, 40, .08), 0 6px 18px rgba(60, 30, 40, .08); }
.lp-img { display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; }
.lp-img img { display: block; width: 100%; height: auto; }
.lp-card figcaption { padding: 14px 16px 16px; }
.lp-card figcaption b { display: block; font-size: 18px; font-weight: 700; letter-spacing: .01em; }
.lp-card figcaption p, .lp-article { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.lp-card figcaption p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; opacity: .86; white-space: pre-line; }

.lp-article { background: var(--lp-btn); color: var(--lp-btn-ink); border-radius: 10px; padding: 22px 22px 10px;
  box-shadow: 0 1px 2px rgba(60, 30, 40, .08), 0 6px 18px rgba(60, 30, 40, .08); font-size: 15.5px; line-height: 1.7; }
.lp-article p { margin: 0 0 14px; }
.lp-article a { text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }

/* Fotoğraf büyütme */
.lp-lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgba(20, 12, 14, .88); }
.lp-lightbox[hidden] { display: none; }
.lp-lightbox img { max-width: 100%; max-height: 92vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.lp-lb-close { position: absolute; top: 12px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 28px; line-height: 1; color: #fff; background: rgba(255, 255, 255, .14); }

.lp-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 10px); padding: 10px 16px; border-radius: 999px;
  background: #2c1d17; color: #fff; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.lp-toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 420px) {
  .lp-wrap { padding-top: 56px; }
  .lp-avatar { width: 136px; height: 136px; }
  .lp-btn { font-size: 16px; min-height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
