/* Sanal Tacir - ozel stiller (Tailwind CDN ustune kucuk eklemeler) */

:root {
    --brand: #3b82f6;
}

/* Site genisligi — header ile ayni hizada (max-w-7xl + px-4 sm:px-6 lg:px-8) */
.site-container {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) {
    .site-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .site-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

html {
    scroll-behavior: smooth;
    background-color: #f8fafc;
}
/* Mobilde istenmeyen yatay kaymayi engelle.
   Not: "clip" kullaniyoruz; "hidden" yeni bir kaydirma baglami olusturup
   header'daki position: sticky davranisini bozuyor. */
html, body {
    overflow-x: clip;
}

/* hidden ozniteligi her zaman gizlesin (inline-flex gibi siniflari ezsin) */
[hidden] {
    display: none !important;
}

/* Navbar — tum kontroller ayni yukseklikte hizalanir */
.site-nav-desktop > ul {
    display: flex;
    align-items: center;
}
.site-nav-desktop > ul > li {
    display: flex;
    align-items: center;
}

.nav-control,
.nav-link,
.nav-btn-primary,
.nav-btn-secondary,
.account-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 2.25rem;
    box-sizing: border-box;
    white-space: nowrap;
    line-height: 1;
}

.nav-link {
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    transition: color .2s, background-color .2s;
}
.nav-link:hover {
    color: var(--brand);
    background-color: #f8fafc;
}
.nav-link-muted {
    color: #64748b;
}
.nav-link-muted:hover {
    color: #0f172a;
    background-color: #f8fafc;
}
.nav-active {
    color: var(--brand);
    font-weight: 600;
    background-color: rgba(59, 130, 246, .08);
}

.nav-btn-primary {
    padding: 0 1.125rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--brand);
    box-shadow: 0 2px 8px -2px rgba(59, 130, 246, .45);
    transition: background-color .2s, box-shadow .2s;
}
.nav-btn-primary:hover {
    background-color: #2563eb;
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, .5);
}

.nav-btn-secondary {
    padding: 0 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand);
    background-color: #eff6ff;
    transition: background-color .2s, color .2s;
}
.nav-btn-secondary:hover {
    background-color: #dbeafe;
    color: #2563eb;
}
.nav-btn-secondary.nav-active {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.nav-control.lang-toggle,
.nav-control.currency-toggle {
    gap: 0.375rem;
    padding: 0 0.625rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    color: #475569;
    font-size: 0.8125rem;
    transition: border-color .2s, background-color .2s;
}
.nav-control.lang-toggle:hover,
.nav-control.currency-toggle:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.nav-divider {
    width: 1px;
    height: 1.25rem;
    margin-inline: 0.375rem;
    background-color: #e2e8f0;
    flex-shrink: 0;
    align-self: center;
}

/* Sag navbar aksiyonlari — tutarli bosluk ve hizalama */
.nav-actions {
    gap: 0.375rem;
    flex-shrink: 0;
}
.nav-actions > li {
    display: flex;
    align-items: center;
}

/* ============================================================
   Bolum gecisleri — anasayfa bolumleri arasinda yumusak harman
   Hedef: sert dikdortgen renk bloklari yerine kenarlardan
   eriyen, birbirine akan gecisler.
   ============================================================ */

/* Sektorler bandi: ust/alt kenarlardan saydamlasarak hero arka
   planina ve fiyatlandirma bolumune dikissiz baglanir. */
.section-band {
    position: relative;
    background-image: linear-gradient(180deg,
        rgba(238, 242, 248, 0) 0%,
        rgba(238, 242, 248, .9) 16%,
        rgba(238, 242, 248, .9) 84%,
        rgba(238, 242, 248, 0) 100%);
}

/* Care bolumu — ust alandan yumusak gorsel ayrim (sert kenar yok) */
.care-section {
    position: relative;
    background-color: #fff;
    /* Ust kenardan (govde zemini ile ayni ton) beyaza dikissiz, uzun gecis */
    background-image: linear-gradient(180deg, #f8fafc 0%, #ffffff 260px);
}

.care-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--brand);
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

/* Ana sayfa CTA — care bolumu ile ayni beyaz zemin */
.home-cta {
    background-color: #fff;
}
/* CTA, ust bolum (govde zemini) ile ayni tonda kalsin */
.home-cta--plain {
    background-color: transparent;
}
/* Ust bolum ile dikissiz birlessin diye beyaz care zeminini govde tonuna cevir */
.care-section:has(+ .home-cta--plain) {
    background-image: none;
    background-color: #f8fafc;
}
.home-cta .site-container {
    padding-top: 5rem;
    padding-bottom: 5rem;
}
.care-section:has(+ .home-cta) .site-container {
    padding-bottom: 0;
}

/* Care bolumu kartlari */
.care-cards {
    margin-top: 1.5rem;
    padding: 1.75rem 1.25rem;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
}
@media (min-width: 640px) {
    .care-cards {
        padding: 2rem 1.75rem;
    }
}
@media (min-width: 1024px) {
    .care-cards {
        padding: 2.25rem 2rem;
    }
}

.care-cards-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .care-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}
@media (min-width: 1024px) {
    .care-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.care-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    padding: 1.875rem 1.375rem;
    border-radius: 1.125rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow:
        0 2px 8px -2px rgba(15, 23, 42, .06),
        0 1px 2px rgba(15, 23, 42, .04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.care-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, .35);
    box-shadow:
        0 20px 40px -20px rgba(59, 130, 246, .16),
        0 8px 16px -8px rgba(15, 23, 42, .1);
}
.care-card-head {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    width: 100%;
}
.care-card-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--brand);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .12);
}
.care-card-title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
}
.care-card-desc {
    margin-top: 1rem;
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #64748b;
}

/* Care bolumu — maskot */
.care-mascot {
    animation: careMascotFloat 5s ease-in-out infinite;
}
.care-mascot-svg {
    width: 9rem;
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(59, 130, 246, .18));
}
@media (min-width: 640px) {
    .care-mascot-svg {
        width: 11rem;
    }
}
@media (min-width: 768px) {
    .care-mascot-svg {
        width: 12.5rem;
    }
}
@keyframes careMascotFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* Google siralama guncellemeleri paneli */
.google-updates-header-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .google-updates-header-top {
        flex-direction: row;
        align-items: baseline;
        justify-content: space-between;
        gap: 1rem;
    }
}
.google-updates-table-wrap {
    max-height: 20rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.google-updates-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    box-shadow: 0 1px 0 #f1f5f9;
}
.google-updates-table tbody tr {
    border-top: 1px solid #f1f5f9;
    transition: background-color .15s;
}
.google-updates-table tbody tr:hover {
    background: #f8fafc;
}

.google-updates-footer {
    padding: 0.875rem 1.5rem 1.125rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}
.google-updates-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.625rem;
    background: #dc2626;
    border: none;
}
.google-updates-alert-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .18);
    color: #ffffff;
}
.google-updates-alert-text {
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.6;
    color: #ffffff;
}
.google-updates-source {
    flex-shrink: 0;
    text-align: right;
    padding: 0.5rem 0.9rem;
    border-radius: 0.625rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: color .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.google-updates-source:hover {
    border-color: var(--brand, #2563eb);
    background: #f8fafc;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

/* Hero arka plan deseni */
.hero-bg {
    background-color: #f8fafc;
    background-image:
        radial-gradient(60rem 30rem at 80% -10%, rgba(59,130,246,.12), transparent 60%),
        radial-gradient(40rem 24rem at 0% 10%, rgba(15,23,42,.06), transparent 55%),
        radial-gradient(50rem 28rem at 50% 100%, rgba(59,130,246,.08), transparent 55%);
}

/* Hero tarayici mockup'i - hafif yuzme ve parlama animasyonlari */
.hero-mock {
    animation: heroFloat 6s ease-in-out infinite;
    will-change: transform;
}
.hero-mock-badge {
    animation: heroFloat 6s ease-in-out infinite;
    animation-delay: -3s; /* karta gore zit fazda yuzsun */
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Hero blogu uzerinde yumusak parlama gecisi */
.hero-mock-shine {
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%);
    background-size: 220% 100%;
    background-position: 180% 0;
    animation: heroShine 5.5s ease-in-out infinite;
}
@keyframes heroShine {
    0%        { background-position: 180% 0; }
    55%, 100% { background-position: -80% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-mock,
    .hero-mock-badge,
    .hero-mock-shine {
        animation: none;
    }
}

/* Kart hover hareketi */
.card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .25);
    border-color: var(--brand);
}

/* Giris animasyonu (main.js ile tetiklenir) */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Dil secici bayraklari (yuvarlak) */
.lang-flag {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 9999px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
    flex: none;
    line-height: 1;
}

/* Dropdown acikken oku dondur */
.lang-dropdown.open .lang-caret,
.currency-dropdown.open .lang-caret {
    transform: rotate(180deg);
}

/* Hesabim dropdown — Web Siteni Olustur ile ayni mavi ton */
.account-toggle {
    gap: 0.4375rem;
    padding: 0 0.8125rem 0 0.6875rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background-color: var(--brand);
    box-shadow: 0 2px 8px -2px rgba(59, 130, 246, .45);
    transition: background-color .2s, box-shadow .2s;
}
.account-toggle:hover {
    background-color: #2563eb;
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, .5);
}
.account-dropdown.open .account-toggle {
    background-color: #2563eb;
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, .5);
}
.account-dropdown.open .account-caret {
    transform: rotate(180deg);
}
.account-menu li + li {
    margin-top: 0.125rem;
    padding-top: 0.125rem;
    border-top: 1px solid #f1f5f9;
}
.account-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #334155;
    border-radius: 0.625rem;
    margin-inline: 0.375rem;
    transition: background-color .15s, color .15s;
}
.account-menu-item:hover {
    background-color: #f8fafc;
}
.account-menu-item-active {
    color: var(--brand);
    font-weight: 600;
    background-color: rgba(59, 130, 246, .06);
}
.account-menu-item-danger {
    color: #ea580c;
}
.account-menu-item-danger:hover {
    background-color: #fff7ed;
    color: #c2410c;
}

/* Iletisim sayfasi - bilgi satirlari */
.contact-info-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    border-radius: 0.875rem;
    padding: 0.625rem 0.5rem;
    transition: background-color .15s ease;
}
a.contact-info-row:hover {
    background-color: #f8fafc;
}
.contact-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--brand);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .12);
}
.contact-info-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #94a3b8;
}
.contact-info-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    word-break: break-word;
    transition: color .15s ease;
}

/* Renk paleti secimi (contact) */
.palette-swatch {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.12);
    display: inline-block;
}

/* Hero'da basligin etrafinda "ucusan" avantaj rozetleri */
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}
.floaty {
    animation: floaty 6s ease-in-out infinite;
    will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
    .floaty { animation: none; }
}

/* Fiyatlandirma hero'sunda arka planda ucusan sektor ikonlari */
.sector-float {
    align-items: center;
    justify-content: center;
    border-radius: 1.1rem;
    color: var(--brand);
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 14px 34px -16px rgba(15, 23, 42, .28);
    border: 1px solid rgba(59, 130, 246, .14);
    opacity: .72;
}
.sector-float svg {
    opacity: .9;
}
@media (prefers-reduced-motion: reduce) {
    .sector-float { animation: none; }
}

/* ============================================================
   Web sitesi olusturma sihirbazi (create.php)
   ============================================================ */

/* Adimlar - JS aktifken yalnizca aktif adim gorunur.
   JS yoksa tum adimlar alt alta gorunur (form yine calisir). */
.wizard-step.is-hidden { display: none; }

/* Secim kartlari (sektor / renk paleti) */
.choice-card { transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.choice-card:has(input:checked),
.choice-card.is-selected {
    border-color: var(--brand);
    background-color: #eff6ff; /* blue-50 */
    box-shadow: 0 0 0 1px var(--brand);
}
.choice-card:has(input:checked) .choice-check,
.choice-card.is-selected .choice-check { display: block; }

/* Adim gostergesi (stepper) noktalari */
.wizard-pip .pip-dot { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.wizard-pip.is-active .pip-dot {
    border-color: var(--brand);
    background-color: var(--brand);
    color: #fff;
}
.wizard-pip.is-active .pip-label { color: var(--brand); }
.wizard-pip.is-done .pip-dot {
    border-color: var(--brand);
    color: var(--brand);
    background-color: #eff6ff;
}
.wizard-pip.is-done .pip-label { color: #475569; }

/* Noktalari birlestiren ilerleme cizgisi */
.wizard-pip::before {
    content: "";
    position: absolute;
    top: 1rem;            /* mobil nokta merkezi (h-8) */
    right: 50%;
    left: -50%;
    height: 2px;
    background-color: #e2e8f0; /* slate-200 */
    transition: background-color .2s ease;
    z-index: 0;
}
.wizard-pip:first-child::before { display: none; }
.wizard-pip.is-active::before,
.wizard-pip.is-done::before { background-color: var(--brand); }
@media (min-width: 640px) {
    .wizard-pip::before { top: 1.125rem; } /* sm nokta merkezi (h-9) */
}

/* Mobilde kalabalik gorunumu onle: yalnizca aktif adimin etiketi gorunsun */
@media (max-width: 639px) {
    .wizard-pip .pip-label { display: none; }
    .wizard-pip.is-active .pip-label { display: block; }
}

/* Sihirbaz adim gecis animasyonu */
.wizard-step:not(.is-hidden) { animation: wizardFade .25s ease; }
@keyframes wizardFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .wizard-step:not(.is-hidden) { animation: none; }
}

/* WhatsApp destek butonu — sag alt sabit */
.whatsapp-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}
.whatsapp-widget__inner {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 3.25rem;
    padding: 0.625rem 0.875rem 0.625rem 0.75rem;
    border-radius: 9999px;
    background: #25d366;
    transition: background-color .2s ease;
}
.whatsapp-widget:hover .whatsapp-widget__inner {
    background: #20bd5a;
}
.whatsapp-widget__icon {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
}
.whatsapp-widget__text {
    display: none;
    padding-right: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
@media (min-width: 640px) {
    .whatsapp-widget__text {
        display: block;
    }
    .whatsapp-widget__inner {
        padding-right: 1.125rem;
    }
}

/* Mobil alt navigasyon — yalnizca kucuk ekranlarda */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: calc(4rem + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -6px 20px -8px rgba(15, 23, 42, 0.18);
}
.mbn-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    min-width: 0;
    text-decoration: none;
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    transition: color .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.mbn-item:active { color: #3b82f6; }
.mbn-item.is-active { color: #3b82f6; }
.mbn-icon {
    width: 1.5rem;
    height: 1.5rem;
}
.mbn-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Ortadaki "Olustur" cagri butonu — yukseltilmis */
.mbn-cta {
    color: #3b82f6;
}
.mbn-cta-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-top: -1.6rem;
    border-radius: 9999px;
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 8px 18px -4px rgba(59, 130, 246, 0.55);
    border: 4px solid #fff;
}
.mbn-cta-icon {
    width: 1.6rem;
    height: 1.6rem;
}

/* Alt menu varken: sayfa altina bosluk birak + WhatsApp butonunu yukari al */
@media (max-width: 767px) {
    body {
        padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
    }
    .whatsapp-widget {
        bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
        right: 1rem;
    }
}
