/* ============================================
   INVLAB DESIGN SYSTEM v1.0
   Sistema Universal de Cards
   
   Inspirado em: XP, Inter, Rico, Nubank, Magnetis
   Objetivo: Consistência visual em todo o site
   ============================================ */

/* ============================================
   BASE: Card Universal
   ============================================ */

.inv-card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.inv-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.7);  /* DOURADO 70% INVLAB */
    box-shadow: 
        0 8px 24px rgba(212, 175, 55, 0.2),  /* Sombra dourada principal */
        0 4px 12px rgba(16, 185, 129, 0.1);  /* Sombra verde secundária */
}

/* ============================================
   VARIAÇÕES: Bordas Esquerda por Categoria
   ============================================ */

/* 🔵 Fundamentos (Azul) */
.inv-card.fundamentos {
    border-left: 4px solid #3b82f6;
}

.inv-card.fundamentos:hover {
    border-left-width: 6px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

/* 🟣 Estratégia (Roxo) */
.inv-card.estrategia {
    border-left: 4px solid #8b5cf6;
}

.inv-card.estrategia:hover {
    border-left-width: 6px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

/* 🟢 Investimentos (Verde) */
.inv-card.investimentos {
    border-left: 4px solid #10b981;
}

.inv-card.investimentos:hover {
    border-left-width: 6px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

/* 🟠 Alerta (Laranja) */
.inv-card.alerta {
    border-left: 4px solid #f97316;
}

.inv-card.alerta:hover {
    border-left-width: 6px;
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
}

/* 🔴 Perigo/Crítico (Vermelho) */
.inv-card.perigo {
    border-left: 4px solid #ef4444;
}

.inv-card.perigo:hover {
    border-left-width: 6px;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

/* 🟢 Ganho/Economia (Verde) */
.inv-card.ganho {
    border-left: 4px solid #10b981;
}

.inv-card.ganho:hover {
    border-left-width: 6px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    border: 2px solid rgba(16, 185, 129, 0.5);
    transform: translateY(-6px);
}

/* 🟣 Alternativos (Roxo Claro) */
.inv-card.alternativos {
    border-left: 4px solid #a855f7;
}

.inv-card.alternativos:hover {
    border-left-width: 6px;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

/* 🟡 Ativos Reais (Amarelo) */
.inv-card.reais {
    border-left: 4px solid #eab308;
}

.inv-card.reais:hover {
    border-left-width: 6px;
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.3);
}

/* 🔷 Previdência (Ciano) */
.inv-card.previdencia {
    border-left: 4px solid #22d3ee;
}

.inv-card.previdencia:hover {
    border-left-width: 6px;
    box-shadow: 0 8px 24px rgba(34, 211, 238, 0.3);
}

/* 💼 Fundos (Azul Royal) */
.inv-card.fundos {
    border-left: 4px solid #2563eb;
}

.inv-card.fundos:hover {
    border-left-width: 6px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

/* 🎯 Ferramentas (Verde Tech) */
.inv-card.ferramentas {
    border-left: 4px solid #14b8a6;
}

.inv-card.ferramentas:hover {
    border-left-width: 6px;
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.3);
}

/* ⚠️ Em Breve / Coming Soon (Cinza) */
.inv-card.coming {
    border-left: 4px solid #6b7280;
    opacity: 0.7;
    cursor: not-allowed;
}

.inv-card.coming:hover {
    transform: translateY(0);
    border-left-width: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ============================================
   ELEMENTOS INTERNOS: Componentes do Card
   ============================================ */

/* Ícone */
.inv-card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    text-align: center;
    line-height: 1;
}

/* Título */
.inv-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: #E4E4E4;  /* BRANCO SUAVE INVLAB */
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* Descrição */
.inv-card-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
    color: #9CA3AF;  /* CINZA INVLAB - hierarquia clara */
    margin: 0;
    flex-grow: 1;
}

/* Badge / Tag */
.inv-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    margin-top: 12px;
    background: rgba(42, 127, 255, 0.15);
    color: #2A7FFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Badge Variações */
.inv-card-badge.gratuita {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.inv-card-badge.coming {
    background: rgba(255, 193, 7, 0.15);
    color: #FFC107;
}

.inv-card-badge.premium {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.inv-card-badge.perigo {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.inv-card-badge.ganho {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* ============================================
   GRID SYSTEM: Layout dos Cards
   ============================================ */

/* Grid Container */
.inv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Grid com 2 colunas fixas */
.inv-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Grid com 3 colunas fixas */
.inv-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Grid com 4 colunas fixas */
.inv-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   ESTADOS ESPECIAIS
   ============================================ */

/* Card Clicável */
.inv-card.clickable {
    cursor: pointer;
}

.inv-card.clickable:active {
    transform: translateY(-2px);
}

/* Card Destacado */
.inv-card.featured {
    border: 2px solid rgba(42, 127, 255, 0.5);
    background: rgba(42, 127, 255, 0.05);
}

/* Card Desabilitado */
.inv-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .inv-card {
        padding: 20px;
    }
    
    .inv-card-icon {
        font-size: 42px;
    }
    
    .inv-card-title {
        font-size: 17px;
    }
    
    .inv-card-description {
        font-size: 13px;
    }
    
    .inv-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (até 768px) */
@media (max-width: 768px) {
    .inv-card {
        padding: 18px;
    }
    
    .inv-card-icon {
        font-size: 40px;
    }
    
    .inv-card-title {
        font-size: 16px;
    }
    
    .inv-card-description {
        font-size: 13px;
    }
    
    .inv-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .inv-grid.cols-2,
    .inv-grid.cols-3,
    .inv-grid.cols-4 {
        grid-template-columns: 1fr;
    }
}

/* Mobile Pequeno (até 480px) */
@media (max-width: 480px) {
    .inv-card {
        padding: 16px;
    }
    
    .inv-card-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .inv-card-title {
        font-size: 15px;
        margin-bottom: 10px;
    }
    
    .inv-card-description {
        font-size: 12px;
    }
    
    .inv-card-badge {
        font-size: 10px;
        padding: 3px 10px;
    }
    
    .inv-grid {
        gap: 12px;
        margin-bottom: 30px;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */

/* Espaçamento entre categorias */
.inv-category {
    margin-bottom: 60px;
}

.inv-category:last-child {
    margin-bottom: 0;
}

/* Título de categoria */
.inv-category-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #D4AF37;  /* DOURADO INVLAB */
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);  /* Borda dourada suave */
    letter-spacing: -0.01em;
}

/* Subtítulo de categoria */
.inv-category-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: rgba(16, 185, 129, 0.65);  /* VERDE SUAVE INVLAB */
    margin-bottom: 32px;
    line-height: 1.6;
}

/* ============================================
   FIM DO DESIGN SYSTEM
   ============================================ */

