/**
 * Article Pages Styles
 * For news/insights section
 */

/* ========================================
   Article Page Layout
   ======================================== */

.article-page {
    background: #000;
}

.article-page .nav {
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.article-page .footer {
    background: #0a0a0a;
    padding: 40px 0;
    text-align: center;
    color: #666;
    border-top: 1px solid #1a1a1a;
}

/* ========================================
   Articles Listing Page
   ======================================== */

.articles-header {
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(to bottom, #0a0a0a, #000);
}

.articles-header .section-label {
    display: inline-block;
    color: var(--color-accent, #e65c00);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.articles-header .section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    margin-bottom: 20px;
}

.articles-header .section-subtitle {
    color: #888;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.articles-grid-section {
    padding: 60px 0 100px;
}

/* Use news-card styles from style.css - just add link styling for h3 */
.articles-grid-section .news-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.articles-grid-section .news-content h3 a:hover {
    color: var(--color-accent, #e65c00);
}

/* Make news-image a link */
.articles-grid-section a.news-image {
    display: block;
}

.articles-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #1a1a1a;
}

.pagination-link {
    color: var(--color-accent, #e65c00);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.pagination-link:hover {
    opacity: 0.8;
}

.pagination-info {
    color: #666;
}

.no-articles {
    text-align: center;
    padding: 100px 0;
    color: #666;
}

/* ========================================
   Single Article Page
   ======================================== */

.article-single {
    padding-top: 80px;
}

.article-header {
    padding: 80px 0 60px;
    text-align: center;
    background: linear-gradient(to bottom, #0a0a0a, #000);
}

.article-category {
    display: inline-block;
    color: var(--color-accent, #e65c00);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto 30px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: #666;
    font-size: 0.9rem;
}

.article-meta span::before {
    content: '';
}

.article-author {
    color: #888;
}

.article-featured-image {
    margin-bottom: 60px;
}

.article-featured-image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Article Content Typography */
.article-content {
    padding: 0 0 60px;
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.9;
}

.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #fff;
    margin: 50px 0 25px;
}

.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #fff;
    margin: 40px 0 20px;
}

.article-content h4 {
    font-size: 1.2rem;
    color: #fff;
    margin: 30px 0 15px;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content a {
    color: var(--color-accent, #e65c00);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: var(--color-accent, #e65c00);
}

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

.article-content li {
    margin-bottom: 10px;
}

.article-content blockquote {
    margin: 40px 0;
    padding: 30px 40px;
    background: #0a0a0a;
    border-left: 4px solid var(--color-accent, #e65c00);
    font-style: italic;
    font-size: 1.2rem;
    color: #aaa;
}

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

.article-content pre {
    background: #0a0a0a;
    padding: 25px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
    font-size: 0.9rem;
}

.article-content code {
    background: #1a1a1a;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
}

.article-content pre code {
    background: transparent;
    padding: 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.article-content th,
.article-content td {
    padding: 12px 15px;
    border: 1px solid #222;
    text-align: left;
}

.article-content th {
    background: #0a0a0a;
    color: #fff;
    font-weight: 600;
}

/* Article Footer */
.article-footer {
    padding: 40px 0;
    border-top: 1px solid #1a1a1a;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.article-share span {
    color: #666;
    font-size: 0.9rem;
}

.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    border-radius: 50%;
    color: #888;
    transition: all 0.3s ease;
}

.share-link:hover {
    background: var(--color-accent, #e65c00);
    color: #fff;
}

.back-link {
    display: inline-block;
    color: var(--color-accent, #e65c00);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.8;
}

/* Related Articles */
.related-articles {
    padding: 80px 0;
    background: #0a0a0a;
}

.related-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 40px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.related-card-image {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.related-card:hover .related-card-image img {
    filter: grayscale(0%);
}

.related-card-content h4 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.related-card-content h4 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-card-content h4 a:hover {
    color: var(--color-accent, #e65c00);
}

.related-card-content time {
    color: #555;
    font-size: 0.85rem;
}

/* 404 Page */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.error-page h1 {
    font-family: 'Playfair Display', serif;
    font-size: 8rem;
    color: var(--color-accent, #e65c00);
    margin-bottom: 20px;
}

.error-page p {
    color: #888;
    font-size: 1.5rem;
    margin-bottom: 40px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .articles-header {
        padding: 120px 0 60px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-header {
        padding: 60px 0 40px;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

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

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

    .article-content blockquote {
        padding: 20px;
        font-size: 1.1rem;
    }

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

    .related-card {
        flex-direction: column;
    }

    .related-card-image {
        width: 100%;
        height: 180px;
    }
}
