/* =============================================================
   intikalislemleri.com — Özel Stiller ve Animasyonlar
   Geliştirici: Digitalog.com.tr
   ============================================================= */

:root {
    --brand-600: #214ceb;
    --brand-700: #1a3ad4;
    --brand-900: #1d3187;
}

html { -webkit-text-size-adjust: 100%; }

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

/* Seçim rengi */
::selection {
    background: #fbbf24;
    color: #0f172a;
}

/* -------------------------------------------------------------
   İnce kaydırma çubuğu
   ------------------------------------------------------------- */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* -------------------------------------------------------------
   Hero arka plan deseni
   ------------------------------------------------------------- */
.hero-grid {
    background-image:
        linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

/* -------------------------------------------------------------
   Hero Slider
   ------------------------------------------------------------- */
.hero-slider {
    position: relative;
    min-height: 300px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(22px);
    transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
    pointer-events: none;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.hero-dot {
    width: 30px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.22);
    transition: background .35s ease, width .35s ease;
}

.hero-dot.is-active {
    width: 56px;
    background: #fbbf24;
}

/* -------------------------------------------------------------
   Kaydırmalı görünürlük animasyonu
   ------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
}

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

/* -------------------------------------------------------------
   Yorum slider'ı
   ------------------------------------------------------------- */
.review-track {
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

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

.review-card { scroll-snap-align: start; }

/* -------------------------------------------------------------
   Click to Chat widget'ı
   ------------------------------------------------------------- */
.ctc-panel {
    transform: scale(.85) translateY(12px);
    transition: opacity .28s ease, transform .28s cubic-bezier(.16,1,.3,1);
}

.ctc-panel.is-open {
    pointer-events: auto;
    opacity: 1;
    transform: none;
}

.ctc-item {
    opacity: 0;
    transform: translateX(18px);
    transition: opacity .3s ease, transform .3s cubic-bezier(.16,1,.3,1);
}

.ctc-panel.is-open .ctc-item {
    opacity: 1;
    transform: none;
}

.ctc-ping {
    animation: ctc-ping 2.6s cubic-bezier(0,0,.2,1) infinite;
}

@keyframes ctc-ping {
    0%   { transform: scale(1);    opacity: .55; }
    70%  { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* -------------------------------------------------------------
   Yıldız puanlama girişi
   ------------------------------------------------------------- */
.star-input { flex-direction: row-reverse; justify-content: flex-end; }

.star-input input:checked ~ label svg,
.star-input label:hover svg,
.star-input label:hover ~ label svg {
    color: #fbbf24;
}

.star-input input:focus-visible + label svg {
    outline: 2px solid var(--brand-600);
    outline-offset: 2px;
    border-radius: 4px;
}

/* -------------------------------------------------------------
   SSS akordiyonu
   ------------------------------------------------------------- */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { list-style: none; }

.faq-item[open] > summary ~ * {
    animation: faq-in .35s cubic-bezier(.16,1,.3,1);
}

@keyframes faq-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}

/* -------------------------------------------------------------
   Konum arama sonuç kutusu
   ------------------------------------------------------------- */
.konum-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .7rem 1rem;
    font-size: .875rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    transition: background .15s ease;
}

.konum-item:last-child { border-bottom: 0; }
.konum-item:hover { background: #f8fafc; color: var(--brand-700); }

.konum-tag {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
}

/* -------------------------------------------------------------
   Sabit üst menü gölgesi
   ------------------------------------------------------------- */
#site-header.is-scrolled {
    box-shadow: 0 6px 28px -12px rgba(15, 23, 42, .28);
}

/* -------------------------------------------------------------
   Form durumları
   ------------------------------------------------------------- */
.form-message-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

input:user-invalid,
textarea:user-invalid {
    border-color: #fca5a5;
}

/* -------------------------------------------------------------
   Yazdırma
   ------------------------------------------------------------- */
@media print {
    header, footer, #click-to-chat, .hero-grid { display: none !important; }
    body { background: #fff; }
}

/* -------------------------------------------------------------
   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;
    }

    .reveal { opacity: 1; transform: none; }
}
