/**
 * Article Search Styles
 * Styles for article results in search interface
 */

/* ==========================================================================
   Articles Section Header
   ========================================================================== */

.articles-section-header {
    margin-bottom: 5px;
}

.articles-section-title {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.articles-label {
    color: #000;
    font-size: 30px;
    font-style: normal;
    font-weight: 300;
    line-height: 64px;
    letter-spacing: 1px;
}

.articles-count {
    font-size: 20px;
    font-weight: 400;
}

/* ==========================================================================
   Article Results Grid
   ========================================================================== */

.article-results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.article-item {
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 0 !important;
}

.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #f5f5f5;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

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

.article-content {
    padding: 20px 0;
}

.article-category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 8px;
}

.article-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 12px 0;
    color: #000;
}

.article-link:hover .article-title {
    text-decoration: underline;
}

.article-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   View More Button
   ========================================================================== */

.article-view-more-container {
    text-align: center;
    margin: 30px 0;
}

.article-view-more-btn {
    background: #666;
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.article-view-more-btn:hover {
    background: #000;
}

.article-view-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* No Articles Message */
.no-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-articles p {
    font-size: 16px;
    margin: 0;
}

/* ==========================================================================
   Skeleton Loading
   ========================================================================== */

.article-skeleton-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.article-skeleton-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.article-skeleton-content {
    padding: 20px 0;
}

.article-skeleton-category {
    width: 50%;
    height: 10px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 2px;
}

.article-skeleton-title {
    width: 80%;
    height: 22px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 2px;
}

.article-skeleton-excerpt {
    width: 100%;
    height: 60px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 2px;
}

@keyframes skeleton-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .article-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .article-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .article-results-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-image {
        height: 350px;
    }
    
    .articles-label {
        font-size: 24px;
        line-height: 48px;
    }
    
    .articles-count {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .article-content {
        padding: 15px 0;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-excerpt {
        font-size: 13px;
    }
}

