/**
 * Sistema Somos Mais - Estilos Customizados
 * 
 * Desenvolvido por Roka Digital
 * https://rokadigital.com.br/contato/
 * 
 * @version 1.0.0
 */

/* =====================================================
   Animações
   ===================================================== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(62, 168, 150, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(62, 168, 150, 0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* =====================================================
   Scrollbar Customizada
   ===================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero-gradient {
    background: linear-gradient(135deg, #134540 0%, #1a5c53 25%, #3ea896 50%, #5bbfae 75%, #7dd4c5 100%);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease infinite;
}

.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
}

/* =====================================================
   Cards de Produto
   ===================================================== */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

.product-card .product-image {
    overflow: hidden;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-card .product-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.product-card .product-actions {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   Glassmorphism
   ===================================================== */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* =====================================================
   Filtros Sidebar
   ===================================================== */
.filter-chip {
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-chip:hover {
    background: #d5f0ea;
    color: #2e8c80;
    border-color: #5bbfae;
}

.filter-chip.active {
    background: #2e8c80;
    color: #fff;
    border-color: #2e8c80;
}

/* =====================================================
   Botões
   ===================================================== */
.btn-primary {
    background: linear-gradient(135deg, #3ea896 0%, #2e8c80 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(62, 168, 150, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(62, 168, 150, 0.45);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* =====================================================
   Loading Skeleton
   ===================================================== */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* =====================================================
   Lazy Load Images
   ===================================================== */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"][complete] {
    opacity: 1;
}

/* =====================================================
   Form Styles
   ===================================================== */
.form-input {
    transition: all 0.2s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 3px rgba(62, 168, 150, 0.15);
}

/* =====================================================
   Dashboard (Admin)
   ===================================================== */
.stat-card {
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   Responsive Adjustments
   ===================================================== */
@media (max-width: 640px) {
    .hero-gradient h2 {
        font-size: 1.75rem !important;
    }
}

/* =====================================================
   Print Styles
   ===================================================== */
@media print {

    header,
    footer,
    .no-print,
    #whatsappFloat {
        display: none !important;
    }

    main {
        padding: 0 !important;
    }

    .product-card {
        break-inside: avoid;
    }
}

/* =====================================================
   Status Badges
   ===================================================== */
.status-recebido {
    background: #fef3c7;
    color: #92400e;
}

.status-em_analise {
    background: #d5f0ea;
    color: #1a5c53;
}

.status-respondido {
    background: #d1fae5;
    color: #065f46;
}

.status-finalizado {
    background: #e5e7eb;
    color: #374151;
}

.status-cancelado {
    background: #fee2e2;
    color: #991b1b;
}


/* =====================================================
   Novas Animações (Institucional)
   ===================================================== */
@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.animate-float-slow {
    animation: float-slow 5s ease-in-out infinite;
}

.zoom-hover {
    transition: transform 0.3s ease;
}

.zoom-hover:hover {
    transform: scale(1.05);
}

.perspective-1000 {
    perspective: 1000px;
}

/* Utilitários de mistura */
.mix-blend-overlay {
    mix-blend-mode: overlay;
}

.mix-blend-luminosity {
    mix-blend-mode: luminosity;
}