/* =====================================================================
   ADIM TECH — Profesyonel Tema
   Yön: Modern "tech-corporate". Sora (başlık) + Plus Jakarta Sans (gövde),
   derin lacivert komuta paneli, canlı indigo-mavi vurgu, katmanlı derinlik.
   ===================================================================== */

:root {
    /* Marka paleti */
    --brand:        #2563eb;
    --brand-600:    #1d4ed8;
    --brand-700:    #1e40af;
    --accent:       #06b6d4;   /* cyan vurgu */

    /* Yüzey & metin */
    --ink:          #0b1228;   /* sidebar - en koyu */
    --ink-2:        #141d39;
    --ink-3:        #1e2a4a;
    --bg:           #eef2f9;
    --surface:      #ffffff;
    --line:         #e6eaf2;
    --text:         #1a2236;
    --muted:        #6b7488;

    /* Gölgeler */
    --shadow-sm: 0 1px 2px rgba(16, 24, 48, .06), 0 1px 3px rgba(16, 24, 48, .04);
    --shadow:    0 4px 16px rgba(16, 24, 48, .07), 0 2px 6px rgba(16, 24, 48, .04);
    --shadow-lg: 0 18px 48px rgba(16, 24, 48, .16);

    /* Bootstrap 5.3 değişken eşlemesi (badge, bg, text utiliteleri) */
    --bs-primary: var(--brand);
    --bs-primary-rgb: 37, 99, 235;
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 37, 99, 235;
    --bs-link-hover-color: var(--brand-700);
    --bs-border-radius: .65rem;
    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

/* ---------- Tipografi ---------- */
body {
    background-color: var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: .1px;
}
h1, h2, h3, h4, h5, h6, .fw-bold, .fw-semibold, .brand, .stat-value, .navbar h5 {
    font-family: "Sora", "Plus Jakarta Sans", sans-serif;
    letter-spacing: -.01em;
}

/* Atmosferik arka plan dokusu */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 500px at 100% -5%, rgba(37, 99, 235, .07), transparent 60%),
        radial-gradient(700px 500px at -10% 110%, rgba(6, 182, 212, .06), transparent 55%);
    pointer-events: none;
}

/* ---------- Bootstrap bileşen renk uyumu ---------- */
.btn { border-radius: .6rem; font-weight: 600; }
.btn-primary {
    --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600);
    --bs-btn-active-bg: var(--brand-700); --bs-btn-active-border-color: var(--brand-700);
    box-shadow: 0 6px 16px rgba(37, 99, 235, .28);
}
.btn-outline-primary {
    --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-bg: var(--brand-600);
}
.btn-success { --bs-btn-bg: #16a34a; --bs-btn-border-color:#16a34a; --bs-btn-hover-bg:#15803d; --bs-btn-hover-border-color:#15803d; box-shadow: 0 6px 16px rgba(22,163,74,.25); }
.page-link { color: var(--brand); }
.pagination { --bs-pagination-active-bg: var(--brand); --bs-pagination-active-border-color: var(--brand); }
a { color: var(--brand); }

.card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    background: var(--surface);
}
.card-header { background: var(--surface); border-bottom: 1px solid var(--line); font-weight: 600; }
.badge { font-weight: 600; letter-spacing: .2px; padding: .4em .65em; }
.alert { border: 0; border-radius: .8rem; box-shadow: var(--shadow-sm); }
.form-control, .form-select { border-radius: .6rem; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(37,99,235,.15); }
.form-label { font-weight: 600; color: #344056; }
.table { --bs-table-hover-bg: #f5f8ff; }
.table > thead th { font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .05em; }

/* =====================================================================
   GİRİŞ EKRANI
   ===================================================================== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1000px 600px at 15% 10%, rgba(6,182,212,.25), transparent 55%),
        radial-gradient(900px 700px at 90% 90%, rgba(37,99,235,.35), transparent 55%),
        linear-gradient(135deg, #0b1228 0%, #15224a 55%, #1e40af 120%);
}
/* ince ızgara dokusu */
.login-wrapper::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 40%, #000 30%, transparent 75%);
}
.login-card {
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,.97);
    animation: rise .6s cubic-bezier(.2,.8,.2,1) both;
}
.login-logo {
    width: 66px; height: 66px;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: "Sora", sans-serif;
    font-size: 1.7rem; font-weight: 700;
    margin: 0 auto;
    box-shadow: 0 10px 24px rgba(37,99,235,.4);
}

/* =====================================================================
   ADMIN PANEL
   ===================================================================== */
.admin-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 260px;
    background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
    color: #aab4cc;
    overflow-y: auto;
    z-index: 1040;
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
    border-right: 1px solid rgba(255,255,255,.05);
}
.admin-sidebar .brand {
    padding: 1.15rem 1.25rem;
    font-size: 1.2rem; font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.07);
    display: flex; align-items: center; gap: .6rem;
}
.admin-sidebar .nav-link {
    color: #aab4cc;
    padding: .72rem 1.25rem;
    margin: .12rem .6rem;
    border-radius: .6rem;
    display: flex; align-items: center; gap: .7rem;
    font-size: .94rem; font-weight: 500;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.admin-sidebar .nav-link i { font-size: 1.05rem; opacity: .9; }
.admin-sidebar .nav-link:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
    transform: translateX(2px);
}
.admin-sidebar .nav-link.active {
    background: linear-gradient(90deg, rgba(37,99,235,.9), rgba(37,99,235,.55));
    color: #fff;
    box-shadow: 0 8px 20px rgba(37,99,235,.35);
}
.admin-sidebar .nav-section {
    font-size: .68rem; text-transform: uppercase;
    letter-spacing: .12em;
    color: #5c688a;
    padding: 1.1rem 1.5rem .4rem;
    font-weight: 700;
}

.admin-content {
    margin-left: 260px;
    min-height: 100vh;
    transition: margin .28s cubic-bezier(.2,.8,.2,1);
}
.admin-navbar {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--line);
    padding: .7rem 1.5rem;
    position: sticky; top: 0; z-index: 1020;
}
.admin-navbar h5 { font-weight: 700; }
.admin-main { padding: 1.75rem; }

/* İstatistik kartları */
.stat-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
}
.stat-card .stat-icon {
    width: 54px; height: 54px;
    border-radius: .85rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}
.stat-card .stat-value {
    font-family: "Sora", sans-serif;
    font-size: 1.7rem; font-weight: 700;
    line-height: 1.1; color: var(--text);
}
.stat-card .stat-label { color: var(--muted); font-size: .85rem; font-weight: 500; }

/* Tıklanabilir kartlar */
.stat-link {
    display: block; color: inherit;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.stat-link .stat-arrow { color: var(--line); transition: color .18s ease, transform .18s ease; }
.stat-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37,99,235,.4);
}
.stat-link:hover .stat-arrow { color: var(--brand); transform: translateX(3px); }
.stat-link:hover .stat-value { color: var(--brand); }

/* Tablolar */
.table > :not(caption) > * > * { padding: .8rem .85rem; }
.table-responsive { border-radius: 0 0 1rem 1rem; }

/* Mobil sidebar arka planı */
.sidebar-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(8, 14, 32, .55);
    backdrop-filter: blur(2px);
    z-index: 1035;
}
@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .admin-content { margin-left: 0; }
    .sidebar-backdrop.show { display: block; }
}

/* =====================================================================
   MOBİL SERVİS PANELİ
   ===================================================================== */
.servis-body { background: var(--bg); padding-bottom: 84px; }
.servis-topbar {
    background: linear-gradient(120deg, var(--ink) 0%, var(--brand-700) 130%);
    color: #fff;
    padding: .9rem 1.1rem;
    position: sticky; top: 0; z-index: 1030;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 4px 18px rgba(11,18,40,.3);
}
.servis-topbar .title { font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.12rem; }

.servis-bottomnav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-around;
    padding: .4rem 0 .5rem;
    z-index: 1030;
    box-shadow: 0 -4px 18px rgba(16,24,48,.08);
}
.servis-bottomnav a {
    flex: 1; text-align: center;
    color: var(--muted); text-decoration: none;
    font-size: .7rem; font-weight: 600;
    padding: .25rem 0;
    transition: color .15s ease;
}
.servis-bottomnav a.active { color: var(--brand); }
.servis-bottomnav a.active .icon { transform: translateY(-2px); }
.servis-bottomnav a .icon { display: block; font-size: 1.3rem; transition: transform .15s ease; }

.servis-container { padding: 1rem; max-width: 660px; margin: 0 auto; }

/* Büyük dokunmatik butonlar */
.btn-touch { padding: .85rem 1rem; font-size: 1.02rem; border-radius: .85rem; font-weight: 700; }

.job-card {
    border-radius: 1rem; border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    margin-bottom: .85rem;
    transition: transform .15s ease, box-shadow .15s ease;
}
a .job-card:active, a .job-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.job-card.yeni-vurgu {
    border-left: 4px solid var(--accent);
    background: linear-gradient(90deg, rgba(6,182,212,.05), transparent 40%);
}
.foto-thumb {
    width: 100%; height: 110px; object-fit: cover;
    border-radius: .7rem; border: 1px solid var(--line);
    transition: transform .15s ease;
}
.foto-thumb:hover { transform: scale(1.03); }

/* Mobil menü kartları */
.menu-card {
    border-radius: 1.1rem; border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-decoration: none; color: var(--text);
    display: block; padding: 1.3rem 1rem; text-align: center; height: 100%;
    background: var(--surface);
    transition: transform .16s ease, box-shadow .16s ease;
}
.menu-card:active, .menu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.menu-card .menu-icon { font-size: 2.1rem; }
.menu-card .menu-count { font-family: "Sora", sans-serif; font-size: 1.6rem; font-weight: 700; line-height: 1.1; }

/* =====================================================================
   HAREKET (Motion)
   ===================================================================== */
@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.stagger > * { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.stagger > *:nth-child(1) { animation-delay: .03s; }
.stagger > *:nth-child(2) { animation-delay: .09s; }
.stagger > *:nth-child(3) { animation-delay: .15s; }
.stagger > *:nth-child(4) { animation-delay: .21s; }
.stagger > *:nth-child(5) { animation-delay: .27s; }
.stagger > *:nth-child(6) { animation-delay: .33s; }
.stagger > *:nth-child(7) { animation-delay: .39s; }
.stagger > *:nth-child(8) { animation-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
