/* ===================================
   ARTICLE PAGE STYLES
   Additional styles for article pages
   =================================== */

/* === ARTICLE HEADER === */
.article-header {
    padding: 10rem 0 4rem;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(0, 217, 255, 0.05), transparent),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect fill="%23ffffff" opacity="0.02" width="2" height="2"/></svg>');
    background-size: cover, 10px 10px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb span {
    color: var(--text-muted);
}

.article-meta-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.article-category {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.article-category.critical {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid var(--error);
}

.article-category.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.article-category.info {
    background: rgba(0, 217, 255, 0.15);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.article-date,
.article-read-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.article-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-primary);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* === ARTICLE CONTENT === */
.article-content {
    padding: 4rem 0;
    background: var(--darker-bg);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
}

.main-content {
    min-width: 0;
}

/* === CONTENT SECTIONS === */
.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-section h2 i {
    color: var(--primary-color);
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* === ALERT BOX === */
.alert-box {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    border-left: 4px solid;
}

.alert-box.critical {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
}

.alert-box.warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
}

.alert-icon {
    width: 60px;
    height: 60px;
    background: var(--error);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.alert-content h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.alert-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* === STATS GRID === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-box {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: var(--transition-normal);
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.stat-box .stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-box .stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-box .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* === LISTS === */
.custom-list {
    list-style: none;
    padding: 0;
}

.custom-list li {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.custom-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.numbered-list {
    counter-reset: item;
    list-style: none;
    padding: 0;
}

.numbered-list li {
    counter-increment: item;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 2rem;
}

.numbered-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-primary);
}

.numbered-list li strong {
    display: block;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.numbered-list li p {
    margin: 0;
    font-size: 1rem;
}

/* === INFO BOX === */
.info-box {
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem 0;
}

.info-box p {
    margin-bottom: 1rem;
}

.info-box ul {
    margin-left: 1.5rem;
}

.info-box li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* === IMPACT GRID === */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.impact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    transition: var(--transition-normal);
}

.impact-card:hover {
    transform: translateY(-5px);
    border-color: var(--error);
    box-shadow: var(--shadow-lg);
}

.impact-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.impact-icon.danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.impact-card h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.impact-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* === RECOMMENDATION BOXES === */
.recommendation-box {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border-left: 4px solid;
}

.recommendation-box.urgent {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.05);
}

.recommendation-box.preventive {
    border-color: var(--primary-color);
    background: rgba(0, 217, 255, 0.05);
}

.recommendation-box h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* === EXPERT OPINION === */
.expert-opinion {
    margin: 3rem 0;
}

.expert-quote {
    background: var(--gradient-primary);
    padding: 3rem;
    border-radius: var(--radius-xl);
    position: relative;
}

.expert-quote i {
    font-size: 3rem;
    color: rgba(10, 14, 39, 0.3);
    margin-bottom: 1rem;
}

.expert-quote p {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--dark-bg);
    margin-bottom: 2rem;
    font-style: italic;
}

.expert-attribution {
    display: flex;
    flex-direction: column;
}

.expert-attribution strong {
    font-size: 1.1rem;
    color: var(--dark-bg);
}

.expert-attribution span {
    font-size: 0.95rem;
    color: rgba(10, 14, 39, 0.7);
}

/* === CTA BOX === */
.cta-box {
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    margin: 3rem 0;
}

.cta-content h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === TAGS === */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 217, 255, 0.1);
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    margin: 3rem 0;
}

.tag-label {
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: var(--transition-normal);
}

.tag:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* === SHARE === */
.article-share {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 3rem;
}

.share-label {
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-normal);
    border: 1px solid;
}

.share-btn.linkedin {
    background: rgba(10, 102, 194, 0.1);
    color: #0a66c2;
    border-color: #0a66c2;
}

.share-btn.linkedin:hover {
    background: #0a66c2;
    color: white;
}

.share-btn.twitter {
    background: rgba(29, 155, 240, 0.1);
    color: #1d9bf0;
    border-color: #1d9bf0;
}

.share-btn.twitter:hover {
    background: #1d9bf0;
    color: white;
}

.share-btn.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
    border-color: #1877f2;
}

.share-btn.facebook:hover {
    background: #1877f2;
    color: white;
}

.share-btn.email {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.share-btn.email:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
}

/* === SIDEBAR === */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 217, 255, 0.1);
    margin-bottom: 2rem;
}

.sidebar-widget .widget-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.sidebar-widget p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* === RELATED ARTICLES === */
.related-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-article {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 217, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: var(--transition-normal);
}

.related-article:hover {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.related-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.related-content h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === NEWSLETTER WIDGET === */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.9rem 1.2rem;
    background: rgba(10, 14, 39, 0.5);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

/* === RESPONSIVE === */
@media (max-width: 968px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-subtitle {
        font-size: 1.1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .article-header {
        padding: 8rem 0 3rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .alert-box {
        flex-direction: column;
    }
    
    .expert-quote {
        padding: 2rem;
    }
    
    .cta-box {
        padding: 2rem;
    }
}

