/* =========================================================
   base.css — Reset, tema değişkenleri, tipografi
   ========================================================= */

:root {
    --color-bg: #f5f6fa;
    --color-surface: #ffffff;
    --color-border: #e3e5ea;
    --color-text: #1c1f26;
    --color-text-muted: #6b7280;
    --color-primary: #2f5dff;
    --color-primary-hover: #2447cc;
    --color-success: #16a34a;
    --color-warning: #d97706;
    --color-danger: #dc2626;
    --radius: 10px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
    --color-bg: #14161c;
    --color-surface: #1c1f26;
    --color-border: #2a2e37;
    --color-text: #e7e9ee;
    --color-text-muted: #9aa0ac;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
}

a { color: var(--color-primary); text-decoration: none; }

button, input, select, textarea { font-family: inherit; }

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

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

.btn-icon {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--color-text-muted);
    transition: background 0.18s ease, color 0.18s ease;
}
.btn-icon:hover { background: var(--color-bg); color: var(--color-text); }
.btn-icon:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 1px; }

.icon { display: inline-block; vertical-align: middle; }

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }
