/* ====================================
   Article Page Styles
   ==================================== */

.article-page {
    padding-top: calc(70px + var(--spacing-xl));
    min-height: 100vh;
}

.article-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding-bottom: var(--spacing-xl);
    border-bottom: 1px solid var(--card-border);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.article-meta .article-category {
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-meta .article-date,
.article-meta .article-read-time {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

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

.article-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-style: italic;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.article-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}

/* Ensure text visibility in light mode */
[data-theme="light"] .article-text,
[data-theme="light"] .article-title,
[data-theme="light"] .article-text h3,
[data-theme="light"] .article-text h4 {
    color: #1f2937;
}

[data-theme="light"] .article-text p {
    color: #374151;
}

[data-theme="light"] .article-subtitle,
[data-theme="light"] .article-quote cite,
[data-theme="light"] .poem-translation p {
    color: #4b5563;
}

.article-text p {
    margin-bottom: var(--spacing-lg);
}

.lead-paragraph {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
    backdrop-filter: blur(10px);
}

.article-text h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: var(--spacing-2xl) 0 var(--spacing-lg) 0;
    font-family: var(--font-display);
    position: relative;
}

.article-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.article-text h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: var(--spacing-xl) 0 var(--spacing-md) 0;
    font-family: var(--font-display);
}

.article-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-primary);
    margin: var(--spacing-2xl) 0;
    padding: var(--spacing-xl);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    position: relative;
}

.article-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -10px;
    left: var(--spacing-lg);
    line-height: 1;
    font-family: var(--font-display);
}

.article-quote cite {
    display: block;
    margin-top: var(--spacing-md);
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: normal;
}

.article-highlight {
    background: linear-gradient(135deg, 
        rgba(15, 118, 110, 0.1), 
        rgba(217, 119, 6, 0.05));
    padding: var(--spacing-xl);
    border-radius: 15px;
    margin: var(--spacing-2xl) 0;
    border-left: 4px solid var(--accent-color);
}

.article-highlight h4 {
    color: var(--accent-color);
    margin-top: 0;
}

.article-poem {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: 15px;
    margin: var(--spacing-2xl) 0;
    border: 1px solid var(--card-border);
}

.article-poem h4 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-display);
}

.poem-lines {
    margin-bottom: var(--spacing-lg);
}

.poem-lines p {
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
    text-align: center;
}

.poem-translation {
    border-top: 1px solid var(--card-border);
    padding-top: var(--spacing-lg);
}

.poem-translation p {
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-xs);
}

.article-conclusion {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    padding: var(--spacing-lg);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--card-border);
    margin-top: var(--spacing-2xl);
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--card-border);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.article-navigation .nav-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    transition: all var(--transition-fast);
}

.article-navigation .nav-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.article-share {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.article-share span {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

[data-theme="light"] .share-btn {
    background: rgba(15, 118, 110, 0.08);
    color: var(--primary-color);
}

[data-theme="light"] .share-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ====================================
   Responsive Design for Articles
   ==================================== */
@media (max-width: 768px) {
    .article-content {
        padding: 0 var(--spacing-sm);
    }
    
    .article-text {
        font-size: 1rem;
    }
    
    .lead-paragraph {
        font-size: 1.1rem;
    }
    
    .article-navigation {
        flex-direction: column;
        text-align: center;
    }
    
    .article-share {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .poem-lines p,
    .poem-translation p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .article-meta {
        flex-direction: column;
        align-items: center;
    }
    
    .article-quote {
        padding: var(--spacing-md);
    }
    
    .article-quote::before {
        font-size: 3rem;
        left: var(--spacing-sm);
    }
    
    .article-highlight,
    .article-poem {
        padding: var(--spacing-md);
    }
}

/* ====================================
   Print Styles for Articles
   ==================================== */
@media print {
    .article-page {
        padding-top: 0;
    }
    
    .navbar,
    .article-navigation,
    .article-share {
        display: none;
    }
    
    .article-content {
        max-width: none;
        padding: 0;
    }
    
    .article-text {
        font-size: 12pt;
        line-height: 1.6;
    }
    
    .article-title {
        font-size: 24pt;
    }
    
    .article-subtitle {
        font-size: 14pt;
    }
}