/* Home Page */
.home {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: var(--space-lg) var(--container-padding);
    gap: var(--space-xl);
}

/* Articles List */
.articles-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Article Preview Link */
.article-preview-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    transition: transform 0.3s ease;
}

.article-preview-link:hover {
    transform: translateY(-4px);
}

/* Article Preview */
.article-preview {
    width: 100%;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideUp var(--transition-normal);
    border: 1px solid var(--bg-tertiary);
    padding: var(--space-lg);
}

.article-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.article-preview-link:hover .article-preview {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

.article-preview-link:hover .article-preview::before {
    opacity: 1;
    width: 100%;
    background: linear-gradient(90deg, 
        rgba(37, 99, 235, 0.1), 
        rgba(139, 92, 246, 0.05));
}

/* Article Preview Top */
.article-preview-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.article-preview-top-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.article-preview-link:hover .article-preview-top-title {
    opacity: 1;
}

.article-preview-top-date {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

/* Article Preview Content */
.article-preview-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    max-height: 144px; /* 16px * 1.8 * 5 = 144px */
    position: relative;
}

.article-preview-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 1) 90%
    );
    pointer-events: none;
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    .article-preview {
        background: rgba(42, 42, 42, 0.8);
        backdrop-filter: blur(10px);
        border-color: rgba(255, 255, 255, 0.1);
    }

    .article-preview-link:hover .article-preview {
        border-color: rgba(255, 255, 255, 0.2);
    }

    .article-preview-content::after {
        background: linear-gradient(
            to bottom,
            rgba(42, 42, 42, 0) 0%,
            rgba(42, 42, 42, 1) 90%
        );
    }

    .article-preview-top-date {
        background: rgba(255, 255, 255, 0.1);
    }
}

