/* ==========================================================================
   Biolink — Tasarım Sistemi
   Yön: "Biletli Geçiş" — her link bir bilet/kart bandı gibi davranır,
   panel bir kontrol kulesi gibi dizayn edilmiştir. Şablon gradient/kart
   yığınlarından kaçınılmıştır.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700&family=Newsreader:ital,wght@0,400;0,500;1,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg: #EFF2ED;
    --surface: #FFFFFF;
    --text: #1C2333;
    --muted: #5B6472;
    --accent: #E3A339;
    --accent2: #2F6F63;
    --danger: #B23A2E;
    --radius: 4px;
    --border: rgba(28, 35, 51, 0.14);
    --display-font: 'Bricolage Grotesque', system-ui, sans-serif;
    --body-font: 'Newsreader', Georgia, serif;
    --mono-font: 'JetBrains Mono', ui-monospace, monospace;
    --shadow-stub: 0 1px 0 rgba(28,35,51,.05), 0 12px 24px -16px rgba(28,35,51,.25);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .display {
    font-family: var(--display-font);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.08;
    margin: 0;
}

a { color: inherit; }

.mono { font-family: var(--mono-font); letter-spacing: 0.02em; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Klavye ile gezinen herkes için görünür odak halkası — asla kaldırma */
:focus-visible {
    outline: 2px solid var(--accent2);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ---------------------------------------------------------------------- *
 * Butonlar
 * ---------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--display-font);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 22px;
    border-radius: var(--radius);
    border: 1.5px solid var(--text);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); color: #fff; }

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #1C1200;
}

.btn-ghost {
    border-color: transparent;
    color: var(--muted);
}
.btn-ghost:hover { color: var(--text); background: rgba(28,35,51,.05); }

.btn-danger {
    border-color: var(--danger);
    color: var(--danger);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------------------------------------------------------------------- *
 * Form elemanları
 * ---------------------------------------------------------------------- */

label {
    display: block;
    font-family: var(--display-font);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 6px;
}

input[type=text], input[type=email], input[type=password], input[type=url],
input[type=tel], input[type=search], textarea, select {
    width: 100%;
    font-family: var(--body-font);
    font-size: 16px;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    transition: border-color .15s ease;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--accent2);
    outline: none;
}

.field { margin-bottom: 18px; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field-error { font-size: 13px; color: var(--danger); margin-top: 6px; }

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body-font);
    font-size: 15px;
    color: var(--text);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 400;
}
.checkbox-row input { width: auto; }

/* ---------------------------------------------------------------------- *
 * Uyarı / bildirim şeritleri
 * ---------------------------------------------------------------------- */

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 18px;
    border-left: 3px solid;
}
.alert-error { background: #FBEAE8; border-color: var(--danger); color: #7A251C; }
.alert-success { background: #E9F3EE; border-color: var(--accent2); color: #1E4B41; }
.alert-info { background: #FDF3E1; border-color: var(--accent); color: #6B4B0E; }

/* ---------------------------------------------------------------------- *
 * Kart / yüzey
 * ---------------------------------------------------------------------- */

.surface {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* ---------------------------------------------------------------------- *
 * Toast (panelde otomatik kaydetme bildirimi)
 * ---------------------------------------------------------------------- */

.toast-stack {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.toast {
    font-family: var(--display-font);
    font-size: 13px;
    font-weight: 600;
    background: var(--text);
    color: var(--bg);
    padding: 10px 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-stub);
    opacity: 0;
    transform: translateY(6px);
    animation: toast-in .2s ease forwards, toast-out .2s ease forwards 2.2s;
}
.toast.toast-error { background: var(--danger); }
@keyframes toast-in { to { opacity: 1; transform: translateY(0); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* ---------------------------------------------------------------------- *
 * Boş durum
 * ---------------------------------------------------------------------- */

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--muted);
}
.empty-state .display { font-size: 20px; margin-bottom: 8px; color: var(--text); }

.text-accent2 { color: var(--accent2); }
