/* search-style.css */

.search-container {
    min-height: 100vh;
    padding: 120px 0 2rem; /* Aumentado o padding-top para dar espaço para a navbar */
    background-color: var(--bg-primary);
}

.search-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header da busca */
.search-header {
    text-align: center;
    margin-bottom: 3rem;
}

.search-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--text-primary); /* Fallback para navegadores que não suportam gradient text */
}

.search-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Caixa de busca */
.search-box {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    color: var(--text-secondary);
    pointer-events: none;
    z-index: 1;
}

#order-number-input {
    flex: 1;
    padding: 1rem 1rem 1rem 3.5rem;
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    font-size: 1.125rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

#order-number-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

#order-number-input:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg-card);
}

.search-button {
    padding: 1rem 2rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shadow);
}

/* Erro de busca */
.search-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 0.5rem;
    color: var(--error-color);
}

/* Resultado da busca */
.order-result {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.result-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.order-number-badge {
    padding: 0.5rem 1rem;
    background: var(--gradient);
    color: white;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Card de status */
.order-status-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.status-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.938rem;
}

.status-badge svg {
    width: 20px;
    height: 20px;
}

.status-badge.pending {
    background: rgba(251, 191, 36, 0.1);
    color: rgb(217, 119, 6);
}

.status-badge.awaiting-payment {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
}

.status-badge.paid {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.status-badge.processing {
    background: rgba(59, 130, 246, 0.1);
    color: rgb(59, 130, 246);
}

.status-badge.completed {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.status-badge.cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

/* Timeline */
.order-timeline {
    position: relative;
    padding-left: 2rem;
}

.order-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    bottom: 0.75rem;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.375rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.timeline-item.completed .timeline-dot {
    background: var(--accent);
    border-color: var(--accent);
}

.timeline-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.timeline-item.completed .timeline-content h4 {
    color: var(--accent);
}

/* Card de detalhes */
.order-details-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.order-details-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Ações do pedido */
.order-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shadow);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent);
}

/* Responsividade */
@media (max-width: 768px) {
    .search-container {
        padding-top: 100px; /* Menos padding no mobile */
    }
    
    .search-header h1 {
        font-size: 2rem;
    }
    
    .search-header p {
        font-size: 1rem;
    }
    
    .search-box {
        padding: 1.5rem;
    }
    
    .search-input-wrapper {
        flex-direction: column;
    }
    
    #order-number-input {
        width: 100%;
        padding-left: 3.5rem;
    }
    
    .search-button {
        width: 100%;
    }
    
    .result-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .status-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .order-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}