/* Üniversite, bölüm, lise ve puan hesapla ortak yüzeyi */
.atlas-ui {
    --atlas-navy: #0B1F3F;
    --atlas-navy-2: #16325C;
    --atlas-navy-3: #1E4479;
    --atlas-red: #E11D48;
    --atlas-red-soft: #FFF1F2;
    --atlas-line: #E6EDF5;
    --atlas-bg: #F4F7FB;
    background: var(--atlas-bg);
}

.atlas-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--atlas-line);
    backdrop-filter: blur(10px);
}

.atlas-nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--atlas-navy);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.atlas-nav a:hover {
    background: #E8EEF6;
    transform: translateY(-1px);
}

.atlas-nav a.active {
    background: var(--atlas-navy);
    color: #fff;
}

.uni-hero,
.uni-detail-hero,
.city-hero,
.dept-index-hero,
.dept-hero,
.exam-type-hero,
.hs-hero,
.puan-hero,
.atlas-ui .uni-hero,
.atlas-ui .uni-detail-hero,
.atlas-ui .city-hero,
.atlas-ui .dept-index-hero,
.atlas-ui .dept-hero,
.atlas-ui .exam-type-hero,
.atlas-ui .hs-hero,
.atlas-ui .puan-hero {
    background: linear-gradient(135deg, #0B1F3F 0%, #16325C 58%, #1E4479 100%) !important;
    position: relative;
    overflow: hidden;
}

.atlas-ui .uni-hero::after,
.atlas-ui .uni-detail-hero::after,
.atlas-ui .hs-hero::after,
.atlas-ui .puan-hero::after,
.atlas-ui .dept-index-hero::after,
.atlas-ui .exam-type-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.35), transparent 68%);
    pointer-events: none;
}

.atlas-ui .city-card,
.atlas-ui .info-card,
.atlas-ui .sidebar-card,
.atlas-ui .calc-panel,
.atlas-ui .hs-card,
.atlas-ui .school-card,
.atlas-ui .dept-card {
    background: #fff;
    border: 1px solid var(--atlas-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 10px 30px rgba(11, 31, 63, 0.05) !important;
    animation: atlas-rise .45s ease both;
}

.atlas-ui .city-card:hover,
.atlas-ui .school-card:hover,
.atlas-ui .dept-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(11, 31, 63, 0.1) !important;
    border-color: #F3C3CD !important;
}

.atlas-ui .city-card-arrow,
.atlas-ui .search-box input:focus {
    background: var(--atlas-navy) !important;
    border-color: var(--atlas-navy) !important;
}

.atlas-ui .search-box input,
.atlas-ui .search-input,
.atlas-ui .year-select,
.atlas-ui .filter-select {
    border-radius: 14px !important;
    border: 1px solid var(--atlas-line) !important;
    box-shadow: none !important;
}

.atlas-ui .search-box input:focus,
.atlas-ui .search-input:focus,
.atlas-ui .year-select:focus {
    outline: none;
    border-color: var(--atlas-navy-3) !important;
    box-shadow: 0 0 0 4px rgba(30, 68, 121, 0.12) !important;
    background: #fff !important;
    color: var(--atlas-navy);
    transform: none;
}

.atlas-ui .dept-table {
    border-collapse: separate;
    border-spacing: 0;
}

.atlas-ui .dept-table th {
    background: #F8FAFC !important;
    color: var(--atlas-navy) !important;
    font-size: 12px;
    letter-spacing: .02em;
}

.atlas-ui .dept-table tbody tr {
    transition: background .18s ease;
}

.atlas-ui .dept-table tbody tr:hover {
    background: var(--atlas-red-soft) !important;
}

.atlas-ui .faculty-header,
.atlas-ui .puan-header {
    background: var(--atlas-navy) !important;
    color: #fff !important;
    border-radius: 14px 14px 0 0;
}

.atlas-ui .sure-filter-btn,
.atlas-ui .filter-btn,
.atlas-ui .calc-tab {
    border-radius: 999px !important;
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.atlas-ui .sure-filter-btn.active,
.atlas-ui .filter-btn.active,
.atlas-ui .atlas-chip.active {
    background: var(--atlas-navy) !important;
    color: #fff !important;
    border-color: var(--atlas-navy) !important;
}

.atlas-ui .calc-tab.active,
.atlas-ui .calc-tab[data-tab="lgs"].active,
.atlas-ui .calc-tab[data-tab="kpss"].active {
    background: var(--atlas-navy) !important;
    color: #fff !important;
}

.atlas-ui .calc-tab[data-tab="yks"].active {
    background: linear-gradient(135deg, #9F1239, var(--atlas-red)) !important;
    color: #fff !important;
}

.atlas-ui .btn-add-preference,
.atlas-ui .btn-primary,
.atlas-ui a.btn {
    border-radius: 999px;
}

.atlas-finder {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 16px;
    padding: 14px;
    border-radius: 16px;
    background: #F8FAFC;
    border: 1px solid var(--atlas-line);
}

.atlas-finder label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--atlas-line);
    border-radius: 12px;
    padding: 0 14px;
}

.atlas-finder label:focus-within {
    border-color: var(--atlas-navy-3);
    box-shadow: 0 0 0 4px rgba(30, 68, 121, 0.12);
}

.atlas-finder i { color: var(--atlas-navy-3); }

.atlas-finder input {
    width: 100%;
    border: 0;
    outline: none;
    padding: 12px 0;
    font-size: 15px;
    background: transparent;
    color: var(--atlas-navy);
}

.atlas-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.atlas-chip {
    border: 1px solid var(--atlas-line);
    background: #fff;
    color: var(--atlas-navy);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.atlas-chip:hover { border-color: #F3C3CD; }

.atlas-finder-meta {
    margin: 0;
    color: #64748B;
    font-size: 13px;
}

.atlas-empty {
    display: none;
    text-align: center;
    padding: 28px 12px;
    color: #64748B;
}

.atlas-empty.show { display: block; animation: atlas-rise .3s ease; }

@keyframes atlas-rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

.atlas-wizard {
    --atlas-navy: #0B1F3F;
    --atlas-line: #E6EDF5;
    --atlas-red-soft: #FFF1F2;
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto 8px;
    background: #fff;
    border: 1px solid #E6EDF5;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(11, 31, 63, 0.06);
    padding: 28px 28px 22px;
}
.atlas-wizard h2 { margin: 0 0 16px; font-size: 1.35rem; color: #0B1F3F; }
.atlas-choice { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.atlas-choice button, .atlas-wizard .go, .atlas-hit button, #wizClearCompare {
    border: 1px solid #E6EDF5; background: #fff; color: #0B1F3F;
    border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: 15px; cursor: pointer;
}
.atlas-choice button.on, .atlas-wizard .go { background: #0B1F3F; color: #fff; border-color: #0B1F3F; }
.atlas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.atlas-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: #475569; }
.atlas-grid input, .atlas-grid select {
    border: 1px solid #E6EDF5; border-radius: 12px; padding: 12px 14px; color: #0B1F3F; font-size: 16px; font-weight: 600; background: #fff;
}
.atlas-saved { background: #F8FAFC; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; color: #0B1F3F; }
.atlas-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.atlas-results { display: grid; gap: 10px; margin-top: 18px; }
.atlas-hit {
    display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
    border: 1px solid #E6EDF5; border-radius: 14px; padding: 14px 16px; background: #fff;
}
.atlas-hit b { color: #0B1F3F; font-size: 16px; }
.atlas-hit span { color: #64748B; font-size: 14px; }
.atlas-compare { margin-top: 22px; overflow-x: auto; }
.atlas-compare h3 { margin: 0 0 10px; color: #0B1F3F; font-size: 1.1rem; }
.atlas-compare-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.atlas-compare-table th, .atlas-compare-table td { border-bottom: 1px solid #E6EDF5; padding: 10px 8px; text-align: left; vertical-align: top; }
.atlas-compare-table th { color: #0B1F3F; }
@media (max-width: 768px) {
    .atlas-nav { justify-content: flex-start; overflow-x: auto; }
    .atlas-ui .hero-title { font-size: 1.7rem !important; }
}
