/* Modern Articles Styles */
.articles-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    overflow: hidden;
    height: 500px;
    display: flex;
    flex-direction: column;
}

/* Articles Header */
.articles-header {
    background: rgba(102, 126, 234, 0.1);
    padding: 1.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    backdrop-filter: blur(10px);
}

.articles-title {
    color: #495057;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 1rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

.articles-subtitle {
    color: #6c757d;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    font-weight: 500;
}

/* Filter Buttons */
.articles-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.articles-filter-btn {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.articles-filter-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: #5a6fd8;
    text-decoration: none;
}

.articles-filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.articles-filter-btn i {
    font-size: 0.8rem;
}

/* Articles Content */
.articles-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(248, 249, 250, 0.8);
}

.articles-content::-webkit-scrollbar {
    width: 8px;
}

.articles-content::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
}

.articles-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 4px;
}

.articles-content::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* Article Items */
.article-item {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.article-item:last-child {
    margin-bottom: 0;
}

.article-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-portal {
    flex: 1;
    min-width: 0;
}

.article-title {
    flex: 2;
    min-width: 0;
}

.article-votes {
    flex: 0 0 auto;
    text-align: center;
}

.article-link {
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-link:hover {
    color: #667eea;
    text-decoration: none;
}

.article-portal .article-link {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.article-title .article-link {
    font-size: 1rem;
    color: #495057;
    font-weight: 600;
}

.article-votes {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Empty State */
.articles-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.articles-empty-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.articles-empty-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .articles-container {
        height: 400px;
        border-radius: 15px;
    }

    .articles-header {
        padding: 1rem;
    }

    .articles-title {
        font-size: 1.3rem;
    }

    .articles-filters {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-row {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .article-portal,
    .article-title,
    .article-votes {
        flex: none;
        width: 100%;
    }

    .article-link {
        white-space: normal;
        text-overflow: initial;
    }
}

/* Animation for articles */
.article-item {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Transition effects */
.slide-fade-enter-active {
    transition: all 0.3s ease;
}

.slide-fade-leave-active {
    transition: all 0.3s ease;
}

.slide-fade-enter-from,
.slide-fade-leave-to {
    opacity: 0;
    transform: translateY(10px);
}