/* ===================================================
   DUS İstatistik Tercih – 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-tercih-wrapper {
    font-family: 'Nunito', sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 16px 48px;
    color: #1a1a2e;
    background: #f0f4f8;
    border-radius: 24px;
}

/* ── BAŞLIK ── */
.dt-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    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);
}

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

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

.dt-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin: 0;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

/* ── BİLGİ KUTUSU ── */
.dt-info-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
}

.dt-info-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.dt-info-box p {
    margin: 0;
}

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

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

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

#dt-search-siralama {
    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;
}

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

#dt-search-siralama::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

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

.dt-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;
}

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

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

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

.dt-result-title {
    font-size: 16px;
    font-weight: 800;
    color: #92400e;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

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

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

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

.dt-result-item .res-baz {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 700;
    margin-bottom: 4px;
}

.dt-result-item .res-siralama-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
}

.dt-result-item .res-note {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

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

/* ── TABLO BLOĞU ── */
.dt-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;
}

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

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

/* Tablo Başlığı */
.dt-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    color: #fff;
}

.dt-table-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.dt-table-year {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    opacity: 0.95;
}

.dt-table-name {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.dt-table-badge {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Subtitle */
.dt-table-subtitle {
    background: #fffbeb;
    border-bottom: 1px solid #fef3c7;
    padding: 8px 16px;
    font-size: 11.5px;
    color: #92400e;
    line-height: 1.5;
}

.dt-table-subtitle strong {
    color: #78350f;
}

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

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

.dt-table thead th {
    padding: 8px 10px;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.dt-table thead th:first-child,
.dt-table thead th:nth-child(4) {
    color: #0f3460;
    border-left: 2px solid #e2e8f0;
}

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

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

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

.dt-table tbody td {
    padding: 7px 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #4a5568;
    text-align: center;
}

.dt-table tbody td:first-child,
.dt-table tbody td:nth-child(4) {
    font-weight: 700;
    color: #1a1a2e;
    border-left: 2px solid #e8f0fe;
    background: #f8faff;
}

/* Baz satırı */
.dt-table tbody tr.dt-baz-row {
    background: linear-gradient(90deg, #fef3c7, #fffbeb);
    border-top: 2px solid #f59e0b;
}

.dt-table tbody tr.dt-baz-row td {
    color: #92400e;
    font-weight: 700;
}

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

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

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

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

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

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

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

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

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

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

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

    .dt-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

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

    .dt-table {
        font-size: 11px;
    }

    .dt-table tbody td {
        padding: 6px 6px;
        font-size: 11px;
    }
}

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

.dt-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;
}

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

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

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