/* ==========================================================================
   Vitrin: the visitor-facing showcase. Stands on its own: no Bootstrap, nothing from theme.css / app.css.
   Dark and photo-first, one warm accent. Mobile first; the profile page splits into two columns from 900px.
   ========================================================================== */
:root {
    color-scheme: dark;
    --v-bg: #0b0b0e;
    --v-surface: #16161b;
    --v-surface-2: #212128;
    --v-line: rgba(255, 255, 255, .08);
    --v-text: #f5f3ef;
    --v-text-2: #d4d1d9;
    --v-muted: #a3a1aa;
    --v-accent: #e8b971;
    --v-accent-ink: #1b1305;
    --v-wa: #25d366;
    --v-wa-ink: #04230f;
    --v-radius: 16px;
    --v-radius-sm: 10px;
    --v-gutter: 16px;
    --v-max: 1240px;
    --v-header-h: 60px;
    --v-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --v-serif: "Playfair Display", Georgia, "Times New Roman", serif;
}
@media (min-width: 768px) { :root { --v-gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
    background: var(--v-bg); color: var(--v-text); font: 400 15px/1.55 var(--v-font);
    -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--v-accent); outline-offset: 2px; }

.v-wrap { width: 100%; max-width: var(--v-max); margin: 0 auto; padding: 0 var(--v-gutter); }

/* ---------- Header / footer ---------- */
/* Not sticky: scrolls away with the page */
.v-header { padding-top: env(safe-area-inset-top, 0px); background: var(--v-bg); border-bottom: 1px solid var(--v-line); }
.v-header-in { display: flex; align-items: center; justify-content: center; height: var(--v-header-h); text-align: center; }
.v-brand { font: 600 1.45rem/1 var(--v-serif); letter-spacing: .01em; }
.v-brand::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 3px; border-radius: 50%; background: var(--v-accent); }
.v-head-title .v-brand { padding-left: 9px; } /* as wide as the dot, so the word itself sits in the middle */
/* Header title, centred: the brand (the ad's name on the ad page), the visitor's city under it; long ones end in "…" */
.v-head-title { min-width: 0; max-width: 100%; }
.v-name { font: 600 1.6rem/1.15 var(--v-serif); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) { .v-name { font-size: 1.85rem; } }
.v-head-city { margin-top: 2px; color: var(--v-text-2); font-size: .8rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Canlı Destek banner above the header: one phone-sized image (the words over contact doodles, 430px wide at 48px tall).
   It always fills the banner height, centred: narrower phones cut its sides, wider screens get its edge colour past its ends. */
.v-top { position: relative; display: block; height: 48px; overflow: hidden; background: #07423c; }
.v-top img { position: absolute; top: 0; left: 50%; width: auto; max-width: none; height: 100%; transform: translateX(-50%); transition: filter .15s; }
.v-top:hover img { filter: brightness(1.08); }
@media (min-width: 768px) { .v-top { height: 56px; } }
.v-top-count { position: absolute; top: 50%; right: var(--v-gutter); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #fff; color: #0e7266; font-size: .75rem; font-weight: 600; line-height: 22px; text-align: center; transform: translateY(-50%); }
.v-main { flex: 1 0 auto; padding-top: 20px; padding-bottom: 40px; }
.v-footer { padding: 24px var(--v-gutter) calc(24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--v-line); color: var(--v-muted); font-size: .8rem; text-align: center; }

/* ---------- List: photo grid ---------- */
.v-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.v-title { font: 600 1.6rem/1.15 var(--v-serif); }
.v-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .v-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1024px) { .v-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } .v-title { font-size: 2rem; } }

.v-card { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--v-radius); overflow: hidden; background: var(--v-surface); isolation: isolate; }
.v-card img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Dark fade at the bottom so the name reads on any photo */
.v-card::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, .45) 45%, transparent); pointer-events: none; }
/* "Elden Ödeme" tag, top right of every card */
.v-card-tag {
    position: absolute; top: 10px; right: 10px; z-index: 1; padding: 4px 8px; border-radius: 6px;
    /* see-through gold (--v-accent at 75%) with the photo blurred behind it, so the text stays readable */
    background: rgba(232, 185, 113, .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    color: var(--v-accent-ink); font-size: .7rem; font-weight: 600; line-height: 1.2; letter-spacing: .01em; white-space: nowrap; box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
@media (min-width: 640px) { .v-card-tag { top: 12px; right: 12px; font-size: .75rem; } }
.v-card-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 2px; padding: 12px; }
.v-card-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 1rem; line-height: 1.25; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); overflow-wrap: anywhere; }
/* Phone number: proportional digits and a hair tighter, so the longest numbers ("+55 11 96123-4567") fit a 360px phone's card */
.v-card-meta { color: rgba(255, 255, 255, .85); font-size: .85rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-ph { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 50% 35%, var(--v-surface-2), var(--v-surface)); color: rgba(255, 255, 255, .18); font-size: 3rem; }
@media (min-width: 640px) { .v-card-info { padding: 14px 16px; } .v-card-name { font-size: 1.05rem; } .v-card-meta { font-size: .95rem; } }

.v-empty { padding: 64px 16px; border: 1px dashed var(--v-line); border-radius: var(--v-radius); color: var(--v-muted); text-align: center; }
.v-empty .ti { display: block; margin-bottom: 10px; font-size: 2.4rem; opacity: .6; }
.v-empty-title { margin-bottom: 4px; color: var(--v-text); font-weight: 600; }

/* ---------- Profile page ---------- */
/* minmax(0, …): the column is the screen's width whatever the content's minimum (a gallery slide's is its height × 3/4) */
.v-profile { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) {
    /* Gallery column as wide as a 3:4 photo that fits the screen height, so cover crops as little as on phones */
    .v-profile { grid-template-columns: minmax(0, min(600px, 76vh * .75)) minmax(0, 1fr); gap: 48px; align-items: start; }
    .v-info { position: sticky; top: 24px; }
}

/* Gallery: swipe on phones (scroll-snap), arrows on desktop; full width under the header on phones */
.v-media { margin: -20px calc(-1 * var(--v-gutter)) 0; }
.v-stage { position: relative; background: #000; }
@media (min-width: 900px) {
    .v-main:has(.v-profile) { padding-top: 32px; }
    .v-media { margin: 0; }
    .v-stage { border-radius: var(--v-radius); overflow: hidden; }
}
.v-track { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-user-select: none; user-select: none; }
.v-track::-webkit-scrollbar { display: none; }
.v-slide { position: relative; flex: 0 0 100%; display: grid; place-items: center; overflow: hidden; aspect-ratio: 3 / 4; max-height: 76vh; max-height: 76svh; scroll-snap-align: center; scroll-snap-stop: always; }
/* Fill the 3:4 frame; crop a little above centre so heads stay in when a tall phone photo is trimmed */
/* Laid over the slide: the photo takes the slide's (capped) height instead of its own, so nothing sticks out and the gallery never scrolls up/down */
.v-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; -webkit-user-drag: none; user-select: none; }
/* Mouse: drag the photo like a finger. Snapping is off while dragging, back on once the photo settles (vitrin.js) */
@media (hover: hover) and (pointer: fine) { .v-track { cursor: grab; } }
.v-track.is-dragging { cursor: grabbing; }
.v-track.is-free { scroll-snap-type: none; }
.v-slide.is-empty { background: radial-gradient(circle at 50% 35%, var(--v-surface-2), var(--v-surface)); color: rgba(255, 255, 255, .18); font-size: 4rem; }
.v-nav {
    position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; margin-top: -21px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 1.3rem; cursor: pointer; transition: opacity .15s, background .15s;
}
.v-nav:hover { background: rgba(0, 0, 0, .7); }
.v-nav.is-prev { left: 12px; }
.v-nav.is-next { right: 12px; }
.v-nav:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .v-nav { display: none; } }
.v-counter { position: absolute; right: 12px; bottom: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
.v-thumbs { position: relative; display: flex; gap: 8px; padding: 10px var(--v-gutter) 0; overflow-x: auto; scrollbar-width: none; }
.v-thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .v-thumbs { padding: 12px 0 0; } }
.v-thumbs button { flex: 0 0 auto; width: 54px; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--v-surface); opacity: .45; cursor: pointer; transition: opacity .15s; }
.v-thumbs button:hover { opacity: .8; }
.v-thumbs button.is-active { opacity: 1; outline: 2px solid var(--v-accent); outline-offset: -2px; }
.v-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* Details */
/* Age / height / weight: one plain line under the name */
/* Under the photo: the name again, then "25 yaş · 170 cm · 60 kg" */
.v-info-name { font: 600 2rem/1.1 var(--v-serif); letter-spacing: -.01em; overflow-wrap: anywhere; }
@media (min-width: 900px) { .v-info-name { font-size: 2.5rem; } }
.v-stats { margin-top: 6px; color: var(--v-text-2); font-size: .85rem; font-variant-numeric: tabular-nums; }
.v-section { margin-top: 24px; }
.v-info > :first-child { margin-top: 0; }
.v-section-title { margin-bottom: 10px; color: var(--v-muted); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.v-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.v-chips li { --c: 245 243 239; padding: 6px 12px; border: 1px solid rgb(var(--c) / .35); border-radius: 999px; background: rgb(var(--c) / .12); color: rgb(var(--c)); font-size: .85rem; }
/* Chip palette: light tints that read on the dark background */
.v-chips .c0 { --c: 232 185 113; } /* gold */
.v-chips .c1 { --c: 129 214 150; } /* green */
.v-chips .c2 { --c: 120 184 250; } /* blue */
.v-chips .c3 { --c: 244 143 177; } /* pink */
.v-chips .c4 { --c: 186 160 240; } /* purple */
.v-chips .c5 { --c: 94 214 224; }  /* cyan */
.v-chips .c6 { --c: 255 171 120; } /* orange */
.v-chips .c7 { --c: 240 128 128; } /* coral */
.v-desc { color: var(--v-text-2); white-space: pre-line; overflow-wrap: anywhere; }

/* Other live ads under the profile: same grid as the list page */
.v-more { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--v-line); }
.v-more .v-head { justify-content: center; text-align: center; } /* centred like the header */
.v-more .v-title { font-size: 1.35rem; }
@media (min-width: 900px) { .v-more { margin-top: 56px; padding-top: 36px; } .v-more .v-title { font-size: 1.6rem; } }

/* Contact: a fixed bar at the bottom on phones, inline on wide screens */
.v-contact { display: flex; gap: 8px; margin-top: 28px; }
.v-btn {
    flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 18px; border-radius: 999px;
    font-size: 1rem; font-weight: 600; white-space: nowrap; transition: filter .15s, transform .1s;
}
.v-btn span { overflow: hidden; text-overflow: ellipsis; }
.v-btn .ti { flex-shrink: 0; font-size: 1.3rem; }
.v-btn:hover { filter: brightness(1.08); }
.v-btn:active { transform: scale(.98); }
.v-btn.is-call { background: var(--v-accent); color: var(--v-accent-ink); }
.v-btn.is-wa { background: var(--v-wa); color: var(--v-wa-ink); }
@media (max-width: 899.98px) {
    .v-contact {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; margin: 0; padding: 12px var(--v-gutter) calc(12px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--v-line); background: rgba(11, 11, 14, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    }
    .has-contact { padding-bottom: calc(77px + env(safe-area-inset-bottom, 0px)); }
    /* Number and WhatsApp side by side, the same width: words only, so the longest foreign numbers
       ("+234 802 123 4567") fit half of a 360px phone. A button on its own keeps its icon. */
    .v-btn:not(:only-child) { padding: 0 8px; font-size: .9rem; }
    .v-btn:not(:only-child) .ti { display: none; }
}
@media (max-width: 349.98px) { .v-btn:not(:only-child) { font-size: .75rem; } } /* 320px phones */

@media (prefers-reduced-motion: reduce) {
    .v-btn, .v-nav, .v-thumbs button, .v-top img { transition: none; }
}

/* Ad photos come as <picture> (WebP + JPEG fallback); the wrapper must not affect layout */
picture { display: contents; }
