/* ===== RESET & GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: #1e293b;
}

/* ===== GRADIENTES ===== */
.gradient-educacional {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
}

.gradient-educacional-reverse {
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 50%, #4f46e5 100%);
}

.gradient-card {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
}

/* ===== ANIMAÇÕES ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(79, 70, 229, 0.3); }
    50% { box-shadow: 0 0 40px rgba(79, 70, 229, 0.6); }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-slide-up {
    animation: slide-up 0.8s ease forwards;
}

.animate-scale-in {
    animation: scale-in 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }

/* ===== NAVEGAÇÃO ===== */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== DROPDOWN ===== */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: #f1f5f9;
    border-left-color: #4f46e5;
    padding-left: 20px;
}

/* ===== CARDS ===== */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(4px);
}

.card-hover:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 30px 60px -15px rgba(79, 70, 229, 0.35);
    border-color: #818cf8;
}

.card-hover .product-badge {
    transition: all 0.3s ease;
}

.card-hover:hover .product-badge {
    transform: scale(1.1);
    background: #4f46e5;
    color: white;
}

/* ===== GLASSMORPHISM ===== */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== BOTÕES ===== */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(79, 70, 229, 0.5);
}

.btn-outline-white {
    border: 2px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: white;
    color: #4f46e5;
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== HERO IMAGEM ===== */
.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(168, 85, 247, 0.3));
    filter: blur(30px);
    z-index: -1;
    animation: pulse-glow 3s ease-in-out infinite;
}

.hero-image-wrapper img {
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

/* ===== IMAGENS FALLBACK ===== */
.img-fallback {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    font-size: 4rem;
}

.img-fallback i {
    opacity: 0.5;
}

.img-fallback .fallback-content {
    text-align: center;
}

.img-fallback .fallback-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.img-fallback .fallback-text {
    font-size: 1rem;
    font-weight: 600;
    color: #4f46e5;
    opacity: 0.7;
}

.img-fallback .fallback-sub {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* ===== ESTATÍSTICAS ===== */
.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4f46e5, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== DEPOIMENTOS ===== */
.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: #818cf8;
}

.testimonial-card .quote-icon {
    position: absolute;
    top: -14px;
    left: 24px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    max-height: 800px;
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-submenu.active {
    max-height: 500px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    .hero-image-wrapper::before {
        filter: blur(20px);
    }
}

/* ===== UTILITÁRIOS ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
}

.text-gradient {
    background: linear-gradient(135deg, #4f46e5, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== ESTILOS DO CATÁLOGO ===== */
.categoria-btn {
    transition: all 0.3s ease;
}
.categoria-btn.active {
    background-color: white;
    color: #4f46e5;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.3);
    transform: translateY(-2px);
}

.modalidade-card {
    transition: all 0.3s ease;
}
.modalidade-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ===== MODAL DO CATÁLOGO ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex !important;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
}

.modal-overlay.active {
    display: block !important;
}

.modal-content {
    position: relative;
    z-index: 10001;
    background-color: white;
    border-radius: 1rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #4338ca;
}

.modal-opcao-item {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.modal-opcao-item:hover {
    background: #f8fafc;
    border-color: #4f46e5;
    transform: translateX(5px);
}

.modal-opcao-item a {
    display: block;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}

/* ===== CORES DO CATÁLOGO ===== */
.bg-regular { background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%); }
.bg-profissional { background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%); }
.bg-bncc { background: linear-gradient(135deg, #059669 0%, #10b981 100%); }

.bg-indigo-100 { background-color: #e0e7ff; }
.bg-purple-100 { background-color: #ede9fe; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-green-100 { background-color: #d1fae5; }
.bg-red-100 { background-color: #fee2e2; }
.bg-orange-100 { background-color: #ffedd5; }
.bg-yellow-100 { background-color: #fef08a; }
.bg-teal-100 { background-color: #ccfbf1; }

.text-indigo-600 { color: #4f46e5; }
.text-purple-600 { color: #7c3aed; }
.text-emerald-600 { color: #059669; }
.text-blue-600 { color: #2563eb; }
.text-green-600 { color: #16a34a; }
.text-red-600 { color: #dc2626; }
.text-orange-600 { color: #ea580c; }
.text-yellow-600 { color: #ca8a04; }
.text-teal-600 { color: #0d9488; }

.border-indigo-500 { border-color: #4f46e5; }
.border-purple-500 { border-color: #7c3aed; }
.border-emerald-500 { border-color: #059669; }
.border-blue-500 { border-color: #2563eb; }
.border-green-500 { border-color: #16a34a; }
.border-red-500 { border-color: #dc2626; }
.border-orange-500 { border-color: #ea580c; }
.border-yellow-500 { border-color: #ca8a04; }
.border-teal-500 { border-color: #0d9488; }

/* ===== NOTIFICAÇÕES ===== */
.notificacoes-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notificacoes-modal.active {
    display: flex !important;
}

.notificacoes-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: none;
}

.notificacoes-overlay.active {
    display: block !important;
}

.notificacoes-content {
    position: relative;
    z-index: 10001;
    background: white;
    border-radius: 1rem;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.notificacoes-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.notificacoes-body {
    padding: 16px 24px;
    overflow-y: auto;
    flex: 1;
}

.notificacoes-body::-webkit-scrollbar {
    width: 6px;
}

.notificacoes-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.notificacoes-body::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 10px;
}

.notificacoes-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    flex-shrink: 0;
}

/* Notificação Item */
.notificacao-item {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.notificacao-item:last-child {
    border-bottom: none;
}

.notificacao-item:hover {
    background: #f8fafc;
    margin: 0 -12px;
    padding: 12px 12px;
    border-radius: 8px;
}

.notificacao-item.destaque {
    background: #fef3c7;
    margin: 0 -12px;
    padding: 12px 12px;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

.notificacao-item.destaque:hover {
    background: #fde68a;
}

.notificacao-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.notificacao-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notificacao-badge {
    font-size: 0.65rem;
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

.notificacao-destaque {
    font-size: 0.65rem;
    padding: 2px 10px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

/* Badge de atualização no menu */
.badge-update {
    animation: pulse-badge 2s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsividade */
@media (max-width: 640px) {
    .notificacoes-content {
        max-width: 95%;
        margin: 10px;
        border-radius: 0.75rem;
    }
    
    .notificacoes-header {
        padding: 16px 18px;
    }
    
    .notificacoes-body {
        padding: 12px 16px;
    }
    
    .notificacao-item {
        padding: 10px 0;
    }
    
    .notificacao-item .flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }
    
    .notificacao-icon {
        width: 36px;
        height: 36px;
    }
    
    .notificacao-icon i {
        font-size: 0.9rem;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 10px;
        border-radius: 0.75rem;
    }
    
    .modal-opcao-item {
        padding: 12px !important;
    }
    
    .modal-opcao-item .flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 8px;
    }
    
    .modal-opcao-item .flex .ml-4 {
        margin-left: 0 !important;
        align-self: flex-end;
    }
    
    .categoria-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
}