/* ═══════════════════════════════════════════════════════════════════
   custom.css  –  SIBO.com.tr  |  Özel animasyon & efekt stilleri
═══════════════════════════════════════════════════════════════════ */

/* ── Google Font fallback ─────────────────────────────────────── */
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* ── Smooth scroll ───────────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Fade-up animation ───────────────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(.22,1,.36,1), transform 0.65s cubic-bezier(.22,1,.36,1);
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children delays */
.fade-up:nth-child(1) { transition-delay: 0.00s; }
.fade-up:nth-child(2) { transition-delay: 0.10s; }
.fade-up:nth-child(3) { transition-delay: 0.20s; }
.fade-up:nth-child(4) { transition-delay: 0.30s; }
.fade-up:nth-child(5) { transition-delay: 0.40s; }
.fade-up:nth-child(6) { transition-delay: 0.50s; }

/* ── Float animation ──────────────────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

/* ── Pulse ring ────────────────────────────────────────────────── */
@keyframes pulseRing {
    0%   { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(22,163,74,0.6); }
    70%  { transform: scale(1);    box-shadow: 0 0 0 15px rgba(22,163,74,0); }
    100% { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
.pulse-ring { animation: pulseRing 2.2s infinite; }

/* ── Shimmer / skeleton loading ───────────────────────────────── */
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* ── Glassmorphism card ───────────────────────────────────────── */
.glass-card {
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.55);
    box-shadow: 0 8px 32px rgba(31,38,135,0.10);
}

/* Dark glass */
.glass-dark {
    background: rgba(30,27,75,0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12);
}

/* ── Gradient text ────────────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #16a34a 0%, #059669 50%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-green {
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero background ──────────────────────────────────────────── */
.hero-bg {
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(22,163,74,0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(79,70,229,0.10) 0%, transparent 60%),
        linear-gradient(180deg, #f8faff 0%, #f0fdf4 100%);
}

/* ── Section pattern overlay ──────────────────────────────────── */
.dot-pattern {
    background-image: radial-gradient(circle, #e2e8f0 1px, transparent 1px);
    background-size: 28px 28px;
}

/* ── Card hover lift ──────────────────────────────────────────── */
.card-hover {
    transition: transform 0.28s cubic-bezier(.22,1,.36,1), box-shadow 0.28s ease;
}
.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(22,163,74,0.18), 0 8px 24px rgba(0,0,0,0.08);
}

/* ── Badge / pill styles ──────────────────────────────────────── */
.badge-green {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.85rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.badge-indigo {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.85rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* ── Quiz styles ──────────────────────────────────────────────── */
.quiz-option {
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 0.875rem;
    padding: 0.9rem 1.1rem;
    transition: all 0.2s ease;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #374151;
}
.quiz-option:hover {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #15803d;
}
.quiz-option.selected {
    border-color: #16a34a;
    background: linear-gradient(135deg, #dcfce7, #f0fdf4);
    color: #15803d;
    font-weight: 600;
}
.quiz-option .check-icon {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quiz-option.selected .check-icon {
    background: #16a34a;
    border-color: #16a34a;
}

/* ── Order form steps ─────────────────────────────────────────── */
.step-indicator {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.step-indicator.active {
    background: linear-gradient(135deg, #16a34a, #059669);
    color: white;
    box-shadow: 0 0 0 4px rgba(22,163,74,0.2);
}
.step-indicator.done {
    background: #bbf7d0;
    color: #15803d;
}
.step-indicator.pending {
    background: #f3f4f6;
    color: #9ca3af;
}

/* ── Accordion ────────────────────────────────────────────────── */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s ease;
}
.accordion-content.open {
    max-height: 600px;
}

/* ── Progress bar (quiz result) ───────────────────────────────── */
.risk-bar {
    height: 10px;
    border-radius: 9999px;
    background: #e5e7eb;
    overflow: hidden;
}
.risk-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 1.2s cubic-bezier(.22,1,.36,1);
}

/* ── Sticky CTA bar on mobile ─────────────────────────────────── */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 0.875rem 1rem;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}

@media(min-width: 1024px) {
    .mobile-cta-bar { display: none !important; }
}

/* ── Input focus ring ─────────────────────────────────────────── */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22,163,74,0.12);
}
.form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,0.10);
}
.form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}
.form-error {
    margin-top: 0.3rem;
    font-size: 0.78rem;
    color: #ef4444;
}

/* ── Timeline (3-phase) ───────────────────────────────────────── */
.timeline-item {
    position: relative;
    padding-left: 3rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 1.1rem;
    top: 2.5rem;
    bottom: -0.5rem;
    width: 2px;
    background: linear-gradient(180deg, #16a34a, #4f46e5);
}
.timeline-item:last-child::before { display: none; }

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: white;
    z-index: 1;
}

/* ── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #16a34a; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #15803d; }

/* ── Print / no-print ─────────────────────────────────────────── */
@media print { .no-print { display: none !important; } }
