.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, #8b5cf6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    padding-bottom: 1rem;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #8b5cf6, #8b5cf6);
    border-radius: 2px;
}

.page-description {
    max-width: 800px;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.8;
    text-align: center;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    padding: 1.5rem;
    justify-content: center;
}

.article-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.article-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, #8b5cf6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover::before {
    opacity: 1;
}

.article-content {
    padding: 2rem;
    position: relative;
}

.article-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.4;
    padding-top: 0.5rem;
}

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

.article-title a:hover {
    color: #8b5cf6;
}

.article-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.article-meta {
    font-size: 0.9rem;
    color: #64748b;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8b5cf6;
    font-weight: 500;
    padding-top: 0.5rem;
}

.article-date::before {
    content: '📅';
    font-size: 0.9em;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background: linear-gradient(to right, rgba(139, 92, 246, 0.1), rgba(139, 92, 246, 0.05));
    color: #8b5cf6;
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(4px);
}

.tag:hover {
    background: rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

.featured-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(45deg, #8b5cf6, #8b5cf6);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
}

.source-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #8b5cf6;
    padding: 0 0.5rem;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 1;
    border: 2px solid;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.95);
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: #8b5cf6;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

@media (max-width: 1024px) {
    .container {
        padding: 2rem 1rem;
    }
    
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.25rem;
    }
    
    .article-card {
        margin-bottom: 1.5rem;
    }

    .articles-grid {
        grid-template-columns: minmax(280px, 1fr);
        max-width: 500px;
        margin: 0 auto;
        padding: 0.5rem;
    }

    .article-content {
        padding: 1.5rem;
    }

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

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

@media (max-width: 480px) {
    .container {
        padding: 1.5rem 0.75rem;
    }

    .articles-grid {
        gap: 1.5rem;
        padding: 0;
    }

    .article-card {
        min-width: 0;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .article-card,
    .tag {
        transition: none;
    }
}

/* Dark Mode */
.dark .article-card {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.dark .page-title {
    background: linear-gradient(to right, #8b5cf6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.dark .page-title::after {
    background: linear-gradient(to right, #8b5cf6, #8b5cf6);
}

.dark .page-description {
    color: #94a3b8;
}

.dark .article-title {
    color: #f8fafc;
}

.dark .article-title a:hover {
    color: #8b5cf6;
}

.dark .article-description {
    color: #94a3b8;
}

.dark .article-meta {
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .article-date {
    color: #8b5cf6;
}

.dark .tag {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.3);
}

.dark .tag:hover {
    background: rgba(99, 102, 241, 0.25);
}

.dark .featured-tag {
    background: linear-gradient(45deg, #8b5cf6, #8b5cf6);
}

.dark .source-tag {
    background: linear-gradient(45deg, #8b5cf6, #8b5cf6);
}

.dark .filter-btn {
    background: rgba(30, 41, 59, 0.95);
    color: #94a3b8;
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dark .filter-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.dark .filter-btn.active {
    background: #8b5cf6;
    color: #1e293b;
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(129, 140, 248, 0.25);
}