/* ==========================================================================
   Yeni özellikler: giriş (landing) sayfası, kayıt, bildirimler, online, profil bölümleri, fotoğraf beğenisi, blog.
   app.css'in değişkenlerini kullanır (açık/koyu tema uyumlu). CSP gereği satır içi stil yok.
   ========================================================================== */

:root { --lf-a: #FF5722; --lf-b: #FF8A4C; --gold: #F5C542; }

/* ---------- Giriş (landing) ---------- */
body.bare .main-landing { max-width: 560px; padding: calc(var(--safe-t) + 34px) 20px 36px; }
.landing { position: relative; display: flex; flex-direction: column; gap: 14px; }
.landing-narrow { gap: 16px; text-align: center; }
.landing-brand { text-align: center; margin-bottom: 8px; }
.landing-logo { display: inline-block; max-width: 260px; }
.landing-logo:hover { text-decoration: none; }
.landing-logo img { max-height: 96px; width: auto; margin: 0 auto; }
.brand-title { font-family: var(--serif); font-size: 2.4rem; font-weight: 800; color: var(--text); letter-spacing: -.02em; }
.landing-slogan { margin: 10px 0 0; color: var(--muted); font-size: 1.02rem; letter-spacing: .02em; }
.lf-title { margin: 0; font-size: 1.5rem; }
.lf-lead { color: var(--muted); margin: 0; }
.lf-hint { color: var(--muted); font-size: .85rem; margin: -6px 0 0; text-align: center; }
.lf-icon { color: var(--lf-b); display: flex; justify-content: center; }

.lf-alert { border-radius: var(--radius-sm); padding: 12px 14px; margin: 0; font-size: .95rem; text-align: left; }
.lf-alert-err { background: color-mix(in srgb, #EF4444 14%, transparent); border: 1px solid #EF4444; }
.lf-alert-ok { background: color-mix(in srgb, #22C55E 14%, transparent); border: 1px solid #22C55E; }

.landing-form { display: flex; flex-direction: column; gap: 14px; }
.lf-input { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 0 18px; min-height: 58px; color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.lf-input:focus-within { border-color: var(--lf-b); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lf-b) 25%, transparent); }
.lf-input .ico { width: 22px; height: 22px; flex: none; }
.lf-input input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 1.05rem; padding: 16px 0; }
.lf-input input::placeholder { color: var(--muted); opacity: .85; }
.lf-eye { background: none; border: 0; padding: 6px; color: var(--muted); display: inline-flex; border-radius: 8px; }
.lf-eye:hover { color: var(--text); }
.lf-forgot { text-align: right; margin: -4px 4px 4px; font-size: .92rem; }
.lf-forgot a { color: var(--muted); }

.lf-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; border-radius: 22px; border: 1px solid transparent; font-weight: 700; font-size: 1.08rem; padding: 0 20px; width: 100%; cursor: pointer; text-decoration: none; transition: transform .1s ease, filter .15s ease; }
.lf-btn:hover { text-decoration: none; filter: brightness(1.06); }
.lf-btn:active { transform: scale(.985); }
.lf-btn .ico { width: 22px; height: 22px; }
.lf-btn-primary { background: linear-gradient(90deg, var(--lf-a), var(--lf-b)); color: #fff; box-shadow: 0 10px 28px color-mix(in srgb, var(--lf-a) 35%, transparent); }
.lf-btn-outline { background: var(--surface); border-color: var(--border); color: var(--text); }
.lf-btn-google { background: #fff; color: #1f1f1f; border-color: #e6e6e6; }
.lf-btn-facebook { background: #1877f2; color: #fff; }
.lf-social { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.lf-resend { margin-top: -4px; }

.landing .theme-fab { top: -18px; right: -6px; width: 40px; height: 40px; }

/* Son aktif üyeler */
.lm { margin-top: 18px; text-align: center; }
.lm-title { font-family: var(--sans); font-size: .85rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); margin: 0 0 14px; text-transform: uppercase; }
.lm-track { display: flex; justify-content: center; gap: 12px; transition: opacity .35s ease, transform .35s ease; }
.lm-track.lm-out { opacity: 0; transform: translateY(8px); }
.lm-track.lm-in { animation: lm-in .4s ease both; }
@keyframes lm-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.lm-item { flex: 1 1 0; min-width: 0; max-width: 104px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.lm-item:hover { text-decoration: none; }
.lm-ring { width: 100%; aspect-ratio: 1; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, #E1306C, var(--lf-a), var(--lf-b)); display: block; position: relative; }
.lm-ring img { position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px); border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); background: var(--surface-2); }
.lm-ring.is-online::after { content: ''; position: absolute; right: 6%; bottom: 6%; width: 16%; height: 16%; border-radius: 50%; background: #22C55E; border: 2px solid var(--bg); }
.lm-name { font-size: .82rem; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-item.lm-pulse .lm-ring { animation: lm-pulse .9s ease; }
@keyframes lm-pulse { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .lm-track, .lm-track.lm-in, .lm-item.lm-pulse .lm-ring { animation: none; transition: none; } }

/* Alt bilgi */
.landing-foot { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 22px; text-align: center; }
.lf-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; text-align: left; }
.lf-links a { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 1rem; }
.lf-links a:hover { color: var(--text); text-decoration: none; }
.lf-follow { font-family: var(--sans); font-size: .85rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); margin: 26px 0 12px; text-transform: uppercase; }
.lf-socials { display: flex; justify-content: center; gap: 14px; }
.lf-soc { width: 54px; height: 54px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.lf-soc:hover { background: var(--surface-2); text-decoration: none; }
.lf-copy { margin: 22px 0 6px; color: var(--muted); font-size: .8rem; }

/* ---------- Kayıt sihirbazı ---------- */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-wrap .lf-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.accept-row { justify-content: flex-start; align-items: flex-start; gap: 10px; font-size: .9rem; }
.accept-row input { margin-top: 4px; flex: none; }
.field-error { display: block; color: #F87171; margin-top: 4px; font-size: .82rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #EF4444; }
#loc-city-select { width: 100%; }

/* ---------- Bildirimler ---------- */
.notif-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.notif-tabs .chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; }
.notif-tabs .chip:hover { text-decoration: none; background: var(--surface-2); }
.notif-tabs .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-badge { background: var(--accent); color: #fff; border-radius: 999px; font-size: .7rem; padding: 0 6px; margin-left: 2px; }
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); text-decoration: none; position: relative; }
.notif-item:hover { background: var(--surface-2); text-decoration: none; }
.notif-item.is-new { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.notif-item.is-new::before { content: ''; position: absolute; left: -4px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); }
.notif-avatar { position: relative; flex: none; }
.notif-avatar .avatar { width: 56px; height: 56px; }
.notif-avatar .avatar-blur { filter: none; }
.notif-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0, 0, 0, .3); border-radius: 50%; }
.notif-type { position: absolute; right: -4px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--like); color: #fff; border: 2px solid var(--surface); }
.notif-type .ico { width: 12px; height: 12px; fill: currentColor; }
.notif-type-visit { background: #3B82F6; }
.notif-type-visit .ico { fill: none; }
.notif-type-photo_like { background: #A855F7; }
.notif-online { position: absolute; left: 0; bottom: 0; }
.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-text { overflow-wrap: anywhere; }
.notif-photo { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.notif-cta { flex: none; background: linear-gradient(90deg, #F5C542, #E9A93A); color: #3B2A00; font-weight: 700; font-size: .8rem; border-radius: 999px; padding: 6px 12px; }
.notif-item.blurred .avatar { filter: none; }
.skeleton-row { height: 80px; border: 0; background: linear-gradient(90deg, var(--skeleton-a), var(--skeleton-b), var(--skeleton-a)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Online ---------- */
.pill-online { background: color-mix(in srgb, #22C55E 18%, transparent); color: #4ADE80; display: inline-flex; align-items: center; gap: 6px; }
.online-note { margin: -6px 0 14px; }

/* ---------- Profil bölümleri (Temel Bilgiler, Eğitim & Kariyer...) ---------- */
.pf-card h2, .pf-locked h2 { font-size: 1.1rem; }
.pf-ico { display: inline-flex; }
.pf-rows { margin: 8px 0 0; display: grid; }
.pf-rows > div { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.pf-rows > div:first-child { border-top: 0; }
.pf-rows dt { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.pf-rows dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.pf-rows dd.pf-hot { color: var(--gold); }
.pf-rows dd a { color: var(--accent-text); }
.pf-locked { text-align: center; }
.pf-locked h2 { justify-content: center; }
.pf-lock-ico { color: var(--gold); display: flex; justify-content: center; margin-bottom: 4px; }
.btn-gold { background: var(--gold); color: #1a1300; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: .9rem; }
.btn-gold:hover { filter: brightness(1.06); }
.pf-group { border: 0; padding: 0; margin: 0 0 16px; }
.pf-group legend { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: 10px; }
.req { color: #F87171; }

/* ---------- Fotoğraf beğenisi ---------- */
.photo-like { position: absolute; right: 12px; top: calc(var(--safe-t) + 62px); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 46px; padding: 10px 8px; border: 0; border-radius: 999px; background: var(--glass); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; }
.photo-like .ico { width: 24px; height: 24px; }
.photo-like.is-liked { color: var(--like); }
.photo-like.is-liked .ico { fill: currentColor; }
.photo-like.pop .ico { animation: lm-pulse .4s ease; }
.photo-like-count { font-size: .75rem; font-weight: 700; min-height: 1em; }

/* ---------- Blog / sayfalar ---------- */
.blog-list { display: grid; gap: 14px; }
.blog-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; color: var(--text); }
.blog-card:hover { background: var(--surface-2); text-decoration: none; }
.blog-card h2 { margin: 0 0 4px; }
.blog-more { color: var(--accent-text); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.prose h1 { margin-bottom: .6em; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }

@media (max-width: 420px) {
  .lm-track { gap: 8px; }
  .lm-name { font-size: .74rem; }
  .lf-links { gap: 12px; }
  .photo-like { top: calc(var(--safe-t) + 58px); }
}

/* ---- Etkileşim özellikleri ---- */
.discover-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.discover-tabs .chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: .9rem; }
.discover-tabs .chip:hover { text-decoration: none; background: var(--surface-2); }
.discover-tabs .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill-compat { background: rgba(255,255,255,.18); color: #fff; margin-left: 6px; font-weight: 700; }
.card-compat { position: absolute; right: 8px; top: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.profile-actions-2 { padding-top: 8px; }
.profile-actions-2 .btn { min-height: 40px; }
.rate-card .stars { display: flex; gap: 4px; margin: 6px 0; }
.rate-card .star { background: none; border: 0; padding: 2px 4px; font-size: 2rem; line-height: 1; color: var(--border); cursor: pointer; }
.rate-card .star.on { color: #F5C542; }
.rate-card .star:focus-visible { outline: 2px solid var(--accent); border-radius: 6px; }
.completion { margin-bottom: 14px; }
.completion-bar, .stat-bar { display: block; width: 100%; height: 10px; border: 0; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 8px 0; appearance: none; -webkit-appearance: none; }
.completion-bar::-webkit-progress-bar, .stat-bar::-webkit-progress-bar { background: var(--surface-2); border-radius: 999px; }
.completion-bar::-webkit-progress-value, .stat-bar::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.completion-bar::-moz-progress-bar, .stat-bar::-moz-progress-bar { background: var(--accent); border-radius: 999px; }
.completion ul { margin: 6px 0 0; padding-left: 1.2em; }
.msg-img { display: block; max-width: 220px; max-height: 260px; border-radius: 12px; cursor: zoom-in; }
.typing-hint { font-size: .8rem; color: var(--muted, #888); padding: 2px 16px 6px; min-height: 1.2em; }
.push-prompt { position: fixed; left: 12px; right: 12px; bottom: calc(var(--safe-b, 0px) + 74px); z-index: 60; display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: 520px; margin: 0 auto; }
.push-prompt p { margin: 0; flex: 1; font-size: .9rem; }
.attach-btn { background: none; border: 0; color: var(--muted, #888); padding: 8px; cursor: pointer; }

/* ---- Mobil cila: dar ekranlarda sıkışmayı önler, görünümü bozmaz ---- */
@media (max-width: 768px) {
  .nav-item { min-width: 0; padding: 0 2px; font-size: .66rem; }
  .nav-item .nav-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .nav-item .badge { top: 4px; left: calc(50% + 4px); min-width: 16px; height: 16px; padding: 0 4px; font-size: .62rem; line-height: 16px; }
  .cookie-bar { font-size: .76rem; gap: 10px; padding: 8px 12px; border-radius: 14px; }
  .cookie-bar .btn { min-height: 36px; padding: 6px 14px; }
  .notif-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .notif-tabs::-webkit-scrollbar { display: none; }
  .notif-tabs .chip { flex: none; white-space: nowrap; }
  .profile-actions-2 .btn { white-space: nowrap; font-size: .92rem; padding-left: 10px; padding-right: 10px; }
  .profile-actions-2 .btn-gold { text-transform: none; letter-spacing: 0; }
  .msg-img { max-width: 200px; max-height: 220px; object-fit: cover; }
  select { text-overflow: ellipsis; padding-left: 12px; padding-right: 8px; }
  .field-row .field { min-width: 0; }
  .push-prompt { left: 8px; right: 8px; }
}

.lf-about { max-width: 560px; margin: 18px auto 0; padding: 0 16px; text-align: center; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.lf-about p { margin: 0; }

/* ---------- Mobil uygulama (WebView) modu: menü, alt bilgi ve çerez çubuğu uygulamanın kendi arayüzünde ---------- */
:root.app-mode { --nav-h: 0px; --safe-t: 0px; --safe-b: 0px; }
html.app-mode body .nav,
html.app-mode body .site-footer,
html.app-mode body .cookie-bar,
html.app-mode body .announce { display: none !important; }
html.app-mode body.with-nav .main-wrap { padding-bottom: 0; margin-left: 0; }
html.app-mode { -webkit-tap-highlight-color: transparent; }
