/* En Başarılı Akademisyenler - Modern Görsel Tasarım */

.enbasarililar-swiper {
    position: relative;
    margin: 0;
    padding: 2rem 60px;
    overflow: visible;
}

.enbasarililar-swiper .swiper-wrapper {
    align-items: stretch;
}

/* Akademisyen Kartı */
.academic-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 51, 102, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0.85;
    aspect-ratio: 3 / 4;
    max-width: 100%;
}

.swiper-slide-active .academic-card {
    opacity: 1;
    box-shadow: 0 20px 60px rgba(0, 51, 102, 0.3);
    transform: scale(1);
}

.swiper-slide-prev .academic-card,
.swiper-slide-next .academic-card {
    opacity: 0.75;
    transform: scale(0.95);
}

.swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) .academic-card {
    opacity: 0.85;
    transform: scale(0.9);
}

.academic-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 25px 70px rgba(0, 51, 102, 0.4);
    opacity: 1 !important;
}

/* Büyük Profil Fotoğrafı */
.academic-card-image {
    position: relative;
    width: 100%;
    height: 60%;
    overflow: hidden;
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    flex-shrink: 0;
}

.academic-card-image.avatar-mode {
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.academic-card-image.photo-mode {
    background: #f7fafc;
}

.academic-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.academic-card-image.avatar-mode .academic-photo {
    object-fit: contain;
    padding: 40px;
    filter: brightness(1.1);
}

.academic-card:hover .academic-photo {
    transform: scale(1.05);
}

/* Fotoğraf Üzeri Overlay */
.academic-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.95) 0%, rgba(0, 51, 102, 0.8) 60%, transparent 100%);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.academic-name-overlay {
    margin-bottom: 0.5rem;
    order: -1;
}

.academic-name-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.academic-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #003366;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.academic-score-badge.score-excellent {
    background: linear-gradient(135deg, #e6f2ff 0%, #cce5ff 100%);
    color: #003366;
    border: 2px solid #003366;
}

.academic-score-badge.score-good {
    background: linear-gradient(135deg, #fff4e6 0%, #ffe6cc 100%);
    color: #004080;
    border: 2px solid #ffc107;
}

.academic-score-badge.score-average {
    background: linear-gradient(135deg, #f7fafc 0%, #e2e8f0 100%);
    color: #64748b;
    border: 2px solid #cbd5e0;
}

.academic-score-badge i {
    color: #ffc107;
    font-size: 1rem;
}

/* İçerik Bölümü */
.academic-card-content {
    padding: 1.5rem 1.25rem;
    background: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.academic-info-header {
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.academic-full-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #003366;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.academic-department {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

/* İstatistikler */
.academic-stats {
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.academic-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.academic-stat-item:hover {
    background: linear-gradient(135deg, #e6f2ff 0%, #f0f7ff 100%);
    border-color: #003366;
    transform: translateX(5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003366;
    line-height: 1.2;
}

/* Profil Görüntüle Butonu */
.academic-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    color: #ffffff;
    padding: 0.875rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.academic-view-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.academic-view-btn:hover::before {
    left: 100%;
}

.academic-view-btn:hover {
    background: linear-gradient(135deg, #004080 0%, #0052a3 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 51, 102, 0.35);
    color: #ffffff;
}

.academic-view-btn i {
    transition: transform 0.3s ease;
}

.academic-view-btn:hover i {
    transform: translateX(5px);
}

/* Swiper Animasyonları */
.swiper-slide {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: auto;
    display: flex;
}

.swiper-slide-active {
    z-index: 10;
}

/* Swiper Navigasyon */
.swiper-button-next,
.swiper-button-prev {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #003366;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 20px rgba(0, 51, 102, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.swiper-button-next {
    right: 10px;
}

.swiper-button-prev {
    left: 10px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: #003366;
    border-color: #003366;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 51, 102, 0.4);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.2rem;
    color: #003366;
    font-weight: 700;
}

.swiper-button-next:hover::after,
.swiper-button-prev:hover::after {
    color: #ffffff;
}

/* Pagination */
.swiper-pagination {
    position: relative;
    margin-top: 2rem;
    bottom: 0 !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #cbd5e0;
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
    background: #003366;
    opacity: 1;
    width: 32px;
    border-radius: 6px;
    transform: scale(1.2);
}

.swiper-pagination-bullet:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Skor Legend */
.kku-score-legend {
    position: absolute;
    left: 20px;
    top: 20px;
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 100;
    flex-wrap: wrap;
}

.kku-score-legend span {
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.kku-score-legend .excellent {
    color: #003366;
    border: 2px solid #003366;
}

.kku-score-legend .good {
    color: #ffc107;
    border: 2px solid #ffc107;
}

.kku-score-legend .avg {
    color: #6c757d;
    border: 2px solid #6c757d;
}

/* Top 10 Badge */
.badge[style*="position:absolute"] {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
    z-index: 100;
    right: 20px;
    top: 20px;
}

/* Loading ve Error */
#enbasarililar-loading {
    padding: 3rem;
    color: #64748b;
    font-style: italic;
    text-align: center;
    font-size: 1.1rem;
}

#enbasarililar-error {
    padding: 1.5rem;
    background: #fed7d7;
    border: 2px solid #feb2b2;
    border-radius: 12px;
    color: #c53030;
    text-align: center;
}

/* Responsive Tasarım */
@media (max-width: 1200px) {
    .enbasarililar-swiper {
        padding: 2rem 50px;
    }
    
    .academic-card-image {
        height: 55%;
    }
    
    .academic-full-name {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .enbasarililar-swiper {
        margin: 0;
        padding: 1rem 0;
    }
    
    .academic-card-image {
        height: 50%;
    }
    
    .academic-name-text {
        font-size: 1.1rem;
    }
    
    .academic-full-name {
        font-size: 1.2rem;
        min-height: auto;
    }
    
    .academic-card-content {
        padding: 1.5rem 1.25rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
        display: none;
    }
    
    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .academic-card-image {
        height: 45%;
    }
    
    .academic-name-text {
        font-size: 1rem;
    }
    
    .academic-full-name {
        font-size: 1.1rem;
    }
    
    .academic-department {
        font-size: 0.9rem;
    }
    
    .academic-card-content {
        padding: 1.25rem 1rem;
    }
    
    .kku-score-legend {
        position: relative;
        left: 0;
        top: 0;
        margin-bottom: 1rem;
        justify-content: center;
    }
    
    .badge[style*="position:absolute"] {
        position: relative !important;
        right: 0;
        top: 0;
        margin-bottom: 1rem;
        display: inline-block;
    }
}

/* Animasyonlar */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.academic-card {
    animation: fadeInScale 0.6s ease-out;
}

.swiper-slide-active .academic-card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Index yeniden oluşturma butonu */
#rebuildIndexBtn {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    color: #ffffff;
}

#rebuildIndexBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%);
}

#rebuildIndexBtn i {
    margin-right: 6px;
    animation: spin 2s linear infinite;
}
