/* ===========================
   Articles Page Styles
   =========================== */

/* Articles Hero Section */
.articles-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--bg-page) 100%);
    text-align: center;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-500);
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.page-subtitle {
    font-size: 24px;
    color: var(--neutral-600);
    margin-bottom: 24px;
    font-weight: 600;
}

.page-intro {
    font-size: 18px;
    color: var(--neutral-600);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Articles Controls */
.articles-controls {
    padding: 40px 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--neutral-200);
}

.articles-search {
    margin-bottom: 32px;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-box svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-400);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: 2px solid var(--neutral-200);
    border-radius: 12px;
    font-size: 16px;
    background: var(--bg-surface);
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-50);
}

.articles-categories {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-filter {
    padding: 12px 20px;
    border: 2px solid var(--neutral-200);
    border-radius: 24px;
    background: var(--bg-surface);
    color: var(--neutral-600);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-filter:hover {
    border-color: var(--primary-300);
    color: var(--primary-600);
}

.category-filter.active {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: white;
}

/* Articles Content */
.articles-content {
    padding: 80px 0;
}

.featured-article {
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.featured-card {
    background: var(--bg-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.featured-image {
    height: 300px;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-700));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 64px;
    position: relative;
    overflow: hidden;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.featured-content {
    padding: 32px;
}

.featured-category {
    color: var(--primary-500);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.featured-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 16px;
    line-height: 1.3;
}

.featured-excerpt {
    font-size: 16px;
    color: var(--neutral-600);
    line-height: 1.6;
    margin-bottom: 24px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--neutral-500);
}

.featured-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.read-more-btn {
    background: var(--primary-500);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more-btn:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.article-card {
    background: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-400);
    font-size: 48px;
    position: relative;
}

.article-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-500);
}

.article-content {
    padding: 24px;
}

.article-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: 12px;
    line-height: 1.3;
}

.article-excerpt {
    font-size: 14px;
    color: var(--neutral-600);
    line-height: 1.5;
    margin-bottom: 16px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--neutral-500);
    margin-bottom: 16px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tag {
    background: var(--neutral-100);
    color: var(--neutral-600);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 0;
    color: var(--neutral-600);
}

.no-results h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--neutral-900);
}

/* Article Modal */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.article-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-surface);
    border-radius: 16px;
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--neutral-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--neutral-200);
    transform: scale(1.1);
}

.modal-header {
    padding: 40px 40px 20px;
    border-bottom: 1px solid var(--neutral-200);
}

.modal-category {
    color: var(--primary-500);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: var(--neutral-500);
}

.modal-body {
    padding: 32px 40px 40px;
}

.modal-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 32px 0 16px;
    font-family: 'Poppins', sans-serif;
}

.modal-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--neutral-900);
    margin: 24px 0 12px;
}

.modal-body p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--neutral-600);
    margin-bottom: 16px;
}

.modal-body ul, .modal-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.modal-body li {
    font-size: 16px;
    line-height: 1.6;
    color: var(--neutral-600);
    margin-bottom: 8px;
}

.modal-body strong {
    color: var(--neutral-900);
    font-weight: 600;
}

/* CTA Section */
.articles-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-buttons .btn-primary {
    background: white;
    color: var(--primary-500);
}

.cta-buttons .btn-primary:hover {
    background: var(--neutral-100);
    transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-buttons .btn-secondary:hover {
    background: white;
    color: var(--primary-500);
    transform: translateY(-2px);
}

/* Footer Styles (reused from FAQ) */
.footer {
    background: var(--neutral-900);
    color: var(--neutral-300);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-section a {
    color: var(--neutral-300);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-300);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--neutral-700);
    color: var(--neutral-400);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }
    
    .page-subtitle {
        font-size: 20px;
    }
    
    .page-intro {
        font-size: 16px;
    }
    
    .articles-categories {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 8px;
    }
    
    .category-filter {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .featured-title {
        font-size: 24px;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 32px 24px 16px;
    }
    
    .modal-body {
        padding: 24px;
    }
    
    .modal-title {
        font-size: 24px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .articles-hero {
        padding: 100px 0 60px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 18px;
    }
    
    .articles-content {
        padding: 60px 0;
    }
    
    .featured-content {
        padding: 24px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .cta-content h2 {
        font-size: 24px;
    }
}