/* YÖK Atlas WordPress Tablo Stilleri */
.yokatlas-container {
    width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1a1a1a;
}

/* Filtreleme Formu */
.yokatlas-filter-form {
    background: #fbfbfb;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.yokatlas-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.yokatlas-form-group {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
}

.yokatlas-form-group label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #444;
}

.yokatlas-form-group input,
.yokatlas-form-group select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.yokatlas-form-group input:focus,
.yokatlas-form-group select:focus {
    border-color: #0073aa;
}

.submit-btn-group {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.yokatlas-search-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.yokatlas-search-btn:hover {
    background: #005177;
}

.yokatlas-clear-btn {
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s;
}

.yokatlas-clear-btn:hover {
    background: #d0d0d0;
}

/* Tablo */
.yokatlas-table-responsive {
    overflow-x: auto;
    border: 1px solid #111;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.yokatlas-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    text-align: left;
}

/* Th ve Td borderları */
.yokatlas-data-table th,
.yokatlas-data-table td {
    border: 1px solid #222;
    padding: 10px 12px;
    vertical-align: middle;
}

/* Linkler */
.yokatlas-data-table td a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}
.yokatlas-data-table td a:hover {
    text-decoration: underline;
}

/* Header Boyaması */
.yokatlas-data-table th {
    background-color: #f5d370 !important; /* Gold/Yellow background from image */
    color: #111 !important;
    font-weight: bold;
    text-align: center;
    font-size: 15px;
}

/* Alignment */
.text-center {
    text-align: center;
}

.text-bold {
    font-weight: bold;
}

/* Column Widths & Spacing */
.col-uni {
    min-width: 250px;
}
.col-bolum {
    min-width: 220px;
}
.col-puan {
    width: 80px;
}
.col-yil {
    width: 70px;
}
.col-kont, .col-yer {
    width: 70px;
}
.col-taban {
    width: 110px;
}
.col-sira {
    width: 110px;
}

/* Alternating Row Colors */
.yokatlas-data-table tbody tr:nth-child(odd) td {
    background-color: #ffffff !important;
}

.yokatlas-data-table tbody tr:nth-child(even) td {
    background-color: #fbf9f4 !important; /* Off-white from image */
}

/* Hover Effect */
.yokatlas-data-table tbody tr:hover td {
    background-color: #f2ede0 !important;
}

/* Sayfalama (Pagination) */
.yokatlas-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 25px;
}

.yokatlas-pagination a,
.yokatlas-pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #0073aa;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s;
}

.yokatlas-pagination a:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

.yokatlas-pagination .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
    font-weight: bold;
}

.yokatlas-pagination .dots {
    border: none;
    background: none;
    color: #777;
    cursor: default;
}

/* Accordion (Details/Summary) */
.yokatlas-accordion-wrapper {
    margin-top: 20px;
}

.yokatlas-accordion {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.yokatlas-accordion summary {
    padding: 15px 20px;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    background: #fafafa;
    border-bottom: 1px solid transparent;
    list-style: none; /* Standart oku kaldır */
    position: relative;
    outline: none;
    user-select: none;
}

.yokatlas-accordion summary::-webkit-details-marker {
    display: none; /* Safari için oku kaldır */
}

/* Özel Ok Ekleme */
.yokatlas-accordion summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: bold;
    color: #777;
}

.yokatlas-accordion[open] summary {
    border-bottom: 1px solid #ddd;
    background: #fdfaf0; /* Hafif sarımsı arka plan */
}

.yokatlas-accordion[open] summary::after {
    content: "-";
}

.yokatlas-accordion .accordion-content {
    padding: 15px 20px;
    font-size: 14px;
    line-height: 1.6;
    background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .yokatlas-form-row {
        flex-direction: column;
        align-items: stretch;
    }
    .submit-btn-group {
        justify-content: flex-end;
    }
    
    /* Mobil Tablo Boyut ve Dolgu Optimizasyonu */
    .yokatlas-data-table th, 
    .yokatlas-data-table td {
        padding: 8px 6px !important;
        font-size: 11px !important;
    }
    
    .yokatlas-data-table th {
        font-size: 11px !important;
    }
    
    /* Mobil Sütun Genişlikleri */
    .col-uni {
        min-width: 130px !important;
        width: 130px !important;
    }
    .col-bolum {
        min-width: 120px !important;
        width: 120px !important;
    }
    .col-puan {
        width: 50px !important;
    }
    .col-yil {
        width: 45px !important;
    }
    .col-kont, .col-yer {
        width: 40px !important;
    }
    .col-taban {
        width: 70px !important;
    }
    .col-sira {
        width: 75px !important;
    }
    
    /* Mobilde İlk Sütunu Sabitleme (Sticky First Column) */
    .yokatlas-data-table td:first-child,
    .yokatlas-data-table th:first-child {
        position: -webkit-sticky !important;
        position: sticky !important;
        left: 0 !important;
        z-index: 10 !important;
        box-shadow: 2px 0 5px rgba(0,0,0,0.08);
    }
    
    /* Sabit Başlık Katmanı */
    .yokatlas-data-table th:first-child {
        z-index: 11 !important;
        background-color: #f5d370 !important;
    }
    
    /* Sabitlenen Sütun Arka Plan Renkleri (Opaque Katman) */
    .yokatlas-data-table tbody tr:nth-child(odd) td:first-child {
        background-color: #ffffff !important;
    }
    
    .yokatlas-data-table tbody tr:nth-child(even) td:first-child {
        background-color: #fbf9f4 !important;
    }
    
    .yokatlas-data-table tbody tr:hover td:first-child {
        background-color: #f2ede0 !important;
    }
    
    /* Mobil Kaydırma İpucu (Scroll Indicator) */
    .yokatlas-table-responsive::after {
        content: "← Tabloyu sola/sağa kaydırabilirsiniz →";
        display: block;
        text-align: center;
        font-size: 11px;
        color: #888;
        padding: 8px 0;
        background: #fbf9f4;
        border-top: 1px solid #eee;
        font-weight: 600;
        border-radius: 0 0 8px 8px;
    }
}

/* ==========================================================================
   PREMIUM pSEO BİLEŞENLERİ (İstatistik Kartları, Arama, İndirme ve İlişkili Linkler)
   ========================================================================== */

/* İstatistik Kartları Grid Yapısı */
.yokatlas-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.yokatlas-metric-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.yokatlas-metric-card:hover {
    transform: translateY(-2px);
    border-color: #f5d370;
}

.yokatlas-metric-icon {
    font-size: 28px;
    line-height: 1;
    background: #fffcf3;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #fdf6e2;
}

.yokatlas-metric-info {
    display: flex;
    flex-direction: column;
}

.yokatlas-metric-label {
    font-size: 12px;
    color: #718096;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.yokatlas-metric-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
}

/* Tablo Üstü Kontroller (Arama & Dışa Aktarma) */
.yokatlas-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.yokatlas-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.yokatlas-search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1.5px solid #cbd5e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.yokatlas-search-input:focus {
    border-color: #f5d370;
    box-shadow: 0 0 0 3px rgba(245, 211, 112, 0.2);
}

.yokatlas-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #a0aec0;
    pointer-events: none;
}

.yokatlas-action-buttons {
    display: flex;
    gap: 10px;
}

.yokatlas-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #cbd5e0;
    background: #ffffff;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yokatlas-btn:hover {
    background: #f7fafc;
    color: #1a202c;
    border-color: #a0aec0;
}

.yokatlas-btn-primary {
    background: #fffbef;
    border-color: #f5d370;
    color: #b7791f;
}

.yokatlas-btn-primary:hover {
    background: #f5d370;
    color: #1a202c;
}

/* İlişkili Sayfalar Kartları Grid Yapısı */
.yokatlas-related-section {
    margin-top: 50px;
    margin-bottom: 30px;
}

.yokatlas-related-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
}

.yokatlas-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.yokatlas-related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.yokatlas-related-card:hover {
    transform: translateY(-2px);
    border-color: #f5d370;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.yokatlas-related-card .card-title {
    font-size: 14px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 8px;
    line-height: 1.4;
}

.yokatlas-related-card .card-meta {
    font-size: 12px;
    color: #718096;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.yokatlas-related-card:hover .card-title {
    color: #005177;
    text-decoration: underline;
}

/* Responsive Düzenlemeler */
@media (max-width: 1024px) {
    .yokatlas-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .yokatlas-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .yokatlas-metrics-grid {
        grid-template-columns: 1fr;
    }
    .yokatlas-related-grid {
        grid-template-columns: 1fr;
    }
    .yokatlas-controls-row {
        flex-direction: column;
        align-items: stretch;
    }
    .yokatlas-action-buttons {
        justify-content: stretch;
    }
    .yokatlas-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Yazıcı Görünümü (Print Styles) */
@media print {
    body * {
        visibility: hidden;
    }
    .yokatlas-data-table, .yokatlas-data-table * {
        visibility: visible;
    }
    .yokatlas-data-table {
        position: absolute;
        left: 0;
        top: 0;
        width: 100% !important;
        border-collapse: collapse !important;
    }
    .yokatlas-data-table th, .yokatlas-data-table td {
        border: 1px solid #000 !important;
        padding: 8px !important;
        font-size: 12px !important;
        color: #000 !important;
        background: #fff !important;
    }
    .yokatlas-data-table th {
        background: #f0f0f0 !important;
        font-weight: bold !important;
    }
}

/* Yıllık Başarı Sıralaması Değişim Göstergeleri (YoY Rank Change) */
.change-up {
    color: #2f855a !important;
    font-weight: bold;
    background-color: #f0fff4;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #c6f6d5;
}

.change-down {
    color: #c53030 !important;
    font-weight: bold;
    background-color: #fff5f5;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #fed7d7;
}

.change-stable {
    color: #4a5568 !important;
    font-weight: bold;
    background-color: #edf2f7;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}
