/* Auction Page Styles */

.auction-container {
    margin-top: 100px;
    min-height: calc(100vh - 200px);
}

.auction-header {
    text-align: center;
    margin-bottom: 3rem;
}

.auction-header h2 {
    font-size: 2.5rem;
    color: var(--sky);
    margin-bottom: 0.5rem;
}

.auction-header h2 i {
    margin-right: 10px;
}

.auction-header p {
    color: var(--muted);
    font-size: 1.1rem;
}

/* Filtros */
.auction-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 45px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--sky);
    box-shadow: 0 0 20px rgba(56,189,248,0.3);
}

.search-box input::placeholder {
    color: var(--muted);
}



/* Estatísticas */
.auction-stats {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* Grid de Itens */
.auction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Card do Item */
.auction-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(20px);
}

.auction-item:hover {
    transform: translateY(-5px);
    border-color: var(--sky);
    box-shadow: 0 10px 30px rgba(56,189,248,0.2);
}

.auction-item.rare {
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255,215,0,0.2);
}

.auction-item.epic {
    border-color: #c0c0c0;
    box-shadow: 0 0 20px rgba(192,192,192,0.2);
}

.auction-item.legendary {
    border-color: #cd7f32;
    box-shadow: 0 0 20px rgba(205,127,50,0.2);
}

/* Cabeçalho do Item */
.item-header {
    padding: 1rem;
    background: linear-gradient(135deg, rgba(56,189,248,0.1), transparent);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--sky);
    border: 1px solid var(--border);
}

.item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.item-basic-info h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.item-type {
    font-size: 0.8rem;
    color: var(--sky);
}

/* Conteúdo do Item */
.item-content {
    padding: 1rem;
}

.item-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat-tag {
    background: rgba(255,255,255,0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--muted);
}

.stat-tag i {
    margin-right: 5px;
    color: var(--sky);
}

.stat-tag.quantity {
    background: rgba(56,189,248,0.1);
    color: var(--sky);
}

/* Informações do Vendedor */
.seller-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.seller-avatar {
    width: 24px;
    height: 24px;
    background: var(--sky);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--bg-dark);
    font-weight: bold;
}

.seller-name {
    font-size: 0.9rem;
    color: var(--text);
}

/* Preço e Tempo */
.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--sky);
}

.item-price i {
    font-size: 0.9rem;
    margin-right: 5px;
    opacity: 0.8;
}

.item-time {
    font-size: 0.8rem;
    color: var(--muted);
}

.item-time i {
    margin-right: 5px;
}

.item-time.expiring {
    color: #ff6b6b;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.page-btn:hover {
    border-color: var(--sky);
    color: var(--sky);
}

.page-btn.active {
    background: var(--sky);
    color: var(--bg-dark);
    border-color: var(--sky);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading Spinner */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--muted);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--sky);
}

/* Empty State */
.no-items {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--muted);
}

.no-items i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-items h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .auction-filters {
        flex-direction: column;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .category-filter select {
        width: 100%;
    }
    
    .auction-grid {
        grid-template-columns: 1fr;
    }
    
    .auction-header h2 {
        font-size: 2rem;
    }
}

/* ===== ESTILOS PARA OS PREÇOS COM MOEDAS - VERSÃO CORRIGIDA ===== */

.price-display {
    display: flex;
    flex-wrap: nowrap; /* MUDADO: agora não quebra linha */
    gap: 4px; /* Reduzido */
    align-items: center;
    justify-content: flex-end;
    max-width: 100%; /* Garante que não ultrapasse */
}

.currency {
    display: inline-flex;
    align-items: center;
    gap: 3px; /* Reduzido */
    padding: 2px 6px; /* Reduzido */
    border-radius: 16px; /* Reduzido */
    font-weight: 600;
    font-size: 0.75rem; /* Reduzido */
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap; /* Impede quebra de linha dentro da moeda */
}

.currency i {
    font-size: 0.65rem; /* Reduzido */
    margin-right: 1px;
}

/* Cores (mantém iguais) */
.currency.gold {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.3);
}

.currency.silver {
    color: #e0e0e0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
    border-color: rgba(192, 192, 192, 0.3);
}

.currency.bronze {
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
    border-color: rgba(205, 127, 50, 0.3);
}

/* Ajuste no container do footer para melhor alinhamento */
.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.item-time {
    font-size: 0.75rem; /* Reduzido para combinar */
    color: var(--muted);
    white-space: nowrap;
}

.item-time i {
    margin-right: 3px;
    font-size: 0.7rem;
}

/* Responsividade para telas muito pequenas */
@media (max-width: 480px) {
    .item-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .price-display {
        justify-content: flex-start;
    }
}

/* Categorias - CORREÇÃO DAS CORES */
.category-filter select {
    padding: 1rem 2rem 1rem 1rem;
    background: var(--card-bg); /* Fundo escuro */
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text); /* MUDEI AQUI - estava var(--muted) */
    font-size: 1rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    min-width: 200px;
}

/* Cor das opções quando o select está aberto */
.category-filter select option {
    background-color: var(--bg-dark); /* Fundo escuro para as opções */
    color: var(--text); /* Texto claro */
    padding: 10px;
}

/* Cor quando passa o mouse nas opções */
.category-filter select option:hover {
    background-color: var(--sky);
    color: var(--bg-dark);
}

/* Para Firefox */
.category-filter select option:checked {
    background-color: var(--sky);
    color: var(--bg-dark);
}