/* Enhanced Blog Styles - Professional Design */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--fluent-color-neutral-0) 0%, var(--fluent-color-brand-5) 100%);
    border-radius: var(--fluent-radius-xl);
    padding: var(--fluent-spacing-xxxxl) var(--fluent-spacing-xl);
    margin-bottom: var(--fluent-spacing-xxxxl);
    box-shadow: var(--fluent-shadow-depth-8);
    border: 1px solid var(--fluent-color-neutral-20);
}

.page-header h1 {
    background: linear-gradient(135deg, var(--fluent-color-brand-120) 0%, var(--fluent-color-brand-100) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--fluent-spacing-l);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--fluent-spacing-xl);
    margin-bottom: var(--fluent-spacing-xxxxl);
}

/* Article Cards */
.article-card {
    background: var(--fluent-color-neutral-0);
    border: 1px solid var(--fluent-color-neutral-20);
    border-radius: var(--fluent-radius-xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--fluent-shadow-depth-4);
    position: relative;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--fluent-shadow-depth-16);
    border-color: var(--fluent-color-brand-50);
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--fluent-color-brand-100), var(--fluent-color-brand-80));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.article-card:hover::before {
    transform: scaleX(1);
}

/* Article Images */
.article-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

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

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 120, 212, 0) 0%,
        rgba(0, 120, 212, 0.1) 50%,
        rgba(0, 120, 212, 0.2) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-card:hover .image-overlay {
    opacity: 1;
}

/* Article Content */
.article-content {
    padding: var(--fluent-spacing-xl);
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--fluent-spacing-xs);
    background: var(--fluent-color-brand-10);
    color: var(--fluent-color-brand-120);
    padding: var(--fluent-spacing-xs) var(--fluent-spacing-s);
    border-radius: var(--fluent-radius-m);
    font-size: var(--fluent-font-size-xs);
    font-weight: var(--fluent-font-weight-medium);
    margin-bottom: var(--fluent-spacing-m);
    border: 1px solid var(--fluent-color-brand-20);
}

.article-title {
    font-size: var(--fluent-font-size-xl);
    font-weight: var(--fluent-font-weight-semibold);
    color: var(--fluent-color-neutral-140);
    margin: 0 0 var(--fluent-spacing-m) 0;
    line-height: var(--fluent-line-height-tight);
    transition: color 0.2s ease;
}

.article-title a {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(135deg, var(--fluent-color-neutral-140), var(--fluent-color-neutral-120));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.2s ease;
}

.article-card:hover .article-title a {
    background: linear-gradient(135deg, var(--fluent-color-brand-120), var(--fluent-color-brand-100));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-excerpt {
    color: var(--fluent-color-neutral-120);
    margin: 0 0 var(--fluent-spacing-l) 0;
    line-height: var(--fluent-line-height-relaxed);
    font-size: var(--fluent-font-size-s);
}

/* Article Meta */
.article-meta {
    display: flex;
    gap: var(--fluent-spacing-l);
    margin-bottom: var(--fluent-spacing-l);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--fluent-spacing-xs);
    color: var(--fluent-color-neutral-100);
    font-size: var(--fluent-font-size-xs);
    font-weight: var(--fluent-font-weight-medium);
}

.meta-item i {
    color: var(--fluent-color-brand-100);
    font-size: 0.875em;
}

/* Read More Link */
.read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--fluent-spacing-s);
    color: var(--fluent-color-brand-100);
    text-decoration: none;
    font-weight: var(--fluent-font-weight-semibold);
    font-size: var(--fluent-font-size-s);
    transition: all 0.2s ease;
    position: relative;
}

.read-more:hover {
    color: var(--fluent-color-brand-110);
    transform: translateX(4px);
}

.read-more i {
    transition: transform 0.2s ease;
}

.read-more:hover i {
    transform: translateX(2px);
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--fluent-color-brand-100);
    transition: width 0.3s ease;
}

.read-more:hover::after {
    width: 100%;
}

/* Enhanced Pagination */
.pagination-enhanced {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--fluent-spacing-s);
    margin-top: var(--fluent-spacing-xxxxl);
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--fluent-color-neutral-30);
    border-radius: var(--fluent-radius-m);
    background: var(--fluent-color-neutral-0);
    color: var(--fluent-color-neutral-120);
    text-decoration: none;
    font-weight: var(--fluent-font-weight-medium);
    transition: all 0.2s ease;
    box-shadow: var(--fluent-shadow-depth-2);
}

.page-btn:hover {
    background: var(--fluent-color-brand-10);
    border-color: var(--fluent-color-brand-50);
    color: var(--fluent-color-brand-120);
    transform: translateY(-2px);
    box-shadow: var(--fluent-shadow-depth-8);
}

.page-btn.active {
    background: var(--fluent-color-brand-100);
    color: var(--fluent-color-neutral-0);
    border-color: var(--fluent-color-brand-100);
}

/* Loading Animation */
.article-card-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: var(--fluent-spacing-l);
    }

    .article-image {
        height: 200px;
    }

    .article-content {
        padding: var(--fluent-spacing-l);
    }

    .page-header {
        padding: var(--fluent-spacing-xxxxl) var(--fluent-spacing-l);
    }

    .page-header h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (max-width: 480px) {
    .article-meta {
        flex-direction: column;
        gap: var(--fluent-spacing-s);
        align-items: flex-start;
    }

    .article-image {
        height: 180px;
    }

    .category-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
.article-card:focus-within {
    outline: 2px solid var(--fluent-color-brand-100);
    outline-offset: 2px;
}

.read-more:focus {
    outline: 2px solid var(--fluent-color-brand-100);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .article-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .article-image {
        display: none;
    }

    .read-more {
        display: none;
    }
}
