/* ============================================================
   VITRIN.CSS — Architekt Animasyon Vitrini (izole sayfa stili)
   style.css token'larını miras alır (var(--clr-*), --sp-*).
   Sadece vitrin.html tarafından yüklenir; global sheet'i şişirmez.
   ============================================================ */

/* === 1. VITRIN TABAN === */
.vitrin {
    background: var(--clr-bg);
    color: var(--clr-text);
}
.vitrin .container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--sp-3);
}

/* Display başlık — Bebas Neue (CLAUDE.md §4) */
.disp {
    font-family: "Bebas Neue", "Inter", sans-serif;
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 0.95;
    text-transform: uppercase;
}

/* === 2. MINIMAL HEADER === */
.v-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: rgba(242, 242, 242, 0.82);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--clr-border);
}
.v-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
}
.v-header .logo img { display: block; }
.v-header .v-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
    font-weight: var(--fw-semibold);
}

/* CTA buton — tek turuncu kullanım noktası */
.v-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.7em 1.3em;
    background: var(--clr-accent);
    color: #fff;
    font-weight: var(--fw-bold);
    font-size: 0.92rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.v-cta:hover { background: var(--clr-accent-dark); transform: translateY(-1px); }

/* === 3. HERO === */
.v-hero {
    padding: clamp(72px, 14vh, 160px) 0 var(--sp-7);
    text-align: center;
}
.v-hero .disp {
    font-size: clamp(2.8rem, 9vw, 7rem);
    color: var(--clr-navy);
}
.v-hero .disp em {
    font-style: normal;
    color: var(--clr-accent);
}
.v-hero p {
    max-width: 48ch;
    margin: var(--sp-3) auto 0;
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    color: var(--clr-text-muted);
    line-height: 1.55;
}
.v-scrollhint {
    margin-top: var(--sp-5);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--clr-text-muted);
}
.v-scrollhint span {
    display: block;
    width: 1px; height: 42px;
    margin: var(--sp-2) auto 0;
    background: linear-gradient(var(--clr-navy), transparent);
    animation: vHintPulse 1.8s ease-in-out infinite;
}
@keyframes vHintPulse { 0%,100%{opacity:.3;transform:scaleY(.6)} 50%{opacity:1;transform:scaleY(1)} }

/* === 4. FILTRE ÇIPLERI === */
.v-filter {
    position: sticky;
    top: var(--header-h);
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-1);
    justify-content: center;
    padding: var(--sp-2) var(--sp-3);
    background: rgba(242,242,242,0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--clr-border);
}
.v-chip {
    padding: 0.45em 1.1em;
    font-size: 0.85rem;
    font-weight: var(--fw-semibold);
    color: var(--clr-text-muted);
    background: transparent;
    border: 1px solid var(--clr-border-mid);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.v-chip:hover { color: var(--clr-navy); border-color: var(--clr-navy); }
.v-chip[aria-pressed="true"] {
    color: #fff;
    background: var(--clr-navy);
    border-color: var(--clr-navy);
}

/* === 5. DEMO BLOĞU (ortak iskelet) === */
.demo {
    padding: var(--sp-8) 0;
    border-top: 1px solid var(--clr-border);
}
.demo.is-hidden { display: none; }
.demo-head {
    max-width: 760px;
    margin: 0 auto var(--sp-6);
    text-align: center;
}
.demo-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: var(--fw-bold);
    color: var(--clr-accent);
    margin-bottom: var(--sp-2);
}
.demo-head h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--clr-navy);
    line-height: 1.05;
    font-weight: var(--fw-black);
}
.demo-head p {
    margin-top: var(--sp-2);
    color: var(--clr-text-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

/* === 6. DEMO 1 — HARF HARF METIN REVEAL === */
.reveal-stage {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.animated-text {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(2.4rem, 8vw, 6rem);
    line-height: 1;
    color: var(--clr-navy);
    max-width: 18ch;
}
.animated-text span { display: inline-block; will-change: transform, opacity; }

/* === 7. DEMO 2 — STACKING CARDS / PEEL === */
.stack-wrap { perspective: 1200px; }
.stack-card {
    position: sticky;
    top: 18vh;
    height: 62vh;
    margin-bottom: var(--sp-5);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--sp-6);
    color: #fff;
    overflow: hidden;
    transform-origin: center top;
    will-change: transform, filter, opacity;
}
.stack-card .k-no {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 1;
    opacity: 0.5;
}
.stack-card h3 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: var(--fw-black); margin-top: var(--sp-1); }
.stack-card p { margin-top: var(--sp-1); max-width: 42ch; opacity: 0.85; }
/* Soyut placeholder zeminler — token tonları */
.stack-card.c1 { background: linear-gradient(135deg, var(--clr-navy), var(--clr-navy-500)); }
.stack-card.c2 { background: linear-gradient(135deg, var(--clr-navy-500), var(--clr-navy-600)); }
.stack-card.c3 { background: linear-gradient(135deg, var(--clr-navy-900), var(--clr-navy)); }
.stack-card.c4 { background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-accent) 180%); }

/* === 8. DEMO 3 — YATAY PINNED GALERI === */
.pin-section { overflow: hidden; }
.pin-track {
    display: flex;
    gap: var(--sp-3);
    padding-inline: var(--sp-3);
    width: max-content;
    will-change: transform;
}
.pin-panel {
    flex: 0 0 clamp(280px, 42vw, 540px);
    height: 64vh;
    border-radius: 8px;
    background: var(--clr-bg-tint);
    border: 1px solid var(--clr-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--sp-5);
    overflow: hidden;
    position: relative;
}
.pin-panel .ph {
    position: absolute; inset: 0;
    background:
       radial-gradient(120% 80% at 80% 0%, rgba(234,97,42,0.10), transparent 50%),
       linear-gradient(135deg, var(--clr-navy), var(--clr-navy-600));
    z-index: 0;
}
.pin-panel .pin-meta { position: relative; z-index: 1; color: #fff; }
.pin-panel .pin-no {
    position: relative; z-index: 1;
    font-family: "Bebas Neue", sans-serif;
    font-size: 2.4rem; color: rgba(255,255,255,0.55);
}
.pin-panel h3 { position: relative; z-index: 1; color:#fff; font-size: clamp(1.4rem,3vw,2rem); font-weight: var(--fw-black); }
.pin-panel p { position: relative; z-index: 1; color: rgba(255,255,255,0.75); margin-top: 4px; }

/* === 9. DEMO 4 — MANYETIK BUTON === */
.magnet-stage {
    position: relative;
    height: 56vh;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--clr-navy-900), var(--clr-navy));
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    cursor: none;
}
.magnet-stage .hint {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.magnet-btn {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; gap: 0.6em;
    padding: 1.1em 2em;
    background: var(--clr-accent);
    color: #fff; font-weight: var(--fw-bold); font-size: 1.05rem;
    border-radius: 999px;
    text-decoration: none;
    pointer-events: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 10px 40px rgba(234,97,42,0.35);
    will-change: left, top;
}
.magnet-stage.active .magnet-btn { transform: translate(-50%, -50%) scale(1.08); }

/* === 10. DEMO 5 — 3D TILT GRID === */
.tilt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
}
.tilt-card {
    perspective: 900px;
    border-radius: 10px;
}
.tilt-inner {
    height: 280px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--clr-navy-600), var(--clr-navy));
    border: 1px solid var(--clr-border);
    display: flex; align-items: flex-end;
    padding: var(--sp-3);
    color: #fff;
    transform-style: preserve-3d;
    transition: transform 0.18s ease;
    will-change: transform;
}
.tilt-inner span {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.6rem;
    transform: translateZ(40px);
}

/* === 11. FINAL CTA + FOOTER === */
.v-final {
    padding: var(--sp-8) 0;
    text-align: center;
    background: linear-gradient(135deg, var(--clr-navy), var(--clr-navy-600));
    color: #fff;
}
.v-final h2 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: var(--fw-black); }
.v-final p { color: rgba(255,255,255,0.78); max-width: 50ch; margin: var(--sp-2) auto var(--sp-4); }

.v-footer {
    background: var(--clr-navy);
    color: rgba(255,255,255,0.7);
    padding: var(--sp-5) 0;
    font-size: 0.9rem;
}
.v-footer .footer-inner { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; align-items: center; }
.v-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.v-footer a:hover { color: #fff; }

/* === 14. OKUMA İLERLEME ÇUBUĞU (top bar) === */
.v-progress {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    z-index: 60;
    background: transparent;
    pointer-events: none;
}
.v-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--clr-accent);
    transition: opacity 0.3s ease;
}
.demo-note { color: var(--clr-accent) !important; font-weight: var(--fw-semibold); }

/* === 15. SONSUZ MARQUEE === */
.marquee {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee + .marquee { margin-top: var(--sp-2); }
.marquee .swiper-wrapper { transition-timing-function: linear !important; }
.marq-item {
    width: auto !important;
    display: inline-flex;
    align-items: center;
    padding: 0.6em 1.4em;
    margin-right: var(--sp-2);
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    letter-spacing: 0.02em;
    color: var(--clr-navy);
    border: 1px solid var(--clr-border-mid);
    border-radius: 999px;
    white-space: nowrap;
}
.marq-item.ghost { color: var(--clr-text-muted); border-color: var(--clr-border); }

/* === 16. YORUM CAROUSEL === */
.yorum { padding-bottom: var(--sp-5); }
.yorum-card {
    height: auto;
    background: #fff;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--sp-3);
}
.yorum-card p { font-size: 1.15rem; line-height: 1.5; color: var(--clr-text); }
.yorum-card .who { color: var(--clr-text-muted); font-weight: var(--fw-semibold); font-size: 0.92rem; }
.yorum .swiper-pagination-bullet-active { background: var(--clr-accent); }

/* === 17. SAYAÇ === */
.counter-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-3);
    text-align: center;
    list-style: none;
}
.counter-row li {
    padding: var(--sp-4) var(--sp-2);
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    background: var(--clr-bg-tint);
}
.counter-row .count-on,
.counter-row b {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    line-height: 1;
    color: var(--clr-navy);
}
.counter-row b { color: var(--clr-accent); }
.counter-row p { margin-top: var(--sp-1); color: var(--clr-text-muted); font-size: 0.95rem; }

/* === 18. AKORDIYON === */
.accordion { list-style: none; max-width: 760px; margin-inline: auto; }
.acc-item { border-bottom: 1px solid var(--clr-border-mid); }
.acc-head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3) 0;
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: var(--fw-semibold);
    color: var(--clr-navy);
    text-align: left;
}
.acc-ico { font-size: 1.6rem; line-height: 1; color: var(--clr-accent); transition: transform 0.3s ease; flex: none; }
.acc-item.open .acc-ico { transform: rotate(45deg); }
.acc-body { overflow: hidden; height: 0; transition: height 0.32s ease; }
.acc-body p { padding: 0 0 var(--sp-3); color: var(--clr-text-muted); line-height: 1.6; max-width: 60ch; }

/* === 19. SCROLLSPY KAYAN-PILL === */
.spy { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-5); align-items: start; }
.spy-nav {
    position: sticky;
    top: calc(var(--header-h) + 64px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    background: var(--clr-bg-tint);
}
.spy-pill {
    position: absolute;
    left: 6px; top: 6px;
    width: calc(100% - 12px);
    height: 40px;
    background: var(--clr-navy);
    border-radius: 8px;
    transition: transform 0.32s cubic-bezier(.4,.1,.2,1);
    z-index: 0;
}
.spy-link {
    position: relative;
    z-index: 1;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: var(--fw-semibold);
    color: var(--clr-text-muted);
    transition: color 0.25s ease;
}
.spy-link.active { color: #fff; }
.spy-sec {
    min-height: 64vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--sp-4);
    border-radius: 10px;
    background: linear-gradient(135deg, var(--clr-navy), var(--clr-navy-600));
    color: #fff;
    margin-bottom: var(--sp-3);
}
.spy-sec h3 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: var(--fw-black); }
.spy-sec p { margin-top: var(--sp-2); color: rgba(255,255,255,0.8); max-width: 48ch; line-height: 1.6; }

/* === 12. RESPONSIVE === */
@media (max-width: 720px) {
    .tilt-grid { grid-template-columns: 1fr 1fr; }
    .stack-card { height: 56vh; padding: var(--sp-4); }
    .v-header .v-eyebrow { display: none; }
    .counter-row { grid-template-columns: 1fr 1fr; }
    .spy { grid-template-columns: 1fr; gap: var(--sp-3); }
    .spy-nav { position: sticky; top: var(--header-h); flex-direction: row; }
    .spy-pill { width: 33.33%; height: calc(100% - 12px); }
    .spy-link { flex: 1; justify-content: center; }
}

/* === 13. REDUCED MOTION — hareketi sustur, içerik dursun === */
@media (prefers-reduced-motion: reduce) {
    .v-scrollhint span { animation: none; }
    .animated-text span { opacity: 1 !important; transform: none !important; color: var(--clr-navy) !important; }
    .stack-card { position: static; height: auto; transform: none !important; filter: none !important; opacity: 1 !important; }
    .pin-track { flex-wrap: wrap; transform: none !important; width: 100%; }
    .magnet-stage { cursor: auto; }
    .magnet-btn { position: static; transform: none; pointer-events: auto; }
    /* Sayaç hedef değerde dursun (JS reduced-motion'da anında set eder) */
    .counter-row .count-on { }
    /* Scrollspy: pill geçişi anında, içerik akar */
    .spy-pill { transition: none; }
    .acc-body { transition: none; }
}
