/* Üniversite / bölüm karşılaştırma sayfaları */

.rehberim-karsilastir-main {
    padding: 1.5rem 0 3rem;
}

.rehberim-karsilastir-head {
    margin-bottom: 1.25rem;
}

.rehberim-karsilastir-head h1 {
    font-size: 1.65rem;
    font-weight: 800;
    color: #1a4d3e;
    margin: 0 0 0.35rem;
}

.rehberim-karsilastir-lead {
    color: #4b5563;
    font-size: 0.95rem;
    margin: 0;
    max-width: 52rem;
}

.rehberim-compare-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.rehberim-compare-toolbar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid #1a4d3e;
    background: #fff;
    color: #1a4d3e;
    cursor: pointer;
}

.rehberim-compare-toolbar .btn-primary-like {
    background: #1a4d3e;
    color: #fff;
}

.rehberim-compare-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    background: #f8faf9;
    border: 1px dashed #c5d4ce;
    border-radius: 12px;
    color: #374151;
}

.rehberim-compare-empty strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #1a4d3e;
}

.rehberim-compare-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

table.rehberim-compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.rehberim-compare-table th,
.rehberim-compare-table td {
    padding: 0.65rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
}

.rehberim-compare-table thead th {
    background: #f0f9f5;
    font-weight: 700;
    color: #145038;
    border-bottom: 2px solid #1a4d3e;
}

.rehberim-compare-table--karsilastir tbody td.rehberim-compare-data-cell {
    text-align: center;
    vertical-align: middle;
}

.rehberim-compare-table--karsilastir thead th.rehberim-compare-data-th {
    vertical-align: top;
}

.rehberim-compare-table .metric-col {
    width: 11rem;
    font-weight: 600;
    color: #374151;
    background: #fafafa;
}

.rehberim-compare-table .col-note {
    font-size: 0.78rem;
    color: #6b7280;
    line-height: 1.35;
    max-height: 4.5rem;
    overflow: auto;
}

.rehberim-compare-col-head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 10rem;
}

.rehberim-compare-col-head-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-align: left;
    flex: 1;
    min-width: 0;
}

.rehberim-compare-col-head a {
    color: #1a4d3e;
    font-weight: 700;
    text-decoration: none;
    text-align: left;
}

.rehberim-compare-col-head a:hover {
    text-decoration: underline;
}

.rehberim-compare-col-sub {
    font-size: 0.78rem;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.3;
    text-align: left;
}

.rehberim-compare-col-remove-x {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    margin: 0;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rehberim-compare-col-remove-x:hover {
    background: #fef2f2;
    border-color: #f87171;
    color: #b91c1c;
}

.rehberim-compare-cell-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.rehberim-compare-arrow {
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.rehberim-compare-arrow--up {
    color: #16a34a;
}

.rehberim-compare-arrow--down {
    color: #dc2626;
}

.rehberim-compare-table--karsilastir .col-note {
    text-align: center;
    margin: 0 auto;
}

/* Sidebar chips (university.html) */
.rehberim-uni-compare-card .compare-card-lead,
.rehberim-uni-compare-card .compare-card-foot {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 0 0.75rem;
    line-height: 1.45;
}

.rehberim-uni-compare-card .compare-card-foot {
    margin-top: 0.75rem;
    margin-bottom: 0;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.rehberim-uni-compare-card .compare-card-foot a {
    color: #1a4d3e;
    font-weight: 600;
}

.rehberim-compare-slots {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.rehberim-compare-empty {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0;
}

.rehberim-compare-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    background: #f3f6f4;
    border-radius: 8px;
    border: 1px solid #dce8e2;
}

.rehberim-compare-chip-link {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a4d3e;
    text-decoration: none;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rehberim-compare-chip-link:hover {
    text-decoration: underline;
}

.rehberim-compare-chip-remove {
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    border: none;
    border-radius: 6px;
    background: #fff;
    color: #991b1b;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.rehberim-compare-chip-remove:hover {
    background: #fee2e2;
}

.rehberim-compare-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.rehberim-compare-actions .btn-text {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0.35rem;
}

.rehberim-compare-actions .btn-text:hover {
    color: #1a4d3e;
}

/* Bölüm sıralama — karşılaştır düğmesi */
.btn-bolum-compare-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-right: 0.35rem;
    padding: 0;
    border: 2px solid #1a4d3e;
    border-radius: 8px;
    background: #fff;
    color: #1a4d3e;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-bolum-compare-add:hover {
    background: #1a4d3e;
    color: #fff;
}

.btn-bolum-compare-add.is-added {
    background: #dcfce7;
    border-color: #16a34a;
    color: #15803d;
}

.btn-bolum-compare-add.is-in-compare {
    background: #dcfce7;
    border-color: #16a34a;
    color: #15803d;
}
