/* ===================================================
   DUS İstatistik & Analizler – WordPress Plugin CSS
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=IBM+Plex+Mono:wght@400;600&display=swap');

#dus-istatistik-wrapper {
    font-family: 'Nunito', sans-serif;
    max-width: 1300px;
    margin: 0 auto;
    padding: 32px 16px 48px;
    color: #1a1a2e;
    background: #f0f4f8;
    border-radius: 24px;
}

/* ── BAŞLIK ── */
.dus-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    border-radius: 20px;
    padding: 28px 36px;
    box-shadow: 0 8px 32px rgba(15, 52, 96, 0.25);
}

.dus-header-icon {
    font-size: 48px;
    line-height: 1;
}

.dus-title {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 4px;
    letter-spacing: -0.5px;
}

.dus-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    margin: 0;
    letter-spacing: 0.5px;
}

/* ── KONTROLLER ── */
.dus-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    background: #ffffff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.dus-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.dus-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
}

#dus-search-net {
    width: 100%;
    padding: 13px 14px 13px 46px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

#dus-search-net:focus {
    border-color: #0f3460;
    box-shadow: 0 0 0 3px rgba(15,52,96,0.12);
    background: #fff;
}

#dus-search-net::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

/* Yıl Filtreleri */
.dus-year-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dus-year-btn {
    padding: 10px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #4a5568;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dus-year-btn:hover {
    border-color: #0f3460;
    color: #0f3460;
    background: #ebf4ff;
}

.dus-year-btn.active {
    background: #0f3460;
    border-color: #0f3460;
    color: #fff;
    box-shadow: 0 4px 12px rgba(15,52,96,0.3);
}

/* ── SONUÇ KARTI ── */
.dus-result-card {
    background: linear-gradient(135deg, #e8f5e9, #e3f2fd);
    border: 2px solid #81c784;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.dus-result-title {
    font-size: 16px;
    font-weight: 800;
    color: #2e7d32;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.dus-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.dus-result-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 16px;
    border-left: 4px solid #2e7d32;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.dus-result-item .res-label {
    font-size: 11px;
    font-weight: 700;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
}

.dus-result-item .res-net {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.dus-result-item .res-puan {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2px;
}

.dus-result-item .res-siralama {
    font-size: 13px;
    color: #e53e3e;
    font-weight: 700;
}

.dus-result-item .res-siralama span {
    font-family: 'IBM Plex Mono', monospace;
}

/* ── TABLOLAR GRİD ── */
.dus-tables-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ── TABLO BLOĞU ── */
.dus-table-block {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dus-table-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

.dus-table-block.hidden {
    display: none;
}

/* Tablo Başlığı */
.dus-table-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    color: #fff;
}

.dus-table-year {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    opacity: 0.9;
}

.dus-table-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.2;
    opacity: 0.9;
}

/* Tablo */
.dus-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.dus-table thead tr {
    background: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
}

.dus-table thead th {
    padding: 10px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.dus-table tbody tr {
    border-bottom: 1px solid #f0f4f8;
    transition: background 0.15s;
}

.dus-table tbody tr:last-child {
    border-bottom: none;
}

.dus-table tbody tr:hover {
    background: #f0f9ff;
}

.dus-table tbody td {
    padding: 9px 16px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #2d3748;
}

.dus-table tbody td:first-child {
    font-weight: 700;
    color: #1a1a2e;
}

.dus-table tbody td:last-child {
    color: #718096;
    font-weight: 600;
}

/* Özel satır renkleri */
.dus-table tbody tr.highlight-row {
    background: #fffbeb;
}

.dus-table tbody tr.highlight-row td {
    color: #92400e;
}

.dus-table tbody tr.highlight-row td:first-child {
    color: #78350f;
    font-weight: 800;
}

.dus-table tbody tr.top-row {
    background: linear-gradient(90deg, #fff9f0, #fffbeb);
    border-top: 2px solid #fcd34d;
}

.dus-table tbody tr.top-row td {
    color: #b45309;
    font-weight: 700;
}

/* Arama vurgusu */
.dus-table tbody tr.search-match {
    background: linear-gradient(90deg, #ecfdf5, #d1fae5) !important;
    border-left: 4px solid #10b981;
}

.dus-table tbody tr.search-match td {
    color: #065f46 !important;
    font-weight: 700 !important;
}

/* ── FOOTER ── */
.dus-footer {
    margin-top: 28px;
    padding: 16px 24px;
    background: #ffffff;
    border-radius: 12px;
    border-left: 4px solid #e2e8f0;
}

.dus-footer p {
    margin: 0;
    font-size: 12px;
    color: #a0aec0;
    font-style: italic;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    #dus-istatistik-wrapper {
        padding: 16px 8px 32px;
        border-radius: 12px;
    }

    .dus-header {
        flex-direction: column;
        text-align: center;
        padding: 20px 24px;
        gap: 12px;
    }

    .dus-title {
        font-size: 22px;
    }

    .dus-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .dus-year-filters {
        justify-content: center;
    }

    .dus-tables-container {
        grid-template-columns: 1fr;
    }

    .dus-result-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .dus-result-grid {
        grid-template-columns: 1fr;
    }
}

/* ── GERİ BUTONU ── */
.dus-back-bar {
    margin-bottom: 18px;
}

.dus-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #1a1a2e;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.10);
    border: 1.5px solid #e0e7ef;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s;
    letter-spacing: 0.2px;
}

.dus-back-btn:hover {
    background: #1a1a2e;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(15,52,96,0.18);
    transform: translateX(-3px);
    text-decoration: none;
}

.dus-back-arrow {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.15s;
}

.dus-back-btn:hover .dus-back-arrow {
    transform: translateX(-2px);
}
