/* TikKart kart profil sayfaları — telefonda açılan, açık temalı sayfalar */
:root {
  --p-bg: #EEF2F7;
  --p-card: #FFFFFF;
  --p-text: #0F172A;
  --p-soft: #64748B;
  --p-line: #E2E8F0;
  --p-brand: #0891B2;
  --p-brand-dark: #0E7490;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--p-bg);
  color: var(--p-text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2 { font-family: 'Sora', system-ui, sans-serif; letter-spacing: -0.01em; margin: 0; }

.demo-bar {
  background: #0F172A; color: #CBD5E1; font-size: 13px; text-align: center;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;
}
.demo-bar a { color: #22D3EE; font-weight: 600; }

.p-wrap { max-width: 460px; margin: 0 auto; padding: 0 16px 32px; }

.p-cover { height: 132px; margin: 0 -16px; background: linear-gradient(135deg, #0E7490, #6D28D9); }
.p-head { background: var(--p-card); border-radius: 18px; margin-top: -64px; padding: 0 20px 22px; text-align: center; box-shadow: 0 8px 30px rgba(15,23,42,0.08); position: relative; }
.p-avatar { width: 96px; height: 96px; border-radius: 50%; border: 4px solid #fff; background: #0F172A; margin: 0 auto; transform: translateY(-48px); margin-bottom: -40px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.p-avatar img { width: 100%; height: 100%; object-fit: cover; }
.p-head h1 { font-size: 24px; margin-bottom: 4px; }
.p-sub { color: var(--p-soft); font-size: 14.5px; }
.p-meta { color: var(--p-soft); font-size: 13px; margin-top: 6px; }

.p-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 18px; padding: 14px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--p-brand); color: #fff; font-weight: 700; font-size: 15px; font-family: inherit;
}
.p-primary:hover { background: var(--p-brand-dark); }

.p-section { background: var(--p-card); border-radius: 16px; margin-top: 14px; padding: 8px; box-shadow: 0 2px 10px rgba(15,23,42,0.04); }
.p-section h2 { font-size: 14px; color: var(--p-soft); font-weight: 600; padding: 10px 12px 6px; font-family: 'Inter', system-ui, sans-serif; letter-spacing: 0; }

.p-link {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: 12px;
  background: transparent; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.p-link:hover { background: #F8FAFC; }
.p-link + .p-link { border-top: 1px solid var(--p-line); border-radius: 0; }
.p-ico { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 18px; }
.p-ico svg { width: 20px; height: 20px; }
.p-txt { flex: 1; min-width: 0; }
.p-txt b { display: block; font-size: 15px; font-weight: 600; }
.p-txt small { display: block; color: var(--p-soft); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-go { color: #94A3B8; font-size: 18px; }
.p-tag { font-size: 11.5px; font-weight: 600; color: var(--p-brand-dark); background: #CFFAFE; padding: 3px 8px; border-radius: 999px; }

.ico-call { background: #DBEAFE; color: #1D4ED8; }
.ico-wa { background: #DCFCE7; color: #15803D; }
.ico-mail { background: #FEF3C7; color: #B45309; }
.ico-web { background: #E0E7FF; color: #4338CA; }
.ico-doc { background: #FEE2E2; color: #B91C1C; }
.ico-bank { background: #EDE9FE; color: #6D28D9; }
.ico-info { background: #E0F2FE; color: #0369A1; }

.p-rows { padding: 4px 12px 10px; }
.p-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 14.5px; }
.p-row + .p-row { border-top: 1px solid var(--p-line); }
.p-row span { color: var(--p-soft); flex-shrink: 0; }
/* Uzun değerler sağdan taşmasın, alt satıra sarsın */
.p-row b { font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.p-note { font-size: 13px; color: var(--p-soft); padding: 4px 12px 10px; }

.p-foot { text-align: center; margin-top: 22px; font-size: 13px; color: var(--p-soft); }
.p-foot a { font-weight: 600; color: var(--p-text); }

.p-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  background: #0F172A; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* Anı kartı (koyu tema) */
body.theme-ani { --p-bg: #0B0B12; --p-card: #161622; --p-text: #F8FAFC; --p-soft: #A1A1AA; --p-line: #27272A; --p-brand: #E11D48; --p-brand-dark: #BE123C; }
.theme-ani .p-link:hover { background: #1F1F2E; }
.ani-player { position: relative; margin: 16px -16px 0; aspect-ratio: 16/10; background: #000; overflow: hidden; }
.ani-player img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ani-play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: transparent; border: 0; color: #fff; font: inherit; cursor: pointer; text-align: center; padding: 16px;
}
.ani-play i { width: 64px; height: 64px; border-radius: 50%; background: rgba(225,29,72,0.92); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 22px; padding-left: 4px; }
.ani-play b { font-family: 'Sora', system-ui, sans-serif; font-size: 20px; }
.ani-message { font-size: 17px; line-height: 1.6; padding: 14px 12px; font-style: italic; }
.ani-album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px 12px 12px; }
.ani-album i { aspect-ratio: 1; border-radius: 8px; background: linear-gradient(135deg, #F9A8D4, #A78BFA); }
.ani-album i:nth-child(2) { background: linear-gradient(135deg, #FDE68A, #FB7185); }
.ani-album i:nth-child(3) { background: linear-gradient(135deg, #67E8F9, #818CF8); }
.ani-album i:nth-child(4) { background: linear-gradient(135deg, #FCA5A5, #FDBA74); }
.ani-album i:nth-child(5) { background: linear-gradient(135deg, #C4B5FD, #F0ABFC); }
.ani-album i:nth-child(6) { background: linear-gradient(135deg, #86EFAC, #5EEAD4); }
.ani-album img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.album-ac { padding: 0; border: 0; background: none; cursor: zoom-in; display: block; width: 100%; }
.album-ac:focus-visible { outline: 2px solid var(--p-brand); outline-offset: 2px; border-radius: 8px; }

/* Fotoğrafı tam ekran gösterme katmanı */
.p-buyut {
  position: fixed; inset: 0; z-index: 200; cursor: zoom-out;
  background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px;
}
.p-buyut img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }

/* Mevlit kartı — sade ve okunaklı, yaşlı ziyaretçiler için yazılar biraz büyük */
body.theme-mevlit {
  --p-bg: #F5F2EA; --p-card: #FFFFFF; --p-text: #1C2B24; --p-soft: #6B7A72;
  --p-line: #E7E1D3; --p-brand: #1F5F4E; --p-brand-dark: #16473A;
}
/* Kapakta sekiz köşeli yıldız örgüsü (iki kare, biri 45 derece döndürülmüş) */
.theme-mevlit .p-cover {
  height: 132px; background: linear-gradient(135deg, #1F5F4E, #0F3B30); position: relative; overflow: hidden;
}
.theme-mevlit .p-cover::before {
  content: ''; position: absolute; inset: 0; opacity: .30;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='1'%3E%3Crect x='14' y='14' width='28' height='28'/%3E%3Crect x='14' y='14' width='28' height='28' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px;
}
/* Kapağın altında ince altın şerit */
.theme-mevlit .p-cover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, #C9A227 30%, #E8CF7A 50%, #C9A227 70%, transparent);
}
.theme-mevlit .p-head { margin-top: -44px; padding-top: 22px; border-top: 2px solid #C9A227; }
.theme-mevlit .p-head h1 { font-size: 26px; }
.theme-mevlit .p-link:hover { background: #F7F5EF; }
.theme-mevlit .p-txt b, .theme-mevlit .p-row { font-size: 15.5px; }
/* Bölüm başlıklarının önünde küçük altın elmas */
.theme-mevlit .p-section h2::before {
  content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px;
  background: #C9A227; transform: rotate(45deg); vertical-align: middle;
}

/* Merhumun fotoğrafı — isteğe bağlı, yoksa sayfa fotoğrafsız düzende kalır */
.m-foto {
  width: 110px; height: 110px; margin: 0 auto 16px; border-radius: 50%;
  overflow: hidden; border: 3px solid #fff; box-shadow: 0 4px 16px rgba(28,43,36,0.18);
  background: #E7E1D3;
}
.m-foto img { width: 100%; height: 100%; object-fit: cover; }

/* Başlık üstündeki ve sayfa sonundaki motifler */
.m-orn { margin: 0 auto 12px; color: #C9A227; }
.m-orn svg { width: 96px; height: 20px; display: block; margin: 0 auto; }
.m-son { margin: 20px auto 0; color: #C9A227; opacity: .8; }
.m-son svg { width: 64px; height: 16px; display: block; margin: 0 auto; }
.m-dilek { font-size: 16px; margin: 12px 0 0; color: var(--p-brand-dark); font-weight: 600; }
.m-not { font-size: 15.5px; line-height: 1.65; padding: 6px 12px 4px; margin: 0; }
.m-sayac { text-align: center; padding: 14px 12px 4px; }
.m-sayac b { display: block; font-family: 'Sora', system-ui, sans-serif; font-size: 30px; color: var(--p-brand); }
.m-sayac span { font-size: 14px; color: var(--p-soft); }
.ico-yesil { background: #DCF2EA; color: #1F5F4E; font-size: 20px; }

.p-loading { text-align: center; color: var(--p-soft); padding: 80px 16px; margin: 0; }

/* "Müşteri kendi doldursun" kartlarındaki form (bkz. kart.js renderSelfService) */
.p-field { display: block; margin: 0 0 12px; }
.p-field span { display: block; font-size: 12.5px; color: var(--p-soft); font-weight: 600; margin-bottom: 4px; }
.p-field input, .p-field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--p-line);
  background: #fff; color: var(--p-text); font: inherit; font-size: 15px; box-sizing: border-box;
}
.p-field input:focus, .p-field textarea:focus { outline: 2px solid var(--p-brand); outline-offset: -1px; border-color: transparent; }
.p-error { color: #DC2626; font-size: 13.5px; padding: 2px 12px 0; min-height: 18px; }
.p-ok { color: #16A34A; font-size: 13.5px; padding: 2px 12px 0; min-height: 18px; font-weight: 600; }
