/* ============================================
   top.css - Sıralama Sayfası
   ============================================ */

.top-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.top-main {
    flex: 1;
    min-width: 0;
    order: 1;
}

.top-sidebar {
    width: 340px;
    flex-shrink: 0;
    order: 2;
}

/* Hero */
.top-hero {
    background: linear-gradient(135deg, #ff6b6b, #ffa502);
    color: white;
    text-align: center;
    padding: 35px 20px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.top-hero-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

.top-hero-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.top-hero-subtitle {
    font-size: 15px;
    opacity: 0.9;
    margin: 0;
}

/* Periyot Seçimi */
.top-period-tabs {
    display: flex;
    gap: 8px;
    background: white;
    padding: 6px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.period-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    text-decoration: none;
    color: #666;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.period-tab:hover {
    background: #f0f0f0;
    color: #333;
}

.period-tab.active {
    background: linear-gradient(135deg, #ff6b6b, #ffa502);
    color: white;
}

/* Bölüm */
.top-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.section-title {
    font-size: 20px;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #ff6b6b;
}

/* Liste */
.top-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s;
    border: 1px solid #f0f0f0;
}

.top-item:hover {
    background: #f8f9fa;
    border-color: #e0e0e0;
    transform: translateX(5px);
}

.top-item-small {
    padding: 12px 15px;
}

/* Sıralama */
.top-rank {
    flex-shrink: 0;
    width: 45px;
    text-align: center;
}

.rank-medal {
    font-size: 30px;
}

.rank-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #f0f0f0;
    border-radius: 50%;
    font-weight: 700;
    color: #888;
    font-size: 16px;
}

.top-item:nth-child(1) { border-left: 4px solid #ffd700; }
.top-item:nth-child(2) { border-left: 4px solid #c0c0c0; }
.top-item:nth-child(3) { border-left: 4px solid #cd7f32; }

/* İçerik */
.top-content {
    flex: 1;
    min-width: 0;
}

.top-item-title {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.top-item-small .top-item-title {
    font-size: 14px;
}

.top-item-title a {
    color: #2c3e50;
    text-decoration: none;
}

.top-item-title a:hover {
    color: #ff6b6b;
}

.top-item-meta {
    font-size: 12px;
    color: #888;
    display: flex;
    gap: 10px;
}

.top-author a {
    color: #667eea;
    text-decoration: none;
}

/* İstatistikler */
.top-stats {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.top-stat {
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.top-stat i {
    font-size: 14px;
}

.top-stat .fa-heart { color: #ff4757; }
.top-stat .fa-comment { color: #667eea; }
.top-stat .fa-eye { color: #27ae60; }

/* Boş */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state i {
    font-size: 50px;
    display: block;
    margin-bottom: 15px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .top-layout {
        flex-direction: column;
    }
    
    .top-main {
        order: 1;
        width: 100%;
    }
    
    .top-sidebar {
        order: 2;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .top-hero {
        padding: 25px 15px;
    }
    
    .top-hero-title {
        font-size: 24px;
    }
    
    .top-hero-icon {
        font-size: 40px;
    }
    
    .period-tab {
        font-size: 12px;
        padding: 10px 8px;
    }
    
    .top-section {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .top-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .top-rank {
        width: 35px;
    }
    
    .rank-medal {
        font-size: 24px;
    }
    
    .top-stats {
        width: 100%;
        justify-content: space-around;
        padding-top: 10px;
        border-top: 1px solid #f0f0f0;
    }
}

@media (max-width: 480px) {
    .top-hero-title {
        font-size: 20px;
    }
    
    .top-period-tabs {
        flex-direction: column;
    }
    
    .top-item-title {
        font-size: 14px;
    }
    
    .top-item-small .top-item-title {
        font-size: 13px;
    }
}