/* Articles Page Specific Styles */

/* Articles Header */
.articles-header {
    position: relative;
    padding: 150px 0 80px;
    background: #050a14;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.articles-header .container {
    position: relative;
    z-index: 2;
}

.articles-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.articles-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Main Section */
.articles-main-section {
    padding: 60px 0 100px;
}

/* Category Filter */
.category-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.filter-btn.active {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

/* Articles Grid Layout */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Article Cards */
.art-card {
    background: rgba(10, 15, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
}

.art-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Featured Article (Spans 2 columns) */
.art-card.featured {
    grid-column: span 2;
    flex-direction: row;
}

.art-card.featured .art-img-wrapper {
    width: 50%;
    height: 100%;
    min-height: 350px;
}

.art-card.featured .art-content {
    width: 50%;
    padding: 40px;
    justify-content: center;
}

.art-card.featured .art-title {
    font-size: 1.8rem;
}

/* Text Only Article */
.art-card.text-only {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.8), rgba(0, 242, 255, 0.05));
    border-color: rgba(0, 242, 255, 0.2);
}

.art-card.text-only:hover {
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.15);
}

/* Image Wrapper & Placeholders */
.art-img-wrapper {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.art-img-placeholder {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.art-card:hover .art-img-placeholder {
    transform: scale(1.05);
}

/* Diverse Gradients for Placeholders */
.gradient-1 { background: linear-gradient(45deg, #1a2a6c, #b21f1f, #fdbb2d); }
.gradient-2 { background: linear-gradient(to right, #0f2027, #203a43, #2c5364); }
.gradient-3 { background: linear-gradient(to right, #141e30, #243b55); }
.gradient-4 { background: linear-gradient(109.6deg, rgba(0, 0, 0, 0.93) 11.2%, rgb(63, 61, 61) 78.9%); }
.gradient-5 { background: radial-gradient(circle at 10% 20%, rgb(0, 0, 0) 0%, rgb(64, 64, 64) 90.2%); }

/* Tags */
.art-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    color: #fff;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Tag colors */
.tag-tech { background: rgba(0, 242, 255, 0.8); }
.tag-operation { background: rgba(189, 0, 255, 0.8); }
.tag-news { background: rgba(255, 153, 0, 0.8); }
.tag-tutorial { background: rgba(7, 193, 96, 0.8); }

.art-card.text-only .art-tag {
    position: relative;
    top: 0;
    left: 0;
    display: inline-block;
    margin-bottom: 15px;
    align-self: flex-start;
}

/* Card Content */
.art-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.art-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.art-title {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.art-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.art-card:hover .art-title a {
    color: var(--primary-color);
}

.art-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.art-card.featured .art-desc {
    -webkit-line-clamp: 4;
}

.art-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.art-author {
    font-size: 0.85rem;
    color: #888;
}

.art-read-more {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.3s ease;
}

.art-card:hover .art-read-more {
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.page-btn:hover:not(.disabled) {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    font-weight: bold;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: var(--text-muted);
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .art-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .articles-header {
        padding: 120px 0 50px;
    }
    
    .articles-header h1 {
        font-size: 2.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .art-card.featured {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .art-card.featured .art-img-wrapper {
        width: 100%;
        min-height: 200px;
    }
    
    .art-card.featured .art-content {
        width: 100%;
        padding: 25px;
    }
}

