/**
 * Articles System Styling
 * Navy/Terracotta design system
 */

/* ==========================================
   ARTICLES LISTING PAGE
   ========================================== */

.articles-hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #0a1e43 0%, #1a3a5c 100%);
}

.articles-hero h1 {
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 16px;
    font-family: 'Crimson Pro', Georgia, serif;
}

.articles-hero p {
    font-size: 1.2rem;
    color: #A0A0A0;
    font-family: 'Crimson Pro', Georgia, serif;
}

.articles-filters {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.search-form input {
    flex: 1;
    padding: 12px 20px;
    background: rgba(10, 30, 67, 0.3);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 1rem;
    font-family: 'Crimson Pro', Georgia, serif;
}

.search-form input:focus {
    outline: none;
    border-color: #95472d;
    background: rgba(10, 30, 67, 0.5);
}

.search-form button {
    padding: 12px 30px;
    background: #95472d;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 600;
}

.search-form button:hover {
    background: #b86847;
}

.category-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: #A0A0A0;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #95472d;
    color: #FFFFFF;
    border-color: #95472d;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-card {
    background: #0a1e43;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #1a3a5c, #0a1e43);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.article-content {
    padding: 24px;
}

.article-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(149,71,45,0.2);
    color: #95472d;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 600;
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #FFFFFF;
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 700;
    line-height: 1.4;
}

.article-excerpt {
    color: #A0A0A0;
    line-height: 1.6;
    margin-bottom: 16px;
    font-family: 'Crimson Pro', Georgia, serif;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #707070;
    font-family: 'Crimson Pro', Georgia, serif;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.empty-state p:first-child {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #FFFFFF;
    margin-bottom: 12px;
    font-family: 'Crimson Pro', Georgia, serif;
}

.empty-state p {
    color: #A0A0A0;
    font-family: 'Crimson Pro', Georgia, serif;
}

.empty-state a {
    color: #95472d;
    text-decoration: underline;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
}

.page-btn {
    padding: 8px 16px;
    background: #0a1e43;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
    font-family: 'Crimson Pro', Georgia, serif;
}

.page-btn:hover,
.page-btn.active {
    background: #95472d;
}

.page-dots {
    color: #A0A0A0;
    padding: 0 8px;
}

/* ==========================================
   SINGLE ARTICLE PAGE
   ========================================== */

.article-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.article-header {
    margin-bottom: 40px;
}

.article-category-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(149,71,45,0.2);
    color: #95472d;
    border-radius: 4px;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 600;
}

.article-page .article-title {
    font-size: 2.5rem;
    color: #FFFFFF;
    line-height: 1.3;
    margin-bottom: 24px;
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 700;
}

.article-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.author-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
}

.author-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #95472d;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    font-family: 'Crimson Pro', Georgia, serif;
}

.author-name {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Crimson Pro', Georgia, serif;
}

.author-name:hover {
    color: #95472d;
}

.article-meta-details {
    font-size: 0.85rem;
    color: #A0A0A0;
    font-family: 'Crimson Pro', Georgia, serif;
}

.article-meta-details span {
    margin-right: 8px;
}

.btn-share {
    padding: 8px 20px;
    background: #0a1e43;
    color: #FFFFFF;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Crimson Pro', Georgia, serif;
}

.btn-share:hover {
    background: #95472d;
    border-color: #95472d;
}

.article-featured-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px;
}

/* Article Content Formatting */
.article-content-wrapper {
    margin-bottom: 40px;
}

.article-content {
    color: #FFFFFF;
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: 'Crimson Pro', Georgia, serif;
}

.article-content h1 {
    font-size: 2rem;
    margin: 40px 0 20px;
    color: #FFFFFF;
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 700;
}

.article-content h2 {
    font-size: 1.6rem;
    margin: 32px 0 16px;
    color: #FFFFFF;
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 700;
}

.article-content h3 {
    font-size: 1.3rem;
    margin: 24px 0 12px;
    color: #FFFFFF;
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 32px 0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 24px;
    padding-left: 32px;
}

.article-content li {
    margin-bottom: 12px;
}

.article-content blockquote {
    border-left: 4px solid #95472d;
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: #A0A0A0;
}

.article-content a {
    color: #95472d;
    text-decoration: underline;
}

.article-content a:hover {
    color: #b86847;
}

.article-content strong,
.article-content b {
    color: #FFFFFF;
    font-weight: 700;
}

.article-content code {
    background: rgba(10, 30, 67, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-content pre {
    background: rgba(10, 30, 67, 0.5);
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 40px 0;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.tag {
    padding: 6px 14px;
    background: #0a1e43;
    color: #A0A0A0;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-family: 'Crimson Pro', Georgia, serif;
    transition: all 0.2s;
}

.tag:hover {
    background: #95472d;
    color: #FFFFFF;
}

.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.related-articles h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: #FFFFFF;
    font-family: 'Crimson Pro', Georgia, serif;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-card {
    background: #0a1e43;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s;
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #1a3a5c, #0a1e43);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.related-card h3 {
    padding: 16px;
    font-size: 1rem;
    color: #FFFFFF;
    font-family: 'Crimson Pro', Georgia, serif;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .articles-hero h1 {
        font-size: 2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-page .article-title {
        font-size: 2rem;
    }

    .article-meta-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-content {
        font-size: 1rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
