/* ============================================================================
   Limon Atelier — Özel efektler ve Tailwind üstü düzenlemeler
   Tailwind CDN üzerinden yüklenir; burada yalnızca CDN'in karşılamadığı
   dokular, animasyonlar ve durum sınıfları tanımlıdır.
   ========================================================================== */

:root {
    --surface:   #FCF9F3;
    --panel:     #F6F3ED;
    --primary:   #1A1816;
    --accent:    #D4AF37;
    --champagne: #C5A880;
    --muted:     #786E65;
    --ink:       #675E55;
}

/* ----------------------------------------------------------------------------
   Temel tipografi düzeltmeleri
   -------------------------------------------------------------------------- */

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 6rem; /* sabit header için anchor boşluğu */
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Playfair Display'in rakamlarını hizala */
.font-display {
    font-variant-numeric: lining-nums;
}

/* ----------------------------------------------------------------------------
   LED ekran ızgarası ve scanline dokusu
   -------------------------------------------------------------------------- */

.led-grid {
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
    background-size: 4px 4px;
}

.led-scanline {
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0px,
        rgba(0, 0, 0, 0.5) 1px,
        transparent 1px,
        transparent 3px
    );
    animation: scanline-drift 9s linear infinite;
}

@keyframes scanline-drift {
    from { background-position: 0 0; }
    to   { background-position: 0 300px; }
}

/* Hero kenar kararması — metin kontrastını yükseltir */
.hero-vignette {
    background: radial-gradient(
        ellipse at 32% 48%,
        transparent 30%,
        rgba(26, 24, 22, 0.35) 100%
    );
}

/* ----------------------------------------------------------------------------
   Kaydırma çubuğu
   -------------------------------------------------------------------------- */

.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-none::-webkit-scrollbar {
    display: none;
}

/* Sayfa kaydırma çubuğu — krem/şampanya */
@media (min-width: 1024px) {
    ::-webkit-scrollbar        { width: 10px; }
    ::-webkit-scrollbar-track  { background: var(--panel); }
    ::-webkit-scrollbar-thumb  { background: var(--champagne); border-radius: 9999px; border: 3px solid var(--panel); }
    ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
}

/* ----------------------------------------------------------------------------
   Navigasyon aktif durumu
   -------------------------------------------------------------------------- */

.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    height: 1px;
    width: 0;
    background: var(--champagne);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: calc(100% - 1.75rem);
}

.nav-link.is-active {
    color: var(--primary);
}

/* Header kaydırma durumu */
[data-header].is-scrolled {
    border-bottom-color: rgba(26, 24, 22, 0.07);
    background-color: rgba(252, 249, 243, 0.94);
    box-shadow: 0 10px 40px -28px rgba(26, 24, 22, 0.4);
}

/* Mobil menü açık */
[data-menu-panel].is-open {
    visibility: visible;
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
}

[data-menu-toggle][aria-expanded="true"] [data-menu-icon] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

[data-menu-toggle][aria-expanded="true"] [data-menu-icon] span:nth-child(2) {
    opacity: 0;
    transform: translateX(6px);
}

[data-menu-toggle][aria-expanded="true"] [data-menu-icon] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ----------------------------------------------------------------------------
   Portfolyo filtresi
   -------------------------------------------------------------------------- */

[data-gallery-item] {
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-gallery-item].is-hidden {
    display: none;
}

[data-gallery-item].is-entering {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
}

/* ----------------------------------------------------------------------------
   Görünürlük animasyonu (IntersectionObserver ile tetiklenir)
   -------------------------------------------------------------------------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Hero içeriği slayt değişiminde yukarıdan gelir */
[data-hero-slide] [data-hero-anim] {
    opacity: 0;
    transform: translateY(22px);
}

[data-hero-slide].is-active [data-hero-anim] {
    animation: hero-rise 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

[data-hero-slide].is-active [data-hero-anim]:nth-child(1) { animation-delay: 0.15s; }
[data-hero-slide].is-active [data-hero-anim]:nth-child(2) { animation-delay: 0.28s; }
[data-hero-slide].is-active [data-hero-anim]:nth-child(3) { animation-delay: 0.41s; }
[data-hero-slide].is-active [data-hero-anim]:nth-child(4) { animation-delay: 0.54s; }

@keyframes hero-rise {
    to { opacity: 1; transform: none; }
}

/* Aktif slaytta yavaş zoom (Ken Burns) */
[data-hero-slide].is-active [data-hero-image] {
    transform: scale(1.12);
}

/* ----------------------------------------------------------------------------
   Kaydırma ipucu ve oynatma halkası animasyonları
   -------------------------------------------------------------------------- */

@keyframes scroll-hint {
    0%, 100% { transform: translateY(0);    opacity: 1; }
    50%      { transform: translateY(14px); opacity: 0.3; }
}

.animate-scroll-hint {
    animation: scroll-hint 2.2s ease-in-out infinite;
}

@keyframes play-ring {
    0%   { transform: scale(1);    opacity: 0.7; }
    100% { transform: scale(1.65); opacity: 0; }
}

.animate-play-ring {
    animation: play-ring 2.4s ease-out infinite;
}

/* Soundtrack dalga boyu */
@keyframes waveform {
    0%, 100% { transform: scaleY(0.45); }
    50%      { transform: scaleY(1); }
}

.animate-waveform {
    animation: waveform 1.1s ease-in-out infinite;
    transform-origin: center;
}

/* ----------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

/* Tarih alanındaki yerleşik takvim ikonunu gizle — kendi ikonumuz var */
input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    width: 2.75rem;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

input[type="date"] {
    position: relative;
}

/* Safari'de boş tarih alanı hizası */
input[type="date"]::-webkit-date-and-time-value {
    text-align: left;
}

/* Otomatik doldurma arkaplanını krem tut */
input:-webkit-autofill,
input:-webkit-autofill:focus,
textarea:-webkit-autofill {
    -webkit-text-fill-color: var(--primary);
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset;
    transition: background-color 9999s ease-out;
}

/* Gönderim sırasında buton durumu */
[data-booking-form].is-submitting button[type="submit"] {
    pointer-events: none;
    opacity: 0.6;
}

/* ----------------------------------------------------------------------------
   Erişilebilirlik ve klavye odağı
   -------------------------------------------------------------------------- */

:focus-visible {
    outline: 2px solid var(--champagne);
    outline-offset: 3px;
}

/* Hareketi azalt tercihi */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal],
    [data-hero-slide] [data-hero-anim] {
        opacity: 1;
        transform: none;
    }

    .led-scanline {
        animation: none;
    }
}

/* ----------------------------------------------------------------------------
   Baskı
   -------------------------------------------------------------------------- */

@media print {
    [data-header],
    aside[aria-label="Hızlı iletişim"],
    nav[aria-label="Hızlı iletişim (mobil)"],
    footer {
        display: none !important;
    }

    body {
        background: #FFFFFF;
    }
}

/* ----------------------------------------------------------------------------
   Onay kutusu tiki
   Tailwind'in peer-checked: varyantı yalnızca peer'in KARDEŞİNE uygulanır;
   tik ikonu kardeşin içinde olduğu için burada açıkça hedefliyoruz.
   -------------------------------------------------------------------------- */

input[type="checkbox"].peer + span > svg {
    opacity: 0;
    transition: opacity 0.2s ease;
}

input[type="checkbox"].peer:checked + span > svg {
    opacity: 1;
}

/* ----------------------------------------------------------------------------
   Coverflow vitrini
   -------------------------------------------------------------------------- */

[data-flow-card] {
    /* Konum ve dönüşü JS hesaplar; burada yalnızca geçiş eğrisi tanımlı. */
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
    transition:
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity   700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Sürükleme sırasında geçişi kapat — parmağı birebir takip etsin */
[data-flow].is-dragging [data-flow-card] {
    transition: none;
}

[data-flow-stage] {
    cursor: grab;
}

[data-flow].is-dragging [data-flow-stage] {
    cursor: grabbing;
}

/* Yalnızca ortadaki kart tıklanabilir görünsün */
[data-flow-card][data-active="false"] button {
    cursor: pointer;
}

[data-flow-card][data-active="true"] button {
    cursor: default;
}

/* Başlık değişiminde yumuşak giriş */
[data-flow-title].is-swapping,
[data-flow-venue].is-swapping,
[data-flow-stats].is-swapping {
    opacity: 0;
    transform: translateY(8px);
}

[data-flow-stats] {
    transition: opacity 400ms ease, transform 400ms ease;
}

@media (prefers-reduced-motion: reduce) {
    [data-flow-card] {
        transition-duration: 1ms;
    }
}

/* ----------------------------------------------------------------------------
   Blog yazı tipografisi
   -------------------------------------------------------------------------- */

.prose-limon { color: #4F473F; font-size: 16.5px; line-height: 1.78; }

.prose-limon > * + * { margin-top: 1.15em; }

.prose-limon h2 {
    margin-top: 2.1em;
    margin-bottom: .55em;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 27px;
    line-height: 1.26;
    color: #1A1816;
}

.prose-limon h3 {
    margin-top: 1.7em;
    margin-bottom: .45em;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 21px;
    line-height: 1.32;
    color: #1A1816;
}

.prose-limon p { margin-bottom: 0; }

.prose-limon a {
    color: #1A1816;
    text-decoration: underline;
    text-decoration-color: #C5A880;
    text-underline-offset: 4px;
    transition: color .2s ease;
}
.prose-limon a:hover { color: #8A6A1F; }

.prose-limon ul,
.prose-limon ol { padding-left: 1.3em; }
.prose-limon ul { list-style: disc; }
.prose-limon ol { list-style: decimal; }
.prose-limon li { margin-top: .5em; padding-left: .25em; }
.prose-limon li::marker { color: #C5A880; }

.prose-limon strong { color: #1A1816; font-weight: 600; }

.prose-limon blockquote {
    margin: 1.8em 0;
    padding: 1.1em 1.4em;
    border-left: 2px solid #C5A880;
    background: #F6F3ED;
    border-radius: 0 14px 14px 0;
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 18px;
    color: #1A1816;
}

.prose-limon img { margin: 1.8em 0; border-radius: 16px; width: 100%; height: auto; }

.prose-limon figure figcaption {
    margin-top: .7em;
    font-size: 12.5px;
    color: #8C7E72;
    text-align: center;
}

.prose-limon table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 14.5px; }
.prose-limon th, .prose-limon td { padding: 11px 14px; border-bottom: 1px solid rgba(26,24,22,.08); text-align: left; }
.prose-limon th { font-weight: 600; color: #1A1816; background: #F6F3ED; }

.prose-limon hr { margin: 2.4em 0; border: 0; border-top: 1px solid rgba(26,24,22,.1); }

@media (max-width: 640px) {
    .prose-limon    { font-size: 16px; }
    .prose-limon h2 { font-size: 23px; }
    .prose-limon h3 { font-size: 19px; }
}

/* ----------------------------------------------------------------------------
   Hikaye daireleri — Instagram tarzı gradyan halka
   -------------------------------------------------------------------------- */

.story-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    width: 92px;
    flex-shrink: 0;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.story-ring {
    position: relative;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    padding: 3px;
    border-radius: 9999px;
    background: conic-gradient(
        from 210deg,
        #FEDA75, #FA7E1E, #D62976, #962FBF, #4F5BD5, #962FBF, #D62976, #FEDA75
    );
    box-shadow: 0 5px 14px rgba(214, 41, 118, .18);
    transition: transform .3s ease, box-shadow .3s ease;
}

.story-btn:hover .story-ring,
.story-btn:focus-visible .story-ring {
    transform: scale(1.06);
    box-shadow: 0 8px 22px rgba(214, 41, 118, .3);
}

.story-btn:focus-visible { outline: none; }
.story-btn:focus-visible .story-ring { box-shadow: 0 0 0 3px rgba(214, 41, 118, .4); }

.story-ring-inner {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 3px;
    border-radius: 9999px;
    background: var(--surface);
    overflow: hidden;
}

.story-cover {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    object-fit: cover;
}

.story-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background: var(--panel);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 24px;
    color: var(--champagne);
}

.story-name {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.3;
    color: var(--ink);
}

@media (min-width: 1024px) {
    .story-btn       { width: 108px; gap: 10px; }
    .story-ring      { width: 96px; height: 96px; padding: 3.5px; }
    .story-fallback  { font-size: 28px; }
    .story-name      { font-size: 13px; }
}

/* Hikaye bölümü varken bir sonraki bölümün üst boşluğunu kısalt —
   iki büyük boşluk üst üste binince ekranda kocaman bir delik kalıyordu. */
#hikayelerimiz ~ #hikayeler { padding-top: 3rem; }

@media (min-width: 1024px) {
    #hikayelerimiz ~ #hikayeler { padding-top: 4.5rem; }
}

/* ----------------------------------------------------------------------------
   Hukuki belgeler (/kvkk, /acik-riza, /gizlilik …)
   -------------------------------------------------------------------------- */

.legal-doc {
    max-width: 72ch;
    font-size: 15px;
    line-height: 1.75;
    color: var(--ink);
}

.legal-lead {
    margin-top: 20px;
    padding-left: 18px;
    border-left: 2px solid var(--champagne);
    font-size: 16px;
    line-height: 1.7;
    color: var(--primary);
}

/* İçindekiler */
.legal-toc {
    margin-top: 36px;
    padding: 22px 24px;
    border-radius: 16px;
    background: var(--panel);
}

.legal-toc-title {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .22em;
    color: var(--muted);
}

.legal-toc ol {
    margin-top: 12px;
    padding-left: 18px;
    list-style: decimal;
    font-size: 13.5px;
    line-height: 1.9;
    color: var(--muted);
}

.legal-toc a { color: var(--ink); text-decoration: none; }
.legal-toc a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* Bölümler */
.legal-section { margin-top: 40px; scroll-margin-top: 7rem; }

.legal-section h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
    line-height: 1.3;
    color: var(--primary);
}

.legal-section p  { margin-top: 14px; }
.legal-section ul,
.legal-section ol { margin-top: 14px; padding-left: 22px; }
.legal-section ul { list-style: disc; }
.legal-section ol { list-style: decimal; }
.legal-section li { margin-top: 7px; padding-left: 4px; }
.legal-section strong { color: var(--primary); font-weight: 600; }

.legal-section a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--champagne);
    text-underline-offset: 3px;
}

/* Veri sorumlusu künyesi */
.legal-company {
    margin-top: 18px;
    border-top: 1px solid rgba(26, 24, 22, .1);
}

.legal-company > div {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(26, 24, 22, .08);
}

.legal-company dt {
    flex: 0 0 180px;
    font-size: 12.5px;
    color: var(--muted);
}

.legal-company dd { flex: 1 1 220px; font-size: 14px; color: var(--primary); }

/* Tablo */
.legal-table {
    width: 100%;
    margin-top: 18px;
    border-collapse: collapse;
    font-size: 13.5px;
}

.legal-table th,
.legal-table td {
    padding: 11px 12px;
    border: 1px solid rgba(26, 24, 22, .12);
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: var(--panel);
    font-weight: 600;
    color: var(--primary);
}

/* Yazdırılabilir beyan / başvuru formu */
.legal-form {
    margin-top: 22px;
    padding: 26px;
    border: 1px solid rgba(26, 24, 22, .16);
    border-radius: 16px;
    background: #fff;
}

.legal-form-title {
    margin: 0 0 14px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    color: var(--primary);
}

.legal-form p { margin-top: 12px; }

.legal-check { margin-top: 14px; padding-left: 0; list-style: none; }
.legal-check li { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; padding-left: 0; }

.legal-box {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-top: 4px;
    border: 1.5px solid var(--primary);
    border-radius: 3px;
}

.legal-note { font-size: 13px; color: var(--muted); }

.legal-sign { margin-top: 18px; }
.legal-sign p { margin-top: 14px; font-size: 14px; }

.legal-line {
    display: inline-block;
    min-width: 230px;
    border-bottom: 1px solid rgba(26, 24, 22, .35);
}

.legal-line-sm { min-width: 130px; }

.legal-line-block {
    height: 26px;
    border-bottom: 1px solid rgba(26, 24, 22, .25);
}

.legal-disclaimer {
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid rgba(26, 24, 22, .1);
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--muted);
}

.legal-disclaimer a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Yazdırma: ekran süslerini at, metni kağıda sığdır */
@media print {
    .legal-doc { max-width: none; font-size: 11.5pt; color: #000; }
    .legal-doc a { color: #000; text-decoration: none; }
    .legal-section { margin-top: 22px; break-inside: avoid; }
    .legal-section h2 { font-size: 14pt; }
    .legal-form { border-color: #000; break-inside: avoid; }
    .legal-box { border-color: #000; }
    .legal-lead { border-left-color: #000; }
    footer, .legal-toc, .legal-disclaimer { display: none !important; }
}
