/* Single Article Page Styles */

.article-page {
    min-height: 100vh;
    padding: 2rem 0;
}

.article-page .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Back to Articles Button */
.back-to-articles-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    text-decoration: none;
    border-bottom: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0;
    transition: all 0.2s ease;
    opacity: 0.8;
    white-space: nowrap;
}

.back-to-articles-btn:hover,
.back-to-articles-btn:active,
.back-to-articles-btn:focus {
    color: #2a2a2a;
    opacity: 1;
    gap: 0.75rem;
    text-decoration: none;
    border-bottom: none;
    outline: none;
}

.back-to-articles-btn i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.back-to-articles-btn:hover i {
    transform: translateX(-2px);
}

/* Article Content */
.article-content {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Article Header */
.article-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
    gap: 1rem;
}

.article-meta-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.article-date {
    font-weight: 500;
}

.article-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.article-tags .tag {
    background: rgba(255, 111, 97, 0.1);
    color: #ff6f61;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2a2a2a;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.article-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666;
    margin-top: 1rem;
}

/* Article Body */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2a2a2a;
    line-height: 1.3;
}

.article-body h1 {
    font-size: 2rem;
}

.article-body h2 {
    font-size: 1.75rem;
}

.article-body h3 {
    font-size: 1.5rem;
}

.article-body h4 {
    font-size: 1.25rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body a {
    color: #ff6f61;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 111, 97, 0.3);
    transition: all 0.2s ease;
}

.article-body a:hover {
    color: #f57c00;
    border-bottom-color: #f57c00;
}

.article-body code {
    background: #f5f5f5;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    font-size: 0.9em;
    color: #ff6f61;
}

.article-body pre {
    background: #2a2a2a;
    color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: 0.9rem;
}

.article-body blockquote {
    border-left: 4px solid #ff6f61;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #666;
    font-style: italic;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.article-body table th,
.article-body table td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.article-body table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e5e7eb;
}

.related-articles .section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #2a2a2a;
    font-family: 'Montserrat', 'Inter', sans-serif;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-article-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.related-article-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #ff6f61;
}

.related-article-meta {
    margin-bottom: 0.75rem;
}

.related-article-date {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.related-article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-family: 'Montserrat', 'Inter', sans-serif;
    color: #2a2a2a;
    line-height: 1.3;
}

.related-article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-article-title a:hover {
    color: #ff6f61;
}

.related-article-teaser {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.related-article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff6f61;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: gap 0.2s ease;
}

.related-article-link:hover {
    gap: 0.75rem;
}

/* Loading and Error States */
.article-loading,
.article-error {
    text-align: center;
    padding: 3rem;
}

.article-error h2 {
    font-size: 1.5rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.article-error p {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-back {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #ff6f61;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-back:hover {
    background: #f57c00;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-content {
        padding: 2rem 1.5rem;
    }

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

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

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

    .article-body h1 {
        font-size: 1.75rem;
    }

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

    .article-body h3 {
        font-size: 1.25rem;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-page .container {
        padding: 0 1rem;
    }

    .article-content {
        padding: 1.5rem 1rem;
    }

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

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

