/* TituSMM — ziyaretçi sayfaları: yapışkan üst çubuk, giriş formlu ana sayfa, maskot ve alt bölümler.
   Renkler tema değişkenlerinden (--brand, --accent, --deep) gelir; açık/koyu görünümle uyumludur. */
:root { --header-h: 64px; }
html { scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------- Üst çubuk ---------- */
.site-header { position: sticky; top: 0; z-index: 45; background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: 1px solid var(--border); }
@supports (backdrop-filter: blur(1px)) { .site-header { backdrop-filter: saturate(1.3) blur(8px); } }
.sh-bar { max-width: 1240px; margin: 0 auto; min-height: var(--header-h); display: flex; align-items: center; gap: 1rem; padding: .5rem clamp(.75rem, 3vw, 1.5rem); }
.sh-brand { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.sh-mark { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 28%, transparent); }
.sh-logo-img { display: block; height: 32px; width: auto; max-width: 160px; }
.sh-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-nav { display: none; flex: 1; justify-content: center; gap: .15rem; min-width: 0; }
.sh-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: .45rem .75rem; border-radius: 999px; color: var(--text); font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.sh-nav a:hover { background: var(--surface-2); }
.sh-nav a[aria-current="page"] { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
[data-scheme="dark"] .sh-nav a[aria-current="page"] { color: color-mix(in srgb, var(--brand) 50%, white); }
.sh-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex: none; }
.sh-actions .btn { min-height: 42px; padding: .5rem 1.05rem; white-space: nowrap; }
.sh-scheme { display: inline-flex; }
.sh-drawer { display: none; }
.sh-drawer[data-open] { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: .15rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  padding: .5rem clamp(.75rem, 3vw, 1.5rem) 1rem; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 18px 32px -12px rgba(10, 20, 50, .22); }
.sh-drawer a { display: flex; align-items: center; gap: .75rem; min-height: 48px; padding: .5rem .75rem; border-radius: 10px; color: var(--text); font-weight: 600; text-decoration: none; }
.sh-drawer a:hover, .sh-drawer a[aria-current="page"] { background: var(--surface-2); }
.sh-drawer a svg { color: var(--muted); }
.sh-drawer-scheme { display: none; align-items: center; gap: .75rem; margin-top: .5rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.sh-backdrop { z-index: 44; }
@media (min-width: 1024px) {
  .sh-nav { display: flex; }
  .sh-burger, .sh-drawer[data-open] { display: none; }
}
@media (max-width: 560px) {
  :root { --header-h: 58px; }
  .sh-bar { gap: .5rem; }
  .sh-register, .sh-scheme { display: none; }
  .sh-drawer-scheme { display: flex; }
  .sh-actions { gap: .4rem; }
  .sh-actions .btn { min-height: 40px; padding: .4rem .85rem; }
  .sh-brand { font-size: 1rem; }
}
@media (max-width: 340px) { .sh-mark { width: 30px; height: 30px; } .sh-brand { gap: .45rem; } }

/* ---------- Tanıtım + giriş formu ---------- */
.home-hero { position: relative; isolation: isolate; display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "auth" "art";
  padding: clamp(.75rem, 3vw, 2.5rem) 0 clamp(1rem, 3vw, 2.5rem); }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side at 72% 50%, color-mix(in srgb, var(--brand) 9%, transparent), transparent); }
.hero-copy { grid-area: copy; min-width: 0; }
.hero-auth { grid-area: auth; min-width: 0; display: grid; justify-items: start; }
.hero-art { grid-area: art; }
.hero-title { margin: 0; font-size: clamp(1.85rem, 1.1rem + 2.6vw, 3.1rem); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; text-wrap: balance; }
.hero-lead { margin: .75rem 0 0; max-width: 46ch; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--muted); text-wrap: pretty; }
.hero-link { display: none; align-items: center; gap: .35rem; min-height: 44px; margin-top: .35rem; font-weight: 700; text-decoration: none; }
.hero-link:hover { text-decoration: underline; }
@media (min-width: 960px) {
  .home-hero { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "copy art" "auth art";
    column-gap: clamp(2rem, 5vw, 4.5rem); row-gap: 1.5rem; align-items: start; }
  .hero-art { align-self: center; }
  .hero-link { display: inline-flex; }
  .home-hero--no-art { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); grid-template-rows: auto; grid-template-areas: "copy auth"; align-items: center; }
  .home-hero--no-art .hero-auth { justify-items: stretch; }
}

/* Giriş kartı (ana sayfa ve /login) */
.card.login-card { display: grid; gap: .9rem; width: 100%; max-width: 460px; padding: clamp(1.1rem, 3vw, 1.6rem); border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.35); background: var(--surface); scroll-margin-top: calc(var(--header-h) + 16px);
  box-shadow: 0 1px 2px rgba(15, 27, 61, .04), 0 14px 36px -12px rgba(15, 27, 61, .18); }
[data-scheme="dark"] .card.login-card { box-shadow: 0 14px 36px -12px rgba(0, 0, 0, .55); }
.login-card .field { gap: .3rem; }
.login-title { margin: 0; font-size: 1.25rem; letter-spacing: -.01em; }
.login-alert { margin: 0; font-weight: 600; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 3rem; }
.pw-toggle { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.pw-toggle:hover { color: var(--text); background: var(--surface-2); }
.pw-toggle .pw-eye-off, .pw-toggle[aria-pressed="true"] .pw-eye { display: none; }
.pw-toggle[aria-pressed="true"] .pw-eye-off { display: block; }
.login-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; font-size: .925rem; }
.login-meta .check { align-items: center; min-height: 44px; cursor: pointer; }
.login-meta .check input { margin-top: 0; }
.login-meta a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.btn-lg { min-height: 50px; font-size: 1.02rem; }
.login-divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .85rem; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.btn-google { background: var(--surface); border-color: var(--border); }
.login-foot { margin: 0; text-align: center; color: var(--muted); }
.login-foot a { font-weight: 700; }
.login-page { display: grid; justify-items: center; padding: clamp(1rem, 4vw, 3rem) 0; }
.welcome-kicker { margin: 0; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.welcome-card .login-title { margin-top: -.4rem; }
.welcome-balance { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0; padding: .8rem 1rem; border-radius: var(--radius); background: var(--surface-2); }
.welcome-balance strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.welcome-links { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.welcome-links .btn { padding-inline: .6rem; }

/* Maskot */
.hero-art { --m-card: #ffffff; --m-line: #d9e0ec; --m-line2: #e9eef6; margin: 0; min-width: 0; display: grid; place-items: center; }
[data-scheme="dark"] .hero-art { --m-card: #18233f; --m-line: #2e3c62; --m-line2: #243152; }
.hero-art .mascot, .hero-art img { display: block; width: 100%; max-width: 560px; height: auto; }
.hero-art img { object-fit: contain; }
.mascot .m-card { fill: var(--m-card); }
.mascot .m-line { fill: var(--m-line); }
.mascot .m-line2 { fill: var(--m-line2); }
.m-astro { animation: m-float 6s ease-in-out infinite; }
.m-cards { animation: m-float 7.5s ease-in-out -2.5s infinite; }
.m-floor { transform-box: fill-box; transform-origin: center; animation: m-shadow 6s ease-in-out infinite; }
@keyframes m-float { 50% { transform: translateY(-8px); } }
@keyframes m-shadow { 50% { transform: scaleX(.9); opacity: .7; } }
@media (max-width: 959px) {
  .hero-art .mascot, .hero-art img { max-width: min(360px, 86vw); }
  .hero-auth { justify-items: stretch; }
  .card.login-card { max-width: none; }
}
@media (max-width: 599px) {
  /* Küçük telefonlarda (320×568) formun tamamı ilk ekranda kalsın */
  .home-hero { gap: 1rem; padding-top: .5rem; }
  .hero-lead { margin-top: .5rem; font-size: .975rem; }
  .card.login-card { gap: .75rem; }
}
@media (min-width: 600px) and (max-width: 959px) { .card.login-card { max-width: 520px; justify-self: center; } .hero-copy { text-align: center; } .hero-lead { margin-inline: auto; } }

/* ---------- Alt bölümler ---------- */
.home-sec { display: grid; gap: 1rem; padding-top: clamp(1.75rem, 4vw, 2.75rem); min-width: 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.sec-head h2 { margin: 0; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); letter-spacing: -.015em; }
.sec-head a { font-weight: 600; }
.platform-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.platform-card { display: flex; align-items: center; gap: .8rem; min-height: 64px; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.platform-card:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); transform: translateY(-1px); }
.platform-body { display: grid; min-width: 0; }
.platform-mark, .benefit-icon { flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; font-weight: 800;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 11%, transparent); }
[data-scheme="dark"] .platform-mark, [data-scheme="dark"] .benefit-icon { color: color-mix(in srgb, var(--brand) 50%, white); background: color-mix(in srgb, var(--brand) 22%, transparent); }
.feature-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.feature-card { display: grid; gap: .45rem; align-content: start; }
.feature-card h3 { margin: 0; font-size: 1.02rem; }
.feature-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.feature-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin: 0; }
.feature-price strong { font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.feature-card .btn { justify-self: start; margin-top: .3rem; }
.home-sec.quick-band { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem 1.5rem; margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding: clamp(1.1rem, 3vw, 1.75rem); border-radius: calc(var(--radius) * 1.35); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), color-mix(in srgb, var(--accent) 7%, var(--surface))); }
.quick-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.quick-text h2 { margin: 0 0 .25rem; font-size: 1.2rem; }
.quick-text p { margin: 0; }
.quick-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 760px) { .home-sec.quick-band { grid-template-columns: minmax(0, 1fr); } .quick-actions .btn { flex: 1 1 10rem; } }
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: flex-start; gap: .85rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.steps p { margin: .2rem 0 0; }
.step-no { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--brand), var(--accent)); }
.benefit-grid, .support-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.benefit-card h3 { margin: .7rem 0 .25rem; }
.benefit-card p { margin: 0; }
.faq-list { display: grid; gap: .6rem; }
.faq-item { padding: 0 1.1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 54px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; font-size: 1.35rem; font-weight: 400; color: var(--muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 1rem; color: var(--muted); }
.support-card { display: flex; align-items: flex-start; gap: .85rem; color: var(--text); text-decoration: none; }
.support-card > span:last-child { display: grid; gap: .2rem; min-width: 0; }
.support-card:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
/* Kart biçimli bağlantılar koyu görünümde de metin rengini kullanır (genel bağlantı rengini ezmek için) */
[data-scheme="dark"] .platform-card, [data-scheme="dark"] .support-card, [data-scheme="dark"] .sh-brand { color: var(--text); }

/* Yönetim: maskot önizlemesi */
.mascot-admin { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); align-items: start; }
.mascot-preview { display: grid; place-items: center; min-height: 160px; padding: .75rem; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface-2); }
.mascot-preview .hero-art .mascot, .mascot-preview .hero-art img { max-width: 220px; }
@media (max-width: 720px) { .mascot-admin { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Alt bilgi ---------- */
body.guest { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.guest > main { flex: 1 0 auto; width: 100%; }
.site-footer { margin-top: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--border); background: var(--surface); }
.sf-inner { max-width: 1240px; margin: 0 auto; display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); padding: 2rem clamp(1rem, 3vw, 1.5rem); }
.sf-brand p { max-width: 32ch; margin: .6rem 0 0; }
.sf-col { display: grid; align-content: start; gap: .1rem; }
.sf-title { margin: 0 0 .35rem; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sf-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text); text-decoration: none; }
.sf-col a:hover { color: var(--brand); text-decoration: underline; }
.sf-bottom { max-width: 1240px; margin: 0 auto; padding: 1rem clamp(1rem, 3vw, 1.5rem) 1.5rem; border-top: 1px solid var(--border); }
