/* ============================================================
   Career Matcher - Klinik Beyaz Tema
   Minimalist, Yüksek Kontrastlı, Karanlık Mod Yok
   ============================================================ */

:root {
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --border-gray: #dee2e6;
    --mid-gray: #6c757d;
    --dark-gray: #343a40;
    --black: #212529;
    --primary: #1a56db;
    --primary-hover: #1e40af;
    --primary-light: #eff6ff;
    --success: #047857;
    --success-light: #ecfdf5;
    --warning: #b45309;
    --warning-light: #fffbeb;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --info: #0369a1;
    --info-light: #f0f9ff;
    --radius: 6px;
    --radius-lg: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 2px 8px rgba(0,0,0,0.10);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'Consolas', 'Courier New', monospace;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--black); line-height: 1.3; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

/* ============================================================
   Layout
   ============================================================ */
.app-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Navigation */
.topnav {
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.topnav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.topnav-brand svg { width: 28px; height: 28px; }
.topnav-nav { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.topnav-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-gray);
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}
.topnav-nav a:hover, .topnav-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    text-decoration: none;
}
.topnav-right { display: flex; align-items: center; gap: 1rem; }
.topnav-right .badge {
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    position: relative;
    top: -8px;
    left: -6px;
}

/* User menu */
.user-menu { position: relative; }
.user-menu-btn {
    display: flex; align-items: center; gap: 0.5rem; cursor: pointer;
    padding: 0.35rem 0.75rem; border-radius: var(--radius);
    border: 1px solid var(--border-gray); background: var(--white);
    font-size: 0.85rem; color: var(--dark-gray);
}
.user-menu-btn:hover { background: var(--off-white); }
.user-dropdown {
    display: none; position: absolute; right: 0; top: 100%;
    background: var(--white); border: 1px solid var(--border-gray);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    min-width: 180px; padding: 0.5rem 0; z-index: 200;
}
.user-dropdown.show { display: block; }
.user-dropdown a {
    display: block; padding: 0.5rem 1rem; font-size: 0.85rem;
    color: var(--dark-gray);
}
.user-dropdown a:hover { background: var(--primary-light); color: var(--primary); text-decoration: none; }
.user-dropdown hr { border: 0; border-top: 1px solid var(--light-gray); margin: 0.25rem 0; }

/* Main Content */
.main-content {
    display: flex;
    flex: 1;
}
.sidebar {
    width: 220px;
    background: var(--off-white);
    border-right: 1px solid var(--border-gray);
    padding: 1rem 0;
    flex-shrink: 0;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.65rem 1.25rem; font-size: 0.88rem;
    color: var(--dark-gray); font-weight: 500;
    transition: all 0.12s;
}
.sidebar-nav li a:hover { background: var(--white); color: var(--primary); text-decoration: none; }
.sidebar-nav li a.active { background: var(--primary-light); color: var(--primary); font-weight: 600; border-right: 3px solid var(--primary); }
.sidebar-nav .icon { width: 18px; height: 18px; opacity: 0.7; }

.content-area {
    flex: 1;
    padding: 1.5rem 2rem;
    max-width: 1100px;
    background: var(--white);
}
.page-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-gray);
}

/* ============================================================
   Cards
   ============================================================ */
.card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}
.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--light-gray);
    font-weight: 600;
    display: flex; justify-content: space-between; align-items: center;
}
.card-body { padding: 1.25rem; }
.card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--light-gray);
    background: var(--off-white);
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--mid-gray);
    margin-top: 0.25rem;
}
.stat-card.success .stat-value { color: var(--success); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.danger .stat-value { color: var(--danger); }

/* Match card */
.match-card { cursor: pointer; transition: box-shadow 0.15s; }
.match-card:hover { box-shadow: var(--shadow); }
.match-score {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
    font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.match-score.high { background: var(--success-light); color: var(--success); }
.match-score.medium { background: var(--warning-light); color: var(--warning); }
.match-score.low { background: var(--danger-light); color: var(--danger); }
.match-detail-item {
    display: flex; justify-content: space-between; padding: 0.5rem 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
}
.match-detail-item:last-child { border-bottom: 0; }
.match-detail-item .matched { color: var(--success); font-weight: 600; }
.match-detail-item .unmatched { color: var(--danger); font-weight: 600; }

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 1rem; }
.form-label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--dark-gray); margin-bottom: 0.35rem;
}
.form-control {
    width: 100%; padding: 0.55rem 0.75rem;
    font-size: 0.9rem; font-family: var(--font);
    border: 1px solid var(--border-gray);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--black);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.15);
}
.form-control::placeholder { color: var(--mid-gray); }
select.form-control { cursor: pointer; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.8rem; color: var(--mid-gray); margin-top: 0.25rem; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 0.25rem; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.4rem; padding: 0.5rem 1rem;
    font-size: 0.88rem; font-weight: 600; font-family: var(--font);
    border: 1px solid transparent; border-radius: var(--radius);
    cursor: pointer; transition: all 0.12s; white-space: nowrap;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--white); color: var(--dark-gray); border-color: var(--border-gray); }
.btn-secondary:hover { background: var(--off-white); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #065f46; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
.btn-lg { padding: 0.7rem 1.5rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* ============================================================
   Alerts / Flash Messages
   ============================================================ */
.alert {
    padding: 0.75rem 1rem; border-radius: var(--radius);
    margin-bottom: 1rem; font-size: 0.9rem; border-left: 3px solid;
    line-height: 1.5;
}
.alert-success { background: var(--success-light); color: var(--success); border-color: var(--success); }
.alert-danger { background: var(--danger-light); color: var(--danger); border-color: var(--danger); }
.alert-warning { background: var(--warning-light); color: var(--warning); border-color: var(--warning); }
.alert-info { background: var(--info-light); color: var(--info); border-color: var(--info); }

/* ============================================================
   Tables
   ============================================================ */
.table-container { overflow-x: auto; }
table {
    width: 100%; border-collapse: collapse; font-size: 0.88rem;
}
table th, table td {
    padding: 0.65rem 0.85rem; text-align: left; border-bottom: 1px solid var(--light-gray);
}
table th {
    font-weight: 600; color: var(--dark-gray); background: var(--off-white);
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.02em;
}
table tr:hover { background: var(--off-white); }

/* ============================================================
   Badges / Tags
   ============================================================ */
.badge {
    display: inline-flex; padding: 0.15rem 0.5rem;
    font-size: 0.75rem; font-weight: 600; border-radius: 3px;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--info-light); color: var(--info); }

/* ============================================================
   Auth Pages (Login/Register)
   ============================================================ */
.auth-container {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; background: var(--off-white);
}
.auth-card {
    background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 2rem; width: 100%; max-width: 420px;
    border: 1px solid var(--border-gray);
}
.auth-card h2 { text-align: center; margin-bottom: 1.5rem; }
.auth-card .auth-links { text-align: center; margin-top: 1rem; font-size: 0.85rem; }

/* ============================================================
   Notifications
   ============================================================ */
.notification-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.75rem 1rem; border-bottom: 1px solid var(--light-gray);
    transition: background 0.1s;
}
.notification-item:hover { background: var(--off-white); }
.notification-item.unread { background: var(--primary-light); border-left: 3px solid var(--primary); }
.notification-item .notif-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.notification-item .notif-content { flex: 1; }
.notification-item .notif-title { font-weight: 600; font-size: 0.9rem; }
.notification-item .notif-message { font-size: 0.85rem; color: var(--mid-gray); margin-top: 2px; }
.notification-item .notif-time { font-size: 0.75rem; color: var(--mid-gray); margin-top: 4px; }

/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
    text-align: center; padding: 3rem 1rem;
}
.empty-state .empty-icon { font-size: 3rem; color: var(--border-gray); margin-bottom: 1rem; }
.empty-state h3 { color: var(--dark-gray); margin-bottom: 0.5rem; }
.empty-state p { color: var(--mid-gray); font-size: 0.9rem; margin-bottom: 1.25rem; }

/* ============================================================
   Utilities
   ============================================================ */
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--mid-gray); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.fw-bold { font-weight: 700; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col { flex-direction: column; }
.w-full { width: 100%; }

/* ============================================================
   Progress Bar
   ============================================================ */
.progress {
    height: 8px; background: var(--light-gray); border-radius: 4px; overflow: hidden;
}
.progress-bar {
    height: 100%; border-radius: 4px; transition: width 0.3s;
}
.progress-bar.high { background: var(--success); }
.progress-bar.medium { background: var(--warning); }
.progress-bar.low { background: var(--danger); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .content-area { padding: 1rem; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .topnav { padding: 0 0.75rem; }
    .topnav-nav { gap: 0.75rem; }
    .card-grid { grid-template-columns: 1fr; }
}