/* Análise do Emissor - Estilos Otimizados (Bootstrap Compatible) */

/* Reset de conflitos com Bootstrap */
.product-info-section {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
}

.product-info-section .container-fluid {
    padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
    padding-right: calc(var(--bs-gutter-x) * 0.5) !important;
    max-width: 1200px;
    margin: 0 auto;
}

/* Título da seção */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2E6C86;
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Nome do emissor */
.emissor-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.emissor-name h3 {
    margin-bottom: 1rem;
}

.emissor-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.emissor-info p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

.emissor-info strong {
    color: #333;
    font-weight: 600;
}

/* Grid de detalhes - usando CSS Grid nativo sem conflitos */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

/* Cards de detalhes */
.detail-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #C3F53C;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-info {
    flex: 1;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-row:last-child {
    border-bottom: none;
}

.info-value {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    text-align: right;
    flex: 1;
    margin-left: 1rem;
}

/* Descrição do produto */
.product-description {
    margin-bottom: 2.5rem;
    max-width: 800px;
}

.product-description p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    text-align: justify;
    word-wrap: break-word;
    column-count: unset !important;
    column-gap: unset !important;
    column-rule: unset !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    -ms-hyphens: none !important;
}

/* Indicadores Financeiros */
.financial-indicators {
    margin-bottom: 2.5rem;
}

.indicators-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.indicators-title::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f080";
    font-size: 1.5rem;
    color: #2E6C86;
}

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

.indicator-card {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.indicator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e9ecef;
    transition: all 0.3s ease;
}

.indicator-neutral::before {
    background: #6c757d;
}

.indicator-warning::before {
    background: #ffc107;
}

.indicator-success::before {
    background: #28a745;
}

.indicator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.indicator-value {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
}

.indicator-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

/* Pontos de Atenção e Pontos Fortes */
.analysis-points {
    margin-bottom: 2.5rem;
}

.points-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.points-section {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.points-attention {
    border-top: 4px solid #dc3545;
    border-left: none;
}

.points-strong {
    border-top: 4px solid #28a745;
    border-left: none;
}

.points-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.points-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.points-attention .points-title {
    color: #dc3545;
}

.points-strong .points-title {
    color: #28a745;
}

.points-header::before {
    font-size: 1.25rem;
}

.points-attention .points-header::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f071";
    color: #dc3545;
}

.points-strong .points-header::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f058";
    color: #28a745;
}

.points-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.points-list {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.points-list li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

/* Avaliação de Risco */
.risk-assessment {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.risk-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.risk-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #856404;
    margin: 0;
}

.risk-description {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #856404;
    margin: 0;
    text-align: justify;
}

/* Análise de Risco - Nova Seção */
.risk-analysis-section {
    margin-bottom: 2.5rem;
}

.risk-analysis-wrapper {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-top: 4px solid #ffc107;
}

.risk-analysis-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.risk-analysis-header::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f071";
    font-size: 1.25rem;
    color: #ffc107;
}

.risk-analysis-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #856404;
    margin: 0;
}

.risk-analysis-content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.risk-analysis-content p {
    margin: 0;
    text-align: justify;
}

/* Link para mais investimentos */
.more-investments {
    text-align: center;
    margin-top: 2rem;
}

.more-investments-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #2E6C86;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.more-investments-link:hover {
    background: #1e4a5f;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 108, 134, 0.3);
}

/* Responsividade */
@media (max-width: 992px) {
    .points-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .details-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .indicators-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.75rem;
    }
    
    .detail-card,
    .points-section {
        padding: 1.25rem;
    }
    
    .product-description {
        max-width: 100%;
    }
    
    .product-description p {
        font-size: 0.95rem;
        text-align: justify;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .emissor-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .product-info-section .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .emissor-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .indicators-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-card,
    .points-section,
    .product-description,
    .risk-assessment {
        padding: 1rem;
    }
    
    .indicator-value {
        font-size: 1.5rem;
    }
    
    .points-title {
        font-size: 1rem;
    }
}