/* /css/meus-pedidos.css */

/* --- GERAL E FUNDO CÓSMICO --- */
body {
    background-color: #0a0a0f;
    color: #eee;
    font-family: 'Poppins', sans-serif; /* Usamos Poppins para textos, mais legível */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 78, 203, 0.1), transparent 40%),
        radial-gradient(circle at 80% 15%, rgba(0, 234, 255, 0.1), transparent 40%);
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* --- HEADER --- */
.main-header {
    padding: 20px;
    text-align: center;
}
.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff4ecb;
    text-decoration: none;
    text-shadow: 0 0 10px #ff4ecb, 0 0 20px #ff4ecb;
    letter-spacing: 2px;
}

/* --- CONTAINER PRINCIPAL --- */
.pedidos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    font-size: 2.5rem;
    color: #00eaff;
    text-shadow: 0 0 15px #00eaff;
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* --- LOADER (Reaproveitando o estilo do checkout) --- */
.loader-container {
    text-align: center;
    padding: 50px 0;
    color: rgba(255, 255, 255, 0.7);
}
.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ff4ecb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- GRID DE PEDIDOS --- */
.pedidos-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* --- O CARD DE PEDIDO (A ESTRELA DA NOITE) --- */
.pedido-card {
    background: #10121a;
    border: 1px solid rgba(161, 86, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(161, 86, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pedido-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 30px rgba(161, 86, 255, 0.3);
}

.card-header {
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid rgba(161, 86, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-header h4 {
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    color: #eee;
}
.codigo-pedido {
    color: #ffe85e; /* Amarelo neon para destaque */
    font-weight: bold;
}
.data-pedido {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.card-body {
    padding: 20px;
    flex-grow: 1;
}

.status-wrapper {
    margin-bottom: 20px;
}
.status-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 8px;
}
.status-pedido {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* --- ESTILOS DINÂMICOS PARA O STATUS --- */
.status-pedido[data-status="Aguardando Pagamento"] { background-color: #ffe85e; color: #333; }
.status-pedido[data-status="Pago"],
.status-pedido[data-status="Em Preparo"] { background-color: #00eaff; color: #0a0a0f; }
.status-pedido[data-status="A Caminho"] { background-color: #ff4ecb; color: #0a0a0f; }
.status-pedido[data-status="Entregue"] { background-color: #39ff14; color: #0a0a0f; }
.status-pedido[data-status="Cancelado"] { background-color: #ff3d3d; color: #fff; }
.status-pedido[data-status="Expirado"] { background-color: #6c757d; color: #fff; }

.itens-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}
.itens-list li {
    padding: 5px 0;
    display: flex;
    align-items: center;
}
.itens-list li::before {
    content: '✦';
    color: #a156ff;
    margin-right: 10px;
    font-size: 1.2em;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(161, 86, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
}
.total-pedido {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: bold;
    color: #39ff14;
    text-shadow: 0 0 8px #39ff14;
}
.pedido-actions {
    display: flex;
    gap: 10px;
}

/* --- BOTÕES DE AÇÃO --- */
.btn-pagar {
    background-color: #ff4ecb;
    color: #0a0a0f;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.8rem;
}
.btn-pagar:hover {
    box-shadow: 0 0 15px #ff4ecb;
    transform: scale(1.05);
}

.btn-remover {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
    transition: color 0.2s ease;
}
.btn-remover:hover {
    color: #ff3d3d;
}

/* --- ESTADO VAZIO --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: rgba(16, 18, 26, 0.5);
    border: 1px dashed rgba(161, 86, 255, 0.4);
    border-radius: 10px;
    margin-top: 40px;
}
.empty-icon {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}
.empty-state h2 {
    font-family: 'Orbitron', sans-serif;
    color: #00eaff;
    margin: 20px 0 10px;
}
.empty-state p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
    margin: 0 auto 30px;
}
.btn-primary { /* Estilo padrão para botões primários */
    background-color: #ff4ecb; color: #0a0a0f;
    border: none; padding: 15px 30px; border-radius: 5px;
    font-family: 'Orbitron', sans-serif; font-weight: bold;
    cursor: pointer; transition: all 0.2s ease;
    text-decoration: none;
}
.btn-primary:hover {
    box-shadow: 0 0 15px #ff4ecb; transform: scale(1.02);
}

/* Animação para o ícone flutuante */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    .pedidos-list-grid {
        grid-template-columns: 1fr; /* Uma coluna em telas pequenas */
    }
}

/* Em: public/cliente/css/meus-pedidos.css */

/* --- Seção de Contato via WhatsApp --- */
.contact-section {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(161, 86, 255, 0.2);
    animation: fadeIn 1s ease; /* Animação suave de entrada */
}

.contact-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: #39ff14; /* Verde neon, a cor universal do WhatsApp */
    color: #0a0a0f;
    border-radius: 50px; /* Bordas bem arredondadas */
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
}

.btn-whatsapp:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(57, 255, 20, 0.7);
}

.btn-whatsapp svg {
    width: 24px;
    height: 24px;
    stroke: #0a0a0f; /* Cor do ícone */
}

/* Animação de entrada */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}