/**
 * Article Components - ICM Analytics
 *
 * Styles for long-form project analysis articles.
 * Used by project detail pages (SIRE, DUPE, FITCOIN, AVICI).
 */

/* Article Container */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

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

/* Article Header */
.article-header {
    text-align: center;
    margin-bottom: 50px;
}

.article-header h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-header .tagline {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
}

.article-header .meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Trust Score Card */
.trust-score-card {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 2px solid rgba(34, 197, 94, 0.4);
    border-radius: 20px;
    padding: 30px;
    margin: 10px 0 15px 0;
    text-align: center;
}

.trust-score-card.moderate {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-color: rgba(251, 191, 36, 0.4);
}

.trust-score-card.high {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-color: rgba(34, 197, 94, 0.4);
}

.trust-score-card .score-label {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.trust-score-card .score-number {
    font-size: 4rem;
    font-weight: 800;
    color: #22c55e;
    line-height: 1;
}

.trust-score-card.moderate .score-number {
    color: #fbbf24;
}

.trust-score-card .score-max {
    font-size: 1.5rem;
    color: #64748b;
}

.trust-score-card .score-rating {
    font-size: 1.2rem;
    color: #fbbf24;
    margin-top: 10px;
    font-weight: 600;
}

/* Article Content */
.article-content {
    color: var(--text-primary);
}

.article-content h2 {
    font-size: clamp(1.6rem, 4vw, 2rem);
    color: #60a5fa;
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(96, 165, 250, 0.3);
    line-height: 1.3;
}

.article-content h3 {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    color: #a78bfa;
    margin: 30px 0 15px 0;
    line-height: 1.3;
}

.article-content h4 {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 25px;
    margin-bottom: 12px;
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.article-content a {
    color: var(--color-primary);
    text-decoration: none;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content strong {
    color: var(--color-primary);
}

.article-content code {
    background: rgba(30, 41, 59, 0.8);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.team-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius-lg);
    padding: 25px;
}

.team-card h4 {
    color: var(--color-primary);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.team-card .role {
    color: var(--color-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-style: italic;
}

.team-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Product Cards */
.product-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 20px 0;
}

.product-card h4 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.product-card p {
    margin: 0;
}

/* Data Tables */
.data-table-container,
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 25px 0;
    border-radius: 12px;
}

.data-table,
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table th,
th {
    background: rgba(96, 165, 250, 0.15);
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    color: #60a5fa;
    border-bottom: 2px solid rgba(96, 165, 250, 0.3);
}

.data-table td,
td {
    padding: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
}

.data-table tr:last-child td,
tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td,
tr:hover td {
    background: rgba(96, 165, 250, 0.05);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.verified,
.badge-verified {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge.self-reported,
.badge-self-reported {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.badge.high,
.badge-high {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge.medium,
.badge-medium {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.badge.low,
.badge-low {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.badge.pending,
.badge-pending {
    background: rgba(148, 163, 184, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Verified Badge (top-right) */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(34, 197, 94, 0.15) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: var(--color-success);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

/* Dashboard CTA */
.dashboard-cta {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(167, 139, 250, 0.1) 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin: 30px 0;
    text-align: center;
}

.dashboard-cta p {
    margin-bottom: 15px;
    color: var(--text-primary);
}

/* Author Box */
.author-box {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-top: 50px;
    text-align: center;
}

.author-box h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.author-box p {
    margin-bottom: 15px;
}

/* Disclaimer */
.disclaimer {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-top: 40px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .article-container {
        padding: 30px 15px;
    }

    .article-header .tagline {
        font-size: 1.1rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .trust-score-card {
        padding: 15px 25px;
    }

    .trust-score-card .score-number {
        font-size: 2.5rem;
    }

    .data-table,
    .data-table th,
    .data-table td {
        font-size: 0.8rem;
        padding: 8px 6px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card .number {
        font-size: 1.5rem;
    }
}
