/* Resource Article Styles */

.article-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--accent) 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.article-hero .container {
    position: relative;
    z-index: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.article-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-date,
.article-read-time {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.article-hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
    max-width: 800px;
    line-height: 1.2;
}

.article-hero .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    line-height: 1.7;
}

/* Article Content */
.article-content {
    padding: 80px 0;
    background: white;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.article-body h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin: 50px 0 25px;
    padding-top: 20px;
}

.article-body h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin: 40px 0 20px;
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 20px 0 30px 20px;
}

.article-body li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 12px;
    padding-left: 10px;
}

.article-body strong {
    color: var(--text);
}

/* Callout Box */
.callout {
    background: linear-gradient(135deg, rgba(0, 136, 169, 0.08) 0%, rgba(0, 180, 216, 0.08) 100%);
    border-left: 4px solid var(--accent);
    padding: 25px 30px;
    margin: 40px 0;
    border-radius: 0 12px 12px 0;
}

.callout h4 {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.callout p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Stat Highlight */
.stat-highlight {
    background: var(--primary-dark);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin: 40px 0;
    text-align: center;
}

.stat-highlight .stat-number {
    font-size: 4rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-highlight .stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison-table th {
    background: var(--primary-dark);
    color: white;
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
}

.comparison-table tr:nth-child(even) {
    background: rgba(0, 136, 169, 0.03);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

/* Step Box */
.step-box {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.step-box .step-number {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 15px;
}

.step-box h4 {
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.step-box p {
    margin-bottom: 0;
}

/* Template Box */
.template-box {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
    font-family: 'Monaco', 'Consolas', monospace;
}

.template-box .template-label {
    color: var(--accent);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-family: var(--font-primary);
}

.template-box pre {
    color: #e0e0e0;
    font-size: 0.95rem;
    line-height: 1.8;
    white-space: pre-wrap;
    margin: 0;
}

.template-box .highlight {
    color: var(--accent);
}

/* CTA Section */
.article-cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 60px;
    border-radius: 20px;
    margin: 60px 0 0;
    text-align: center;
}

.article-cta h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.article-cta .btn {
    display: inline-block;
}

/* Related Resources */
.related-resources {
    padding: 80px 0;
    background: var(--background);
}

.related-resources h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.related-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.related-card .card-category {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.related-card h3 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.related-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .article-hero {
        padding: 100px 0 60px;
    }
    
    .article-hero h1 {
        font-size: 2rem;
    }
    
    .article-hero .lead {
        font-size: 1.1rem;
    }
    
    .article-content {
        padding: 50px 0;
    }
    
    .article-body h2 {
        font-size: 1.5rem;
    }
    
    .article-body h3 {
        font-size: 1.25rem;
    }
    
    .article-body p,
    .article-body li {
        font-size: 1rem;
    }
    
    .stat-highlight {
        padding: 30px 20px;
    }
    
    .stat-highlight .stat-number {
        font-size: 3rem;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 15px;
    }
    
    .article-cta {
        padding: 40px 25px;
    }
    
    .article-cta h3 {
        font-size: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-meta {
        gap: 12px;
    }
}

