/**
 * CardápioPro - Custom CSS
 * Estilos com visual moderno estilo iFood
 */

/* Cores principais estilo iFood */
:root {
    --primary: #ea5d2d;      /* Laranja iFood */
    --primary-dark: #d44d1f;
    --primary-light: #f57c4a;
    --secondary: #fafafa;    /* Fundo claro */
    --surface: #ffffff;      /* Cards brancos */
    --surface-alt: #f5f5f5;  /* Fundo alternativo */
    --text-primary: #1a1a1a; /* Texto principal */
    --text-secondary: #666666;
    --text-muted: #999999;
    --border: #e0e0e0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float { 
    0%, 100% { transform: translateY(0); } 
    50% { transform: translateY(-8px); } 
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Skeleton Loader */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Cards com estilo iFood */
.card-ifood {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.card-ifood:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Botões primários estilo iFood */
.btn-primary {
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Status badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pendente {
    background: #FFF3E0;
    color: #E65100;
}

.status-confirmado {
    background: #E3F2FD;
    color: #1565C0;
}

.status-em_preparo {
    background: #FFF3E0;
    color: #EF6C00;
}

.status-pronto {
    background: #F3E5F5;
    color: #7B1FA2;
}

.status-em_entrega {
    background: #E0F7FA;
    color: #00838F;
}

.status-entregue {
    background: #E8F5E9;
    color: #2E7D32;
}

.status-cancelado {
    background: #FFEBEE;
    color: #C62828;
}

/* Tipografia */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Inputs estilo iFood */
.input-ifood {
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.input-ifood:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(234, 93, 45, 0.15);
    background: var(--surface);
}

.input-ifood::placeholder {
    color: var(--text-muted);
}

/* Tables */
.table-ifood {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-ifood th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
}

.table-ifood td {
    padding: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.table-ifood tbody tr:hover {
    background: var(--surface-alt);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--surface-alt);
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Modais */
.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Toast notifications */
.toast {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.3s ease;
}

.toast-success {
    background: #E8F5E9;
    border: 1px solid #C8E6C9;
    color: #2E7D32;
}

.toast-error {
    background: #FFEBEE;
    border: 1px solid #FFCDD2;
    color: #C62828;
}

.toast-warning {
    background: #FFF3E0;
    border: 1px solid #FFE0B2;
    color: #E65100;
}

.toast-info {
    background: #E3F2FD;
    border: 1px solid #BBDEFB;
    color: #1565C0;
}

/* Menu item estilo iFood */
.menu-item-ifood {
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.2s ease;
}

.menu-item-ifood:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.menu-item-ifood .product-image {
    transition: transform 0.3s ease;
}

.menu-item-ifood:hover .product-image {
    transform: scale(1.05);
}

/* Cores das categorias */
.category-orange { background: #FFF3E0; color: #E65100; }
.category-amber { background: #FFF8E1; color: #FF8F00; }
.category-emerald { background: #E8F5E9; color: #2E7D32; }
.category-sky { background: #E3F2FD; color: #1565C0; }
.category-rose { background: #FCE4EC; color: #AD1457; }
.category-purple { background: #F3E5F5; color: #7B1FA2; }
.category-red { background: #FFEBEE; color: #C62828; }

/* Loader */
.loader {
    width: 32px;
    height: 32px;
    border: 3px solid var(--surface-alt);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* QR Code placeholder */
.qr-placeholder {
    background: white;
    padding: 16px;
    border-radius: var(--radius-md);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .mobile-full { width: 100%; }
    .hide-mobile { display: none; }
    
    .mobile-text-sm { font-size: 0.875rem; }
    .mobile-text-xs { font-size: 0.75rem; }
    .mobile-p-2 { padding: 0.5rem; }
    .mobile-p-3 { padding: 0.75rem; }
    .mobile-mb-2 { margin-bottom: 0.5rem; }
    .mobile-mb-4 { margin-bottom: 1rem; }
    .mobile-gap-2 { gap: 0.5rem; }
    .mobile-gap-3 { gap: 0.75rem; }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .tablet-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Preço estilo iFood */
.price-tag {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.125rem;
}

/* Badge de disponibilidade */
.available-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #E8F5E9;
    color: #2E7D32;
}

.unavailable-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #FFEBEE;
    color: #C62828;
}

/* Hero section para cardápio público */
.hero-food {
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%),
                url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1920') center/cover;
}

/* Cores específicas para categorias no cardápio público */
.category-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.category-dot-orange { background: #FF6D00; }
.category-dot-amber { background: #FFB300; }
.category-dot-emerald { background: #00C853; }
.category-dot-sky { background: #00B0FF; }
.category-dot-rose { background: #FF4081; }
.category-dot-purple { background: #D500F9; }

/* Botão flutuante do carrinho estilo iFood */
.cart-fab {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(234, 93, 45, 0.4);
    transition: all 0.3s ease;
}

.cart-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(234, 93, 45, 0.5);
}
