/* Modernized Ultra-Premium CSS matching Web Design best practices */
:root {
    --primary: #0a2540;
    --primary-dark: #051627;
    --primary-light: #1f3a52;
    --secondary: #00d29d;
    --secondary-hover: #00a884;
    --background: #fafbfe;
    --surface: #ffffff;
    
    /* Modern Colors */
    --accent-glow: rgba(0, 210, 157, 0.15);
    --border-glass: rgba(255, 255, 255, 0.2);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-display: 'Hanken Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    background-color: var(--background);
    color: #101620;
    font-family: var(--font-sans);
    letter-spacing: -0.01em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatBlob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Blurry Blobs */
.blur-blob {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(100px);
    z-index: 0;
    opacity: 0.45;
    mix-blend-mode: multiply;
    pointer-events: none;
    animation: floatBlob 12s infinite ease-in-out;
}

.blob-1 {
    width: 350px;
    height: 350px;
    background: rgba(0, 210, 157, 0.3);
    top: -50px;
    right: 10%;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(10, 37, 64, 0.25);
    bottom: 0;
    left: 15%;
    animation-delay: 2s;
}

/* Glassmorphism Header & Cards */
.glass-header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

/* Interactive Category Cards (Ultra Modern Grid) */
.category-card {
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(0, 65, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-card:hover {
    transform: translateY(-8px);
    background: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 65, 59, 0.25), 0 0 0 1px rgba(0, 210, 157, 0.2);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

/* Custom Eye Button for passwords */
.password-container {
    position: relative;
}
.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s ease;
}
.password-toggle-btn:hover {
    color: var(--primary);
}

/* Language selector animation */
.lang-selector-btn {
    position: relative;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}
.lang-selector-btn:hover {
    background: rgba(0, 168, 132, 0.08);
    color: var(--secondary-hover);
}
.lang-selector-btn.active {
    background: var(--primary);
    color: #ffffff !important;
}

/* Forms styling */
.admin-input, .contact-input {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    background-color: #f8fafc;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-input:focus, .contact-input:focus {
    background-color: #ffffff;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(0, 210, 157, 0.1);
    outline: none;
}

/* Advanced Admin Tabs */
.tab-btn {
    position: relative;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}
.tab-btn:hover {
    background-color: #f8fafc;
}
.tab-btn.active {
    border-left-color: var(--secondary);
    background-color: rgba(0, 210, 157, 0.05);
    color: var(--primary);
}

/* Catalog Card styling */
.catalog-item-card {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #f1f5f9;
}
.catalog-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 210, 157, 0.15);
}

/* Gradient backgrounds */
.gradient-dark-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.gradient-dark-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 210, 157, 0.08) 0%, transparent 70%);
    top: -300px;
    right: -200px;
    pointer-events: none;
}

/* Smooth transition for elements */
.transition-all-300 {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Novo Componente de Abas / Categorias HSW
   ========================================================================== */

/* Barra de Abas Flutuante com Degradê Verde Vibrante */
.hsw-tabs-bar {
    background: linear-gradient(135deg, #02b189 0%, #005a46 100%);
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 20px 40px rgba(0, 77, 61, 0.2), 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 30;
    transition: all 0.3s ease;
}

/* Links/Botões de Abas */
.hsw-tab-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    user-select: none;
}

/* Hover em Abas Inativas */
.hsw-tab-link:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
}

.hsw-tab-link:not(.active):hover svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

/* Estilo Ativo/Interativo */
.hsw-tab-link.active {
    background: #ffffff;
    color: #004B87 !important; /* Azul HSW */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(0);
}

.hsw-tab-link.active svg {
    fill: #004B87; /* Ícone em Azul HSW */
    filter: drop-shadow(0 2px 4px rgba(0, 75, 135, 0.15));
}

/* Linha de seleção escura abaixo da aba ativa */
.hsw-tab-link.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12%;
    right: 12%;
    height: 4px;
    background-color: #2C3E50; /* Cinza Tecnológico Profundo */
    border-radius: 2px 2px 0 0;
}

/* Seta indicativa para baixo no indicador ativo */
.hsw-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #ffffff;
    z-index: 40;
}

/* SVG Icon Estilos */
.hsw-tab-link svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
    fill: currentColor;
    transition: all 0.3s ease;
}

/* Seções de Conteúdo Dinâmico (Tabs Content) */
.hsw-tab-content-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hsw-tab-content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Responsividade - Scroll Horizontal no Mobile */
@media (max-width: 768px) {
    .hsw-tabs-bar {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Firefox */
        -webkit-overflow-scrolling: touch;
        padding: 4px;
    }
    .hsw-tabs-bar::-webkit-scrollbar {
        display: none; /* Safari e Chrome */
    }
    .hsw-tab-link {
        flex: 0 0 160px;
        scroll-snap-align: start;
        padding: 12px 8px;
        font-size: 11px;
    }
    .hsw-tab-link svg {
        width: 24px;
        height: 24px;
        margin-bottom: 6px;
    }
}
