/**
 * Secțiuni Analiză - Frontend Styles
 * Glassmorphism dark theme matching Financial Engine cards
 *
 * @package Einvestitii_Financial_Engine
 * @since 3.2.0
 */

/* =================================================================
   CONTAINER PRINCIPAL
   ================================================================= */

.einv-sectiuni-analiza-wrapper {
    margin: 60px 0;
    padding: 0;
}

/* =================================================================
   SECȚIUNE INDIVIDUALĂ
   ================================================================= */

.einv-sectiune-analiza {
    background: rgba(52, 54, 58, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.einv-sectiune-analiza:hover {
    background: rgba(52, 54, 58, 0.7);
    border-color: rgba(42, 218, 73, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.einv-sectiune-analiza:last-child {
    margin-bottom: 0;
}

/* =================================================================
   TITLU H2
   ================================================================= */

.einv-sectiune-title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 1.5rem 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Company Highlight în titlu */
.einv-sectiune-title .company-highlight {
    color: #2ada49;
    position: relative;
    display: inline-block;
}

.einv-sectiune-title .company-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #2ada49, transparent);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.einv-sectiune-analiza:hover .einv-sectiune-title .company-highlight::after {
    opacity: 1;
}

/* =================================================================
   CONTENT
   ================================================================= */

.einv-sectiune-content {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.7;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.einv-sectiune-content p {
    margin: 0 0 1.25rem 0;
}

.einv-sectiune-content p:last-child {
    margin-bottom: 0;
}

/* Company Highlight în content */
.einv-sectiune-content .company-highlight {
    color: #2ada49;
    font-weight: 600;
    position: relative;
}

/* =================================================================
   LISTE (BULLET POINTS)
   ================================================================= */

.einv-sectiune-list {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.einv-sectiune-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.einv-sectiune-list li::before {
    content: '•';
    position: absolute;
    left: 0.5rem;
    color: #2ada49;
    font-size: 1.5rem;
    line-height: 1;
    top: 0;
}

.einv-sectiune-list li:last-child {
    margin-bottom: 0;
}

/* =================================================================
   RESPONSIVE
   ================================================================= */

@media (max-width: 768px) {
    .einv-sectiune-analiza {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }
    
    .einv-sectiune-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }
    
    .einv-sectiune-content {
        font-size: 0.95rem;
    }
    
    .einv-sectiune-list li {
        padding-left: 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .einv-sectiune-analiza {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .einv-sectiune-title {
        font-size: 1.2rem;
    }
    
    .einv-sectiune-content {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* =================================================================
   DARK THEME AJUSTĂRI
   ================================================================= */

body.dark-mode .einv-sectiune-analiza,
body[data-theme="dark"] .einv-sectiune-analiza {
    background: rgba(52, 54, 58, 0.7);
}

body.dark-mode .einv-sectiune-analiza:hover,
body[data-theme="dark"] .einv-sectiune-analiza:hover {
    background: rgba(52, 54, 58, 0.85);
}

/* =================================================================
   ANIMAȚII
   ================================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.einv-sectiune-analiza {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.einv-sectiune-analiza:nth-child(1) { animation-delay: 0.1s; }
.einv-sectiune-analiza:nth-child(2) { animation-delay: 0.2s; }
.einv-sectiune-analiza:nth-child(3) { animation-delay: 0.3s; }
.einv-sectiune-analiza:nth-child(4) { animation-delay: 0.4s; }
.einv-sectiune-analiza:nth-child(5) { animation-delay: 0.5s; }

/* =================================================================
   PRINT STYLES
   ================================================================= */

@media print {
    .einv-sectiune-analiza {
        background: #fff;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .einv-sectiune-title {
        color: #000;
    }
    
    .einv-sectiune-title .company-highlight {
        color: #000;
        font-weight: 700;
    }
    
    .einv-sectiune-content {
        color: #333;
    }
    
    .einv-sectiune-list li::before {
        color: #000;
    }
}
