/* Detay Sayfası CSS */

/* Modern Filtre Paneli */
.filter-section {
    transition: all 0.3s ease;
}

.filter-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.filter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.1);
}

.filter-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Yazar Popover Stilleri */
.author-popover {
    position: absolute;
    z-index: 9999;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.author-popover.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.author-popover::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 4px;
}

/* Sonuç Türleri için Farklı Tasarımlar */
.result-article {
    border-left: 4px solid #3b82f6;
}

.result-conference {
    border-left: 4px solid #8b5cf6;
}

.result-researcher {
    border-left: 4px solid #10b981;
}

.result-project {
    border-left: 4px solid #f59e0b;
}

/* Arama Menüsü Stilleri */
.search-nav-item {
    position: relative;
    padding: 12px 20px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-nav-item:hover {
    color: #3b82f6;
}

.search-nav-item.active {
    color: #3b82f6;
    font-weight: 600;
}

.search-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 3px 3px 0 0;
}

/* Arama Çubuğu Animasyonu */
.search-bar-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.search-bar-container:focus-within {
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

/* Tab İçerik Geçişleri */
.result-tab-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    width: 100%;
    visibility: hidden;
}

.result-tab-content.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    visibility: visible;
}

/* Checkbox Özelleştirmeleri */
.custom-checkbox {
    position: relative;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #f3f4f6;
    border-radius: 6px;
    border: 2px solid #d1d5db;
    transition: all 0.2s ease;
}

.custom-checkbox:hover .checkmark {
    border-color: #3b82f6;
}

.custom-checkbox input:checked ~ .checkmark {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
    display: block;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #3b82f6 0%, #3b82f6 var(--value-percent, 50%), #e5e7eb var(--value-percent, 50%), #e5e7eb 100%);
    border-radius: 10px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Sonuç Kartları */
.result-card {
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.result-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 1024px) {
    .sticky-sidebar {
        position: static;
        height: auto;
    }

    .author-popover {
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90%;
        max-width: 320px;
    }

    .author-popover::before {
        display: none;
    }
}

      /* Modal stilleri */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            z-index: 9998;
            display: none;
        }

        .detail-modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.95);
            background: white;
            border-radius: 24px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            width: 90%;
            max-width: 1200px;
            max-height: 90vh;
            overflow-y: auto;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .detail-modal.active {
            opacity: 1;
            visibility: visible;
            transform: translate(-50%, -50%) scale(1);
        }

        .modal-overlay.active {
            display: block;
        }

        .modal-header {
            padding: 1.5rem 2rem;
            border-bottom: 1px solid #e2e8f0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(to right, #667eea, #764ba2);
            border-radius: 24px 24px 0 0;
            color: white;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .modal-close {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
            border: none;
            color: white;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close:hover {
            background: rgba(255,255,255,0.3);
            transform: rotate(90deg);
        }

        .modal-body {
            padding: 2rem;
        }

        .chart-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .chart-card {
            background: #f8fafc;
            border-radius: 20px;
            padding: 1.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .chart-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #e2e8f0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .chart-title i {
            color: #667eea;
        }

        .chart-container {
            position: relative;
            height: 300px;
            width: 100%;
        }

        .detail-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 0.5rem 1.5rem;
            border-radius: 9999px;
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .detail-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px -5px rgba(102, 126, 234, 0.5);
        }

        .stats-badge {
            background: linear-gradient(135deg, #f6f9fc 0%, #e6f0f9 100%);
            border-radius: 12px;
            padding: 0.5rem 1rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1rem;
        }

        .stats-badge i {
            color: #667eea;
        }

        /* Modal içindeki tablo için responsive */
        .overflow-x-auto {
            overflow-x: auto;
        }
        .modal-overlay {
    display: none;  /* BU OLMALI */
}

.detail-modal {
    opacity: 0;      /* BU OLMALI */
    visibility: hidden; /* BU OLMALI */
}
/* SDG filtre butonları */
.sdg-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}
.sdg-btn:hover {
    transform: scale(1.08);
    border-color: #94a3b8 !important;
}
.sdg-btn.active-sdg {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.4);
    transform: scale(1.08);
}

/* Sayfalama */
.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Çalışma alanı scroll kutusu */
.filter-card .space-y-2::-webkit-scrollbar { width: 4px; }
.filter-card .space-y-2::-webkit-scrollbar-track { background: #f1f5f9; }
.filter-card .space-y-2::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
