/* ==========================================================================
   Dyt. Dilruba Sağlam – Özel stiller (Tailwind'i tamamlar)
   ========================================================================== */

:root {
    --forest-50: #EEF5F0;
    --forest-100: #D5E8DC;
    --forest-200: #AED2BC;
    --forest-500: #357A57;
    --forest-600: #276246;
    --forest-700: #1F4E39;
    --forest-800: #1A3F2F;
    --forest-900: #122C21;
    --peach-300: #FBA788;
    --peach-400: #F4865F;
    --peach-500: #E8693F;
    --lime-300: #D5E78A;
    --lime-400: #C8E26B;
    --lime-500: #A9C845;
    --cream: #FBF7F0;
    --cream-200: #EFE4D2;
    --ink: #17231D;
    --ease-out: cubic-bezier(.2, .8, .2, 1);
}

html { -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: clip; }
body { text-rendering: optimizeLegibility; }
img { user-select: none; }

/* Fraunces için optik boyut ayarı */
.font-display { font-variation-settings: "SOFT" 50, "WONK" 0; font-optical-sizing: auto; }
.heading-em em { font-style: italic; font-weight: 300; color: var(--peach-500); }

/* ---------- Eyebrow (bölüm üst başlığı) ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    color: var(--forest-600);
}
.eyebrow::before {
    content: ""; width: 1.75rem; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--peach-400), var(--lime-400));
}

/* ---------- Butonlar ---------- */
.btn-primary, .btn-ghost, .btn-dark, .btn-lime {
    position: relative; display: inline-flex; align-items: center; gap: .6rem;
    padding: 1rem 1.6rem; border-radius: 999px; font-weight: 700; line-height: 1;
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s, color .25s;
    isolation: isolate; overflow: hidden; white-space: nowrap;
}
.btn-primary { background: var(--peach-500); color: #fff; box-shadow: 0 14px 30px -10px rgba(232, 105, 63, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(232, 105, 63, .7); }
.btn-dark { background: var(--forest-800); color: #fff; box-shadow: 0 14px 30px -12px rgba(18, 44, 33, .55); }
.btn-dark:hover { transform: translateY(-2px); background: var(--forest-700); }
.btn-lime { background: var(--lime-400); color: var(--forest-900); box-shadow: 0 14px 30px -12px rgba(200, 226, 107, .6); }
.btn-lime:hover { transform: translateY(-2px); background: var(--lime-300); }
.btn-ghost { background: #fff; color: var(--forest-800); box-shadow: inset 0 0 0 1.5px rgba(31, 78, 57, .12), 0 8px 20px -12px rgba(23, 35, 29, .2); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(31, 78, 57, .3), 0 14px 30px -12px rgba(23, 35, 29, .25); }

/* Parlama efekti */
.btn-primary::after, .btn-dark::after, .btn-lime::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn-primary:hover::after, .btn-dark:hover::after, .btn-lime:hover::after { transform: translateX(120%); }
button:disabled { opacity: .7; cursor: wait; }

/* ---------- Header ---------- */
#site-header { background: transparent; }
#site-header.is-scrolled {
    background: rgba(251, 247, 240, .82);
    backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
    box-shadow: 0 1px 0 rgba(23, 35, 29, .06), 0 10px 30px -20px rgba(23, 35, 29, .25);
}
#site-header.is-scrolled .header-inner { height: 4.25rem; }

.nav-link {
    position: relative; padding: .6rem .8rem; border-radius: 999px;
    font-size: .925rem; font-weight: 600; color: #3a4a41; transition: color .2s, background-color .2s;
}
.nav-link:hover { color: var(--forest-800); background: rgba(255, 255, 255, .7); }
.nav-link.is-active { color: var(--forest-800); }
.nav-link.is-active::after {
    content: ""; position: absolute; left: 50%; bottom: .2rem; width: 5px; height: 5px; border-radius: 50%;
    background: var(--peach-500); transform: translateX(-50%);
}

/* Mobil menü */
#mobile-menu.is-open { visibility: visible; }
#mobile-menu.is-open [data-menu-backdrop] { opacity: 1; }
#mobile-menu.is-open [data-menu-panel] { transform: translateX(0); }

/* ---------- Footer ---------- */
.footer-title { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 1.25rem; }
.footer-link { color: rgba(213, 232, 220, .75); transition: color .2s, padding .3s var(--ease-out); }
.footer-link:hover { color: var(--lime-300); padding-left: .35rem; }
.footer-ico { display: grid; place-items: center; flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: .9rem; background: rgba(255, 255, 255, .06); color: var(--lime-300); }

/* ---------- Kart & çipler ---------- */
.chip-glass {
    display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 999px;
    font-size: .75rem; font-weight: 600; color: #fff;
    background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}
.chip {
    display: inline-flex; align-items: center; gap: .4rem; padding: .65rem 1.1rem; border-radius: 999px;
    font-size: .9rem; font-weight: 600; background: #fff; color: var(--forest-800);
    box-shadow: inset 0 0 0 1.5px rgba(31, 78, 57, .1); transition: all .25s;
}
.chip:hover { box-shadow: inset 0 0 0 1.5px rgba(31, 78, 57, .3); }
.chip.is-active { background: var(--forest-800); color: #fff; box-shadow: 0 10px 24px -10px rgba(18, 44, 33, .6); }
.chip .count { font-size: .7rem; padding: .1rem .45rem; border-radius: 999px; background: var(--cream-200); color: var(--forest-700); }
.chip.is-active .count { background: var(--lime-400); color: var(--forest-900); }

.carousel-btn {
    display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 999px;
    background: #fff; color: var(--forest-800); box-shadow: 0 10px 25px -12px rgba(23, 35, 29, .3);
    transition: transform .3s var(--ease-out);
}
.carousel-btn:hover { transform: scale(1.08); }
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- Desenler ---------- */
.bg-dots { background-image: radial-gradient(rgba(31, 78, 57, .14) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.bg-grid {
    background-image: linear-gradient(rgba(31, 78, 57, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 78, 57, .06) 1px, transparent 1px);
    background-size: 56px 56px;
}
.bg-grid-light {
    background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 48px 48px;
}

/* ---------- Form ---------- */
.form-label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: .45rem; letter-spacing: .01em; }
.form-input {
    display: block; width: 100%; border: 0; border-radius: 1.1rem; padding: .95rem 1.1rem; font-size: .975rem;
    box-shadow: none; outline: none; --tw-ring-inset: inset; transition: box-shadow .2s, background-color .2s;
}
.form-input { --tw-ring-offset-shadow: 0 0 #0000; box-shadow: inset 0 0 0 1.5px var(--tw-ring-color, #EFE4D2); }
.form-input:focus { box-shadow: inset 0 0 0 2px var(--tw-ring-color, var(--forest-500)); }
.form-error { display: block; margin-top: .4rem; font-size: .8rem; font-weight: 600; color: var(--peach-500); }

/* ---------- SSS ---------- */
.faq summary::-webkit-details-marker { display: none; }
.faq[open] .faq-body { animation: faqIn .45s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Animasyonlar ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatSlow { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes blob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-30px, 25px) scale(.95); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes marquee { to { transform: translateX(calc(-100% - 2.5rem)); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { from { stroke-dashoffset: 97.4; } }

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-slow { animation: floatSlow 8s ease-in-out infinite; }
.animate-blob { animation: blob 18s ease-in-out infinite; }
.animate-spin-slow { animation: spin 60s linear infinite; }
.animate-pop { animation: pop .6s var(--ease-out) both; }

.marquee-track { animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }

.hero-in { opacity: 0; animation: heroIn 1s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
.animate-float.hero-in, .animate-float-slow.hero-in { animation: heroIn 1s var(--ease-out) var(--d, 0ms) forwards, float 6s ease-in-out calc(var(--d, 0ms) + 1s) infinite; }
.draw-line { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s var(--ease-out) .9s forwards; }
.ring-anim { animation: ring 2s var(--ease-out) 1s both; }

.signature { transform: rotate(-4deg); display: inline-block; font-weight: 300; }

/* Kaydırınca beliren öğeler */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- 3D Hero ---------- */
#hero3d canvas { opacity: 0; transition: opacity 1s ease; touch-action: pan-y; }
#hero3d.is-ready canvas { opacity: 1; }
#hero3d.is-ready .hero3d-fallback { opacity: 0; transform: scale(.9); }
.hero3d-fallback { transition: opacity .8s ease, transform .8s ease; }

/* ---------- Yazı içeriği (blog) ---------- */
.article { color: #33423a; font-size: 1.125rem; line-height: 1.85; }
.article > * + * { margin-top: 1.25em; }
.article h2 { font-family: Fraunces, Georgia, serif; font-size: 2rem; line-height: 1.15; color: var(--forest-900); margin-top: 2em; }
.article h3 { font-size: 1.25rem; font-weight: 700; color: var(--forest-800); margin-top: 1.75em; }
.article ul, .article ol { padding-left: 0; list-style: none; }
.article ul li, .article ol li { position: relative; padding-left: 2.1rem; margin-top: .6em; }
.article ul li::before {
    content: ""; position: absolute; left: .35rem; top: .55em; width: .95rem; height: .95rem; border-radius: 50%;
    background: var(--lime-400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23122C21' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.article ol { counter-reset: step; }
.article ol li { counter-increment: step; }
.article ol li::before {
    content: counter(step); position: absolute; left: 0; top: .15em; width: 1.6rem; height: 1.6rem; border-radius: 50%;
    display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--forest-700); color: var(--lime-300);
}
.article blockquote {
    position: relative; margin: 2.25em 0; padding: 1.75rem 2rem 1.75rem 2.25rem; border-radius: 1.75rem;
    background: linear-gradient(135deg, #F1F7D6, #FFF5F0); font-family: Fraunces, Georgia, serif; font-size: 1.4rem;
    line-height: 1.45; color: var(--forest-900); font-style: italic;
}
.article blockquote::before { content: "“"; position: absolute; top: -.6rem; left: 1rem; font-size: 5rem; line-height: 1; color: var(--peach-400); }
.article strong { color: var(--forest-900); }
.article a { color: var(--peach-500); text-decoration: underline; text-underline-offset: 3px; }

/* Okuma ilerleme çubuğu */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 70; background: linear-gradient(90deg, var(--lime-400), var(--peach-400)); }

/* Tarif adımları işaretleme */
.ingredient input:checked + span { text-decoration: line-through; color: #9aa59f; }

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    [data-reveal], .hero-in { opacity: 1 !important; transform: none !important; filter: none !important; }
}
