/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --forest-emerald: #10b981;
    --forest-neon: #34d399;
    --forest-dark: #047857;
    --error-crimson: #f43f5e;
    --bg-deep: #020617;
}

/* --- 1. TYPOGRAPHY & RENDER OPTİMİZASYONU --- */
*, *::before, *::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-deep);
    /* Zemin Ortam Işığı (Ambient Bio-Glow) */
    background-image: radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.035) 0%, transparent 40%), radial-gradient(circle at 85% 85%, rgba(4, 120, 87, 0.045) 0%, transparent 45%);
    background-attachment: fixed;
}

/* --- 2. KOU ORMAN PREMIUM SCROLLBAR --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
    border: 2px solid #020617;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--forest-emerald);
    }

/* Selection (Metin tarama rengi) */
::selection {
    background-color: var(--forest-emerald);
    color: #020617;
}


/* --- 3. FROSTED GLASS 2.0 (Ana Kart) --- */
.glass-panel {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(9, 13, 22, 0.85) 100%);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(16, 185, 129, 0.05), inset 0 1px 0 0 rgba(255, 255, 255, 0.12); /* Apple Cam Işık Kırılması */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

    /* Camın arkasındaki dinamik reaktör ışığı */
    .glass-panel::before {
        content: '';
        position: absolute;
        top: -20%;
        left: 10%;
        width: 80%;
        height: 80%;
        background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
        pointer-events: none;
        z-index: -1;
        transition: background 0.4s ease;
    }

    /* Hata yediği an arkadaki ışık kırmızıya döner! */
    .glass-panel.panel-crimson-alert::before {
        background: radial-gradient(circle, rgba(244, 63, 94, 0.15) 0%, transparent 70%);
    }


/* --- 4. TACTILE INPUTS (Canlı Form Kutuları) --- */
input[type="text"], input[type="tel"], input[type="number"], input[type="email"], input[type="password"] {
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: rgba(2, 6, 23, 0.7) !important;
    border: 1px solid #1e293b !important;
}

input:focus {
    transform: translateY(-2px);
    border-color: var(--forest-neon) !important;
    background-color: rgba(2, 6, 23, 0.95) !important;
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15), 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}


/* --- 5. BESPOKE CHECKBOX (Yaylanan Özel Tik Kutusu) --- */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem !important;
    height: 1.25rem !important;
    border-radius: 0.35rem;
    border: 2px solid #334155;
    background-color: rgba(2, 6, 23, 0.8);
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    input[type="checkbox"]:checked {
        background-color: var(--forest-emerald);
        border-color: var(--forest-neon);
        transform: scale(1.08);
        box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
    }

        input[type="checkbox"]:checked::after {
            content: '✓';
            color: #020617;
            font-size: 0.85rem;
            font-weight: 900;
        }


/* --- 6. BUTON FİZİĞİ --- */
button[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(0);
}

    button[type="submit"]:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 12px 20px -8px rgba(16, 185, 129, 0.5), 0 4px 12px -2px rgba(16, 185, 129, 0.3);
    }

    button[type="submit"]:active:not(:disabled) {
        transform: translateY(1px);
        box-shadow: 0 2px 4px rgba(16, 185, 129, 0.4);
    }


/* --- 7. ELITE ERROR BOX (İstediğin Hata Kutusu Tasarımı) --- */

.custom-error-banner {
    background: linear-gradient(90deg, rgba(159, 18, 57, 0.25) 0%, rgba(136, 19, 55, 0.05) 100%);
    border: 1px solid rgba(244, 63, 94, 0.35);
    border-left: 4px solid var(--error-crimson);
    border-radius: 0.75rem;
    padding: 0.85rem 1.25rem;
    color: #fecdd3;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(244, 63, 94, 0.2);
    animation: errorAppear 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes errorAppear {
    0% {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hatalı İnputu Sarsma Fiziği */
.input-shudder {
    border-color: var(--error-crimson) !important;
    background-color: rgba(255, 228, 230, 0.03) !important;
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.25) !important;
    animation: shudder 0.4s ease-in-out 0s 1;
}

@keyframes shudder {
    0%, 100% {
        transform: translateX(0);
    }

    20%, 60% {
        transform: translateX(-6px);
    }

    40%, 80% {
        transform: translateX(6px);
    }
}
