/**
 * Estilos para Seções de Expertise e Posicionamento
 * Ferramentas Hub - Novo Posicionamento 2025
 * 
 * @package HTMLToolsMarketplace
 */

/* ========================================
   SEÇÃO EXPERTISE - 70+ HORAS
======================================== */

.expertise-section {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    padding: 4rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.expertise-header {
    text-align: center;
    margin-bottom: 3rem;
}

.expertise-badge {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expertise-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.expertise-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.expertise-subtitle strong {
    color: #1e40af;
    font-weight: 700;
}

/* Grid de Cards */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.expertise-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    text-align: center;
}

.expertise-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #dbeafe;
}

.expertise-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.expertise-icon i {
    font-size: 28px;
    color: white;
}

.expertise-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.75rem;
}

.expertise-card-text {
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.expertise-card-text strong {
    color: #1e40af;
    font-weight: 600;
}

/* CTA Section */
.expertise-cta {
    text-align: center;
    padding: 2rem;
    background: #eff6ff;
    border-radius: 16px;
    border: 1px solid #dbeafe;
}

.expertise-cta-text {
    font-size: 1.125rem;
    color: #1e40af;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.expertise-cta-text i {
    font-size: 1.5rem;
    color: #f59e0b;
}

.expertise-cta-text strong {
    font-weight: 700;
}

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

@media (max-width: 768px) {
    .expertise-section {
        padding: 3rem 0;
    }
    
    .expertise-title {
        font-size: 2rem;
    }
    
    .expertise-subtitle {
        font-size: 1rem;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .expertise-card {
        padding: 1.5rem;
    }
    
    .expertise-cta-text {
        font-size: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .expertise-title {
        font-size: 1.75rem;
    }
    
    .expertise-badge {
        font-size: 0.8125rem;
    }
}

/* ========================================
   AJUSTES NO HERO PARA MELHOR DESTAQUE
======================================== */

.hero-description-clean strong {
    color: #1e40af;
    font-weight: 700;
}

/* Aumentar destaque visual no hero */
.marketplace-hero-clean {
    padding: 5rem 0 4rem;
}

@media (max-width: 768px) {
    .marketplace-hero-clean {
        padding: 3rem 0 2.5rem;
    }
}

/* ========================================
   STATS BAR - TRANSIÇÃO VISUAL
======================================== */

.stats-bar {
    background: white;
    padding: 3rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #dbeafe;
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 1.5rem;
    color: #2563eb;
}

.stat-content {
    flex-grow: 1;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-bar {
        padding: 2rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-icon i {
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* ========================================
   CTAs - HOMEPAGE (ETAPA 6.2)
======================================== */

/* CTAs no Hero */
.hero-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2.5rem 0 2rem;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.0625rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.35);
    color: white;
}

.btn-hero-secondary {
    background: white;
    color: #1e40af;
    border: 2px solid #dbeafe;
}

.btn-hero-secondary:hover {
    background: #eff6ff;
    border-color: #2563eb;
    transform: translateY(-2px);
    color: #1e40af;
}

/* CTA Final Section - REDESIGN INTEGRADO */
.final-cta-section {
    background: transparent; /* SEM fundo separado */
    padding: 2.5rem 2rem 4rem; /* Padding mínimo */
    margin-top: 0;
}

.final-cta-content {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    padding: 0; /* SEM padding - sem caixa */
    background: transparent; /* SEM card */
    border: none;
    box-shadow: none;
}

.final-cta-title {
    font-size: 2.125rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 0.625rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.final-cta-description {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 1.75rem;
    font-weight: 500;
}

.final-cta-description strong {
    color: #1e40af;
    font-weight: 700;
}

.final-cta-buttons {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    margin-bottom: 1.125rem;
    flex-wrap: wrap;
}

.btn-final-primary,
.btn-final-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9375rem 1.875rem;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-final-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-final-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
    color: white;
}

.btn-final-secondary {
    background: transparent;
    color: #1e40af;
    border: 2px solid #dbeafe;
}

.btn-final-secondary:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1e40af;
    transform: translateY(-2px);
}

.final-cta-guarantee {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin: 0;
    font-weight: 500;
}

.final-cta-guarantee i {
    color: #10b981;
    font-size: 1rem;
}

/* Responsividade CTAs */
@media (max-width: 768px) {
    .hero-cta-buttons,
    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary,
    .btn-final-primary,
    .btn-final-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .final-cta-section {
        padding: 2rem 1.5rem 3rem;
    }
    
    .final-cta-title {
        font-size: 1.625rem;
    }
    
    .final-cta-description {
        font-size: 0.875rem;
    }
    
}

/* ========================================
   CARDS OTIMIZADOS - ETAPA 4
   Badge de Valor + Benefício + Desconto
======================================== */

/* Badge de Valor Percebido (canto superior esquerdo) */
.ferramenta-card .card-value-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #ffffff;
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    letter-spacing: 0.3px;
}

/* Benefício Principal (logo após o título) */
.ferramenta-card .card-benefit {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: #f0f9ff;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 3px solid #10b981;
    margin-bottom: 0.875rem;
    line-height: 1.4;
}

.ferramenta-card .card-benefit svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.ferramenta-card .card-benefit span {
    font-size: 0.875rem;
    color: #1e40af;
    font-weight: 500;
}

/* Container de Preço com Desconto */
.ferramenta-card .card-price-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

/* Preço Original Riscado */
.ferramenta-card .card-price-original {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

/* Wrapper do Preço Atual + Badge de Desconto */
.ferramenta-card .card-price-current-wrapper {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

/* Badge de Desconto Percentual */
.ferramenta-card .card-discount-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Ajustes no footer para acomodar novo layout de preço */
.ferramenta-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
}

/* Garantir que o card-price mantenha tamanho consistente */
.ferramenta-card .card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e40af;
}

/* ========================================
   RESPONSIVIDADE - CARDS OTIMIZADOS
======================================== */

@media (max-width: 768px) {
    .ferramenta-card .card-value-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        top: 10px;
        left: 10px;
    }
    
    .ferramenta-card .card-benefit {
        padding: 0.625rem;
        font-size: 0.8125rem;
    }
    
    .ferramenta-card .card-benefit span {
        font-size: 0.8125rem;
    }
    
    .ferramenta-card .card-price-current-wrapper {
        gap: 0.5rem;
    }
    
    .ferramenta-card .card-discount-badge {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .ferramenta-card .card-footer {
        flex-direction: column;
        gap: 0.875rem;
        align-items: flex-start;
    }
    
    .ferramenta-card .card-footer .btn-details {
        width: 100%;
        text-align: center;
    }
}

