/**
 * Network-AI Articles Section
 * World-class, elegant article thumbnail designs
 */

/* ===================================
   ARTICLES SECTION CONTAINER
   =================================== */

.network-articles-section {
    padding: 24px 0;
}

.network-articles-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.network-articles-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.network-articles-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5b47fb;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.network-articles-view-all:hover {
    color: #4a38e0;
    gap: 10px;
}

.network-articles-view-all svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.network-articles-view-all:hover svg {
    transform: translateX(4px);
}

/* ===================================
   ARTICLE GRID LAYOUTS
   =================================== */

.network-articles-grid {
    display: grid;
    gap: 24px;
}

/* Featured Layout - 3 column grid */
.network-articles-grid.featured-layout {
    grid-template-columns: repeat(3, 1fr);
}

/* Trending Layout - 3 column grid */
.network-articles-grid.trending-layout {
    grid-template-columns: repeat(3, 1fr);
}

/* Responsive breakpoints - match experts/businesses pattern */
@media (max-width: 1200px) {
    .network-articles-grid.featured-layout,
    .network-articles-grid.trending-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .network-articles-grid.featured-layout,
    .network-articles-grid.trending-layout {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   ARTICLE CARD - FEATURED STYLE
   =================================== */

.article-card-featured {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.article-card-featured:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.article-card-featured-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-card-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card-featured:hover .article-card-featured-image img {
    transform: scale(1.05);
}

.article-card-featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    color: #5b47fb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-card-featured-badge svg {
    width: 14px;
    height: 14px;
}

.article-card-featured-content {
    padding: 24px;
}

.article-card-featured-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #5b47fb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.article-card-featured-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-featured-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.article-card-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-card-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.article-card-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article-card-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.article-card-author-date {
    font-size: 12px;
    color: #999;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.article-card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.article-card-meta-item svg {
    width: 16px;
    height: 16px;
    color: #999;
}

/* ===================================
   ARTICLE CARD - TRENDING STYLE
   =================================== */

.article-card-trending {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.article-card-trending:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.article-card-trending-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-card-trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card-trending:hover .article-card-trending-image img {
    transform: scale(1.08);
}

.article-card-trending-content {
    padding: 20px;
}

.article-card-trending-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #5b47fb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.article-card-trending-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-trending-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-trending-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* ===================================
   ARTICLE CARD - MOST READ STYLE
   =================================== */

.article-card-most-read {
    position: relative;
    display: flex;
    gap: 16px;
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.article-card-most-read:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.article-card-most-read-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
}

.article-card-most-read-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.article-card-most-read-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card-most-read:hover .article-card-most-read-image img {
    transform: scale(1.1);
}

.article-card-most-read-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-card-most-read-category {
    font-size: 11px;
    font-weight: 600;
    color: #5b47fb;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.article-card-most-read-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-most-read-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.article-card-most-read-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-card-most-read-meta-item svg {
    width: 14px;
    height: 14px;
}

/* ===================================
   LOADING & EMPTY STATES
   =================================== */

.network-articles-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.network-articles-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #5b47fb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.network-articles-empty {
    text-align: center;
    padding: 60px 20px;
}

.network-articles-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #ccc;
}

.network-articles-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.network-articles-empty-text {
    font-size: 14px;
    color: #999;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .network-articles-section {
        padding: 32px 0;
    }
    
    .network-articles-title {
        font-size: 24px;
    }
    
    .article-card-featured-image {
        height: 240px;
    }
    
    .article-card-featured-content {
        padding: 24px;
    }
    
    .article-card-featured-title {
        font-size: 20px;
    }
    
    .article-card-trending-image {
        height: 160px;
    }
    
    .article-card-most-read {
        flex-direction: column;
    }
    
    .article-card-most-read-image {
        width: 100%;
        height: 180px;
    }
}
