/**
 * ranking_best_sellers.css
 * 
 * Estilos para o ranking de Best Sellers na coluna 3
 * - Destaque do 1º lugar com medalha e capa
 * - Lista ordenada com posição e vendas
 * - Responsivo
 * 
 * @version 1.0.0
 * @date 2025-11-12
 */

/* =================================================================
   BEST SELLERS - DESTAQUE 1º LUGAR
   ================================================================= */

.bestseller-destaque {
    text-align: center;
    margin: 15px 0 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.bestseller-destaque:hover {
    transform: translateY(-3px);
}

.bestseller-medal {
    font-size: 2rem;
    margin-bottom: 5px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.bestseller-capa-container {
    width: 80px;
    height: 115px;
    margin: 0 auto 10px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    transition: box-shadow 0.2s ease;
    border: 2px solid #d4af37;
}

.bestseller-destaque:hover .bestseller-capa-container {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.bestseller-capa {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bestseller-titulo-destaque {
    font-size: 0.85rem;
    color: #243447;
    margin: 0 0 4px;
    padding: 0 10px;
    line-height: 1.3;
    font-weight: 600;
}

.bestseller-vendas-destaque {
    font-size: 0.75rem;
    color: #27ae60;
    font-weight: 700;
    margin: 0;
}

/* =================================================================
   BEST SELLERS - LISTA
   ================================================================= */

.bestseller-lista {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    font-size: 0.85rem;
}

.bestseller-lista li {
    padding: 8px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.bestseller-lista li:hover {
    background: rgba(52, 152, 219, 0.08);
    transform: translateX(3px);
}

.bestseller-posicao {
    font-weight: 700;
    color: #6393A6;
    min-width: 28px;
    font-size: 0.8rem;
}

.bestseller-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bestseller-nome {
    color: #243447;
    font-weight: 500;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bestseller-vendas {
    color: #27ae60;
    font-size: 0.7rem;
    font-weight: 600;
}

/* =================================================================
   BEST SELLERS - LINK
   ================================================================= */

.bestseller-link {
    display: block;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #6393A6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bestseller-link:hover {
    color: #2d7bd1;
    text-decoration: underline;
}

/* =================================================================
   RESPONSIVIDADE
   ================================================================= */

@media (max-width: 1200px) {
    .bestseller-capa-container {
        width: 70px;
        height: 100px;
    }
    
    .bestseller-titulo-destaque {
        font-size: 0.8rem;
    }
    
    .bestseller-lista {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .bestseller-capa-container {
        width: 60px;
        height: 86px;
    }
    
    .bestseller-titulo-destaque {
        font-size: 0.75rem;
    }
    
    .bestseller-vendas-destaque {
        font-size: 0.7rem;
    }
    
    .bestseller-lista {
        font-size: 0.75rem;
    }
    
    .bestseller-nome {
        font-size: 0.8rem;
    }
}
