/* izmithurdaci.tr — özel stiller (Tailwind yardımcı sınıflarına ek) */
:root {
  --cream: #FAF9F5;
  --mint: #F2F7F4;
  --ink: #052E16;
  --leaf-800: #166534;
  --leaf-700: #15803D;
  --leaf-500: #22C55E;
  --earth-600: #D97706;
  --header-h: 84px;
  color-scheme: light;
}
html { scroll-padding-top: var(--header-h); }
body { background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
[x-cloak] { display: none !important; }

/* ---------- Scroll giriş animasyonları ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js .reveal.reveal-left  { transform: translateX(-32px); }
.js .reveal.reveal-right { transform: translateX(32px); }
.js .reveal.reveal-zoom  { transform: scale(.94); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Kartlar ---------- */
.eco-card { position: relative; background: #fff; border: 1px solid rgba(22,101,52,.10); border-radius: 1rem; box-shadow: 0 1px 2px rgba(5,46,22,.04), 0 8px 24px -10px rgba(5,46,22,.10); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; isolation: isolate; }
.eco-card:hover { transform: translateY(-6px); border-color: rgba(34,197,94,.45); box-shadow: 0 0 0 1px rgba(34,197,94,.25), 0 24px 48px -20px rgba(21,128,61,.40); }
.eco-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(34,197,94,.10), transparent 40%); opacity: 0; transition: opacity .35s; z-index: -1; }
.eco-card:hover::after { opacity: 1; }

.shine { position: relative; overflow: hidden; }
.shine::before { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); transition: left .8s ease; z-index: 2; pointer-events: none; }
.group:hover .shine::before, .shine:hover::before { left: 140%; }

/* ---------- Arka plan desenleri ---------- */
.bg-leaf-pattern { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 14c10 6 14 16 10 26-10-2-16-10-10-26z' fill='none' stroke='%2315803D' stroke-opacity='.08' stroke-width='1.5'/%3E%3Ccircle cx='12' cy='64' r='2' fill='%2315803D' fill-opacity='.08'/%3E%3C/svg%3E"); }
.bg-dots { background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1px); background-size: 14px 14px; }
.bg-grid-soft { background-image: linear-gradient(rgba(22,101,52,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(22,101,52,.06) 1px, transparent 1px); background-size: 44px 44px; }

/* ---------- Hero blob ---------- */
@keyframes blob { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-40px) scale(1.08); } 66% { transform: translate(-20px,20px) scale(.95); } }
.blob { animation: blob 16s ease-in-out infinite; filter: blur(48px); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.floaty { animation: floaty 6s ease-in-out infinite; }

/* ---------- Fiyat şeridi ---------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Canlı nokta ---------- */
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.live-dot { animation: live 1.8s infinite; }

/* ---------- Akordiyon ---------- */
.acc-panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s cubic-bezier(.2,.7,.2,1); }
.js .acc-panel:not(.open) { grid-template-rows: 0fr; }
.acc-panel > div { overflow: hidden; }

/* ---------- Sabit butonlar ---------- */
@keyframes fab-ping { 0% { transform: scale(1); opacity: .55; } 80%,100% { transform: scale(1.35); opacity: 0; } }
.fab-ring { position: absolute; inset: 0; border-radius: inherit; background: var(--ring); z-index: -1; animation: fab-ping 2.2s cubic-bezier(0,0,.2,1) infinite; }
.fab-ring.delay { animation-delay: 1.1s; }
.fab-btn { position: relative; isolation: isolate; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s, filter .25s; }
.fab-btn:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.06); }
.fab-btn:active { transform: scale(.97); }
.fab-tip { pointer-events: none; opacity: 0; transition: opacity .2s, transform .25s cubic-bezier(.2,.7,.2,1); }
.fab-tip.to-left  { transform: translate(8px, -50%); }
.fab-tip.to-right { transform: translate(-8px, -50%); }
.group:hover .fab-tip, .group:focus-visible .fab-tip { opacity: 1; transform: translate(0, -50%); }
.safe-bottom { padding-bottom: max(.5rem, env(safe-area-inset-bottom)); }

/* ---------- Kaydırma çubuğu gizleme (yorumlar) ---------- */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- Form ---------- */
.eco-input { width: 100%; border-radius: .75rem; border: 1px solid rgba(22,101,52,.18); background: #fff; padding: .7rem .9rem; font-size: .95rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.eco-input:focus { outline: none; border-color: var(--leaf-500); box-shadow: 0 0 0 4px rgba(34,197,94,.15); }
.eco-input.invalid { border-color: #DC2626; box-shadow: 0 0 0 4px rgba(220,38,38,.10); }

/* ---------- Toggle switch ---------- */
.switch { position: relative; width: 44px; height: 24px; border-radius: 999px; background: #CBD5E1; transition: background .2s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.switch.on { background: var(--leaf-700); }
.switch.on::after { transform: translateX(20px); }

:focus-visible { outline: 3px solid rgba(34,197,94,.55); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .blob, .floaty, .marquee-track, .fab-ring, .live-dot { animation: none !important; }
  html { scroll-behavior: auto; }
}
/* ---------- İçerik (blog, sayfa, hizmet) tipografisi ---------- */
.prose-eco { color: rgba(5,46,22,.82); font-size: 1.0625rem; line-height: 1.8; }
.prose-eco > * + * { margin-top: 1.1em; }
.prose-eco h2 { font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; font-weight: 800; font-size: 1.6rem; line-height: 1.25; color: var(--ink); margin-top: 1.8em; }
.prose-eco h3 { font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--ink); margin-top: 1.5em; }
.prose-eco a { color: var(--leaf-700); text-decoration: underline; text-decoration-color: rgba(34,197,94,.5); text-underline-offset: 3px; }
.prose-eco ul, .prose-eco ol { padding-left: 1.3em; }
.prose-eco ul { list-style: disc; }
.prose-eco ol { list-style: decimal; }
.prose-eco li + li { margin-top: .35em; }
.prose-eco li::marker { color: var(--leaf-700); }
.prose-eco blockquote { border-left: 4px solid var(--leaf-500); background: var(--mint); padding: 1rem 1.25rem; border-radius: 0 1rem 1rem 0; }
.prose-eco img { border-radius: 1rem; height: auto; }
.prose-eco table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose-eco th, .prose-eco td { border: 1px solid rgba(22,101,52,.15); padding: .6rem .8rem; text-align: left; }
.prose-eco th { background: var(--mint); }
.prose-eco strong { color: var(--ink); }

/* Fiyat mini grafik */
.spark path { fill: none; stroke: var(--leaf-700); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .area { fill: rgba(34,197,94,.12); stroke: none; }

.tabular { font-variant-numeric: tabular-nums; }

/* ---------- Form yardımcıları ---------- */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.line-clamp-1, .line-clamp-2, .line-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-1 { -webkit-line-clamp: 1; } .line-clamp-2 { -webkit-line-clamp: 2; } .line-clamp-3 { -webkit-line-clamp: 3; }

/* ---------- Görsel yer tutucu (görsel yoksa) ---------- */
.img-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sayfalama ---------- */
.pager a, .pager span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 14px; font-weight: 600; }
