/* Mobile Articles Optimization */
@media (max-width: 768px) {
    /* Article Card Mobile Layout */
    .article-card-mobile {
        display: flex;
        flex-direction: column;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        margin-bottom: 16px;
        transition: all 0.3s ease;
    }

    .article-card-mobile:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    /* Article Image */
    .article-image-mobile {
        position: relative;
        width: 100%;
        height: 200px;
        overflow: hidden;
    }

    .article-image-mobile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .article-card-mobile:hover .article-image-mobile img {
        transform: scale(1.05);
    }

    /* Article Content */
    .article-content-mobile {
        padding: 16px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .article-title-mobile {
        margin: 0 0 8px 0;
        font-size: 16px;
        font-weight: 700;
        line-height: 1.4;
        color: #1e293b;
    }

    .article-title-mobile a {
        color: inherit;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .article-title-mobile a:hover {
        color: #C08B2D;
    }

    .article-excerpt-mobile {
        margin: 0 0 12px 0;
        font-size: 14px;
        line-height: 1.5;
        color: #64748b;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Article Meta */
    .article-meta-mobile {
        margin-top: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
        color: #94a3b8;
    }

    .meta-left-mobile {
        display: flex;
        gap: 12px;
    }

    .meta-item-mobile {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .meta-item-mobile i {
        font-size: 14px;
    }

    .meta-item-mobile.time i {
        color: #3b82f6;
    }

    .meta-item-mobile.views i {
        color: #10b981;
    }

    .meta-item-mobile.comments i {
        color: #8b5cf6;
    }

    .category-badge-mobile {
        background: #f0f9ff;
        color: #0369a1;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 11px;
        font-weight: 600;
    }

    /* Empty State */
    .empty-articles-mobile {
        text-align: center;
        padding: 40px 20px;
        color: #94a3b8;
    }

    .empty-icon-mobile {
        font-size: 48px;
        margin-bottom: 16px;
        display: block;
    }

    .empty-title-mobile {
        font-size: 18px;
        font-weight: 600;
        margin: 0 0 8px 0;
        color: #64748b;
    }

    .empty-text-mobile {
        font-size: 14px;
        margin: 0;
        color: #94a3b8;
    }

    /* Articles Grid */
    .articles-grid-mobile {
        padding: 16px;
        display: grid;
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .articles-grid-mobile.loading {
        opacity: 0.6;
        pointer-events: none;
    }

    /* Skeleton Loading */
    .article-card-mobile.skeleton {
        animation: skeleton-loading 1.5s infinite;
    }

    .article-image-mobile.skeleton {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: skeleton-loading 1.5s infinite;
    }

    @keyframes skeleton-loading {
        0% {
            background-position: 200% 0;
        }
        100% {
            background-position: -200% 0;
        }
    }
}

/* Mobile Filter Bar Styles */
.mobile-filter-bar {
    position: sticky;
    top: 0;
    background: white;
    z-index: 100;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-container {
    margin-bottom: 12px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    right: 12px;
    color: #94a3b8;
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #C08B2D;
    background: white;
    box-shadow: 0 0 0 3px rgba(192, 139, 45, 0.1);
}

.clear-search-btn {
    position: absolute;
    left: 12px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
}

.category-filter {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-scroll {
    display: flex;
    gap: 8px;
    padding-bottom: 4px;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: white;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-btn:hover {
    border-color: #C08B2D;
    color: #C08B2D;
}

.category-btn.active {
    background: #C08B2D;
    border-color: #C08B2D;
    color: white;
}

.category-btn i {
    font-size: 14px;
}

/* Article Actions */
.article-actions {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card-mobile:hover .article-actions {
    opacity: 1;
}

.action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.action-btn i {
    font-size: 14px;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    padding: 20px 16px;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #C08B2D 0%, #B22B2B 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 139, 45, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #64748b;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #C08B2D;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

.spinner i {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Clear Filters Button */
.clear-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 16px;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background: #e2e8f0;
    color: #475569;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .mobile-filter-bar {
        padding: 10px 12px;
    }
    
    .search-input {
        padding: 10px 36px 10px 10px;
        font-size: 13px;
    }
    
    .category-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .load-more-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
} 