/* Blog Post Styles - Modern Clean Design */

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background: #ffffff;
    --surface: #f8fafc;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Article Header */
.article-header {
    background: linear-gradient(135deg, var(--surface) 0%, #f1f5f9 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.article-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.article-header .container {
    position: relative;
    z-index: 2;
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.1;
}

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

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1rem;
    color: var(--text-secondary);
}

.article-date {
    color: var(--primary-color);
    font-weight: 500;
}

.reading-time {
    color: var(--text-secondary);
}

/* Article Content */
.article-content {
    padding: 80px 0;
}

.article-body {
    max-width: 900px;
    margin: 0 auto;
}

/* Content Section Styles */
.content-section {
    margin-bottom: 60px;
}

.content-section h1,
.content-section h2,
.content-section h3,
.content-section h4,
.content-section h5,
.content-section h6 {
    color: var(--text-primary);
    margin: 40px 0 20px 0;
    font-weight: 600;
    line-height: 1.3;
}

.content-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.content-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-primary);
    margin-top: 50px;
    margin-bottom: 25px;
}

.content-section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 35px;
    margin-bottom: 20px;
}

.content-section h4 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-top: 25px;
    margin-bottom: 15px;
}

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

.content-section ul,
.content-section ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-section li {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 8px;
}

.content-section li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content-section a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.content-section a:hover {
    border-bottom-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Special Content Boxes */
.info-box,
.highlight-box,
.challenge-box,
.research-box,
.timeline-box,
.future-box,
.impact-box {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    box-shadow: var(--shadow-light);
}

.info-box {
    border-left: 4px solid var(--primary-color);
}

.highlight-box {
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.02));
}

.challenge-box {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(245, 158, 11, 0.02));
}

.research-box {
    border-left: 4px solid #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(139, 92, 246, 0.02));
}

.timeline-box {
    border-left: 4px solid #06b6d4;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05), rgba(6, 182, 212, 0.02));
}

.future-box {
    border-left: 4px solid #ec4899;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(236, 72, 153, 0.02));
}

.impact-box {
    border-left: 4px solid #84cc16;
    background: linear-gradient(135deg, rgba(132, 204, 22, 0.05), rgba(132, 204, 22, 0.02));
}

.info-box h4,
.highlight-box h4,
.challenge-box h4,
.research-box h4,
.timeline-box h4,
.future-box h4,
.impact-box h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    margin-top: 0;
}

.info-box p,
.highlight-box p,
.challenge-box p,
.research-box p,
.timeline-box p,
.future-box p,
.impact-box p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Grid Layouts */
.linguistic-levels,
.task-grid,
.comparison-grid,
.application-grid,
.algorithm-grid,
.tech-grid,
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.level-card,
.task-card,
.comparison-card,
.application-card,
.algorithm-card,
.tech-item,
.tool-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.level-card:hover,
.task-card:hover,
.comparison-card:hover,
.application-card:hover,
.algorithm-card:hover,
.tech-item:hover,
.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.level-card h4,
.task-card h4,
.comparison-card h4,
.application-card h4,
.algorithm-card h4,
.tech-item h4,
.tool-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    margin-top: 0;
}

.level-card p,
.task-card p,
.comparison-card p,
.application-card p,
.algorithm-card p,
.tech-item p,
.tool-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Code and Pre formatting */
.content-section pre {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.content-section code {
    background: #f1f5f9;
    color: var(--primary-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
}

.content-section pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

/* Blockquotes */
.content-section blockquote {
    background: var(--surface);
    border-left: 4px solid var(--primary-color);
    padding: 20px 24px;
    margin: 32px 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
}

.content-section blockquote p {
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Images */
.content-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    box-shadow: var(--shadow-medium);
}

/* Tables */
.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.content-section th,
.content-section td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.content-section th {
    background: var(--surface);
    font-weight: 600;
    color: var(--text-primary);
}

.content-section td {
    color: var(--text-secondary);
}

/* Author Bio */
.author-bio {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 32px;
    margin: 60px 0;
    display: flex;
    align-items: center;
    gap: 24px;
    box-shadow: var(--shadow-light);
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    margin-top: 0;
}

.author-info p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
    font-size: 1rem;
}

/* Article Navigation */
.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px 0;
    gap: 24px;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.nav-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-large);
    color: white;
    text-decoration: none;
}

.nav-button.back {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.nav-button.back:hover {
    background: var(--primary-color);
    color: white;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 32px 0;
    text-align: center;
    margin-top: 80px;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .article-title {
        font-size: 2.5rem;
    }

    .article-subtitle {
        font-size: 1.1rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .content-section h1 {
        font-size: 2rem;
    }

    .content-section h2 {
        font-size: 1.75rem;
    }

    .content-section h3 {
        font-size: 1.3rem;
    }

    .linguistic-levels,
    .task-grid,
    .comparison-grid,
    .application-grid,
    .algorithm-grid,
    .tech-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .article-navigation {
        flex-direction: column;
    }

    .nav-button {
        width: 100%;
        justify-content: center;
    }

    .container {
        padding: 0 16px;
    }

    .article-content {
        padding: 60px 0;
    }

    .content-section {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 2rem;
    }

    .article-subtitle {
        font-size: 1rem;
    }

    .content-section h1 {
        font-size: 1.75rem;
    }

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

    .content-section p,
    .content-section li {
        font-size: 1rem;
    }

    .info-box,
    .highlight-box,
    .challenge-box,
    .research-box,
    .timeline-box,
    .future-box,
    .impact-box {
        padding: 16px;
        margin: 24px 0;
    }

    .level-card,
    .task-card,
    .comparison-card,
    .application-card,
    .algorithm-card,
    .tech-item,
    .tool-card {
        padding: 16px;
    }
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Print styles */
@media print {
    .nav,
    .article-navigation,
    .footer {
        display: none;
    }

    .article-header {
        background: none;
        padding: 20px 0;
    }

    .article-content {
        padding: 20px 0;
    }

    .content-section {
        break-inside: avoid;
    }

    .info-box,
    .highlight-box,
    .challenge-box,
    .research-box,
    .timeline-box,
    .future-box,
    .impact-box {
        border: 1px solid #ccc;
        background: #f9f9f9;
    }
}