﻿/* =============================================
   POPÜLER YAZARLAR SAYFASI
   ============================================= */

/* AKADEMİK ALTYAPI - 4 KART */
.academic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.academic-box {
    border-radius: 16px;
    padding: 28px;
    position: relative;
    transition: all 0.2s ease;
}

    .academic-box:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }

.academic-box-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

    .academic-box-icon i {
        font-size: 1.3rem;
    }

.academic-box h3 {
    font-size: 1.1rem;
   
    margin: 0 0 10px 0;
}

.academic-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.85;
}

/* Yeşil - Kurum Kimliği */
.box-green {
    background: #e8f5e9;
}

    .box-green .academic-box-icon {
        background: #4caf50;
        color: #fff;
    }

        .box-green .academic-box-icon i {
            color: #fff;
        }

    .box-green h3 {
        color: #1a1a1a;
    }

    .box-green p {
        color: #333;
    }

/* Mavi - Akademik Profil */
.box-blue {
    background: #e3f2fd;
}

    .box-blue .academic-box-icon {
        background: #1976d2;
        color: #fff;
    }

        .box-blue .academic-box-icon i {
            color: #fff;
        }

    .box-blue h3 {
        color: #1a1a1a;
    }

    .box-blue p {
        color: #333;
    }

/* Turuncu - DOI */
.box-orange {
    background: #fff3e0;
}

    .box-orange .academic-box-icon {
        background: #f57c00;
        color: #fff;
    }

        .box-orange .academic-box-icon i {
            color: #fff;
        }

    .box-orange h3 {
        color: #1a1a1a;
    }

    .box-orange p {
        color: #333;
    }

/* Mor - Yazar Eşleştirme */
.box-purple {
    background: #f3e5f5;
}

    .box-purple .academic-box-icon {
        background: #8e24aa;
        color: #fff;
    }

        .box-purple .academic-box-icon i {
            color: #fff;
        }

    .box-purple h3 {
        color: #1a1a1a;
    }

    .box-purple p {
        color: #333;
    }

/* YAZAR LİSTESİ */
.writer-top-section {
    margin-bottom: 24px;
}

.writer-search-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
}

    .writer-search-box:focus-within {
        border-color: #FF6F0F;
        box-shadow: 0 0 0 4px rgba(255,111,15,0.1);
    }

    .writer-search-box i {
        color: #adb5bd;
        margin-right: 12px;
    }

    .writer-search-box input {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 1rem;
        color: #212529;
        outline: none;
    }

.writer-search-count {
    color: #6c757d;
    font-size: 0.85rem;
}

.writer-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.writer-list-item {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    transition: all 0.2s ease;
}

    .writer-list-item:hover {
        border-color: #FF6F0F;
        background: #fffaf7;
    }

.writer-list-rank {
    width: 28px;
    height: 28px;
    background: #f1f3f4;
    color: #6c757d;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;

    margin-right: 14px;
}

.writer-list-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    
    color: #fff;
    margin-right: 14px;
}

.writer-list-info {
    flex: 1;
}

.writer-list-name {
    font-size: 0.9rem;
  
    color: #1a1a2e;
    margin: 0 0 2px 0;
}

.writer-list-unvan {
    font-size: 0.8rem;
    color: #6c757d;
    margin: 0;
}

.writer-list-social {
    display: flex;
    gap: 6px;
}

    .writer-list-social a {
        width: 28px;
        height: 28px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: transform 0.2s ease;
    }

        .writer-list-social a:hover {
            transform: scale(1.1);
        }

    .writer-list-social .books {
        background: #FF6F0F;
        color: #fff;
    }

    .writer-list-social .orcid {
        background: #a6ce39;
        color: #fff;
    }

    .writer-list-social .scholar {
        background: #4285f4;
        color: #fff;
    }

    .writer-list-social .yok {
        background: #c41e3a;
        color: #fff;
    }

    .writer-list-social .uni {
        background: #28a745;
        color: #fff;
    }

    .writer-list-social .web {
        background: #17a2b8;
        color: #fff;
    }

/* LOADING & EMPTY */
.writer-loading {
    text-align: center;
    padding: 48px 0;
}

    .writer-loading .spinner {
        width: 40px;
        height: 40px;
        border: 3px solid #e9ecef;
        border-top-color: #FF6F0F;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin: 0 auto 12px;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.writer-loading p,
.writer-empty p {
    color: #6c757d;
    margin: 0;
}

.writer-empty {
    text-align: center;
    padding: 48px 0;
}

    .writer-empty i {
        font-size: 2.5rem;
        color: #dee2e6;
        display: block;
        margin-bottom: 12px;
    }

/* RESPONSIVE */
@media (min-width: 1400px) {
    .writer-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .academic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .writer-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .academic-grid {
        grid-template-columns: 1fr;
    }

    .academic-box {
        padding: 24px;
    }

    .writer-list-rank {
        display: none;
    }
}
