.theme-selector { display: none; }
.theme-selector.visible { display: block; }

.article-title::after {
    transition: width 0.3s ease, transform 0.3s ease;
}

.article-preview {
    margin-bottom: 4.5rem;
    border-bottom: 1px solid var(--foreground-dim, #333);
}

.article-preview:last-child {
    border-bottom: none;
}

.preview-content {
    margin-top: 0.5rem;
    max-height: 130px;
    overflow: hidden;
    position: relative;
    opacity: 0.9;
}

.preview-fade-link {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--background-elevated, #282a36));
    display: block;
    cursor: pointer;
    text-decoration: none;
}

.preview-fade-link:hover {
    opacity: 0.9;
}

.article-preview:hover .article-title::after {
    width: 80%;
    transform: skewX(-40deg);
}

.preview-link {
    text-decoration: none !important;
    color: inherit !important;
    border-bottom: none !important;
}

.main {
    padding-top: 2rem !important;
}

.preview-content h1,
.preview-content h2,
.preview-content h3,
.preview-content h4,
.preview-content h5,
.preview-content h6 {
    font-size: 1.1em;
    margin-top: 0.5rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--color-accent, #ff79c6);
    color: var(--color-background, #282a36);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.read-more:hover {
    opacity: 0.8;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination button {
    padding: 0.5rem 1rem;
    background: var(--main-highlight, #ff79c6);
    color: var(--background, #282a36);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}

.pagination button:hover:not(:disabled) {
    opacity: 0.8;
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.preview-content h2::after, .preview-content h3::after {
    height: 2px !important;
    width: 10% !important;
}
.preview-content h2, .preview-content h3, .preview-content h4 {
    margin-left: 0;
}
.preview-content {
    padding: 0 0.4em;
}
.preview-link .article-title {
    font-size: 2.0rem;
    margin-bottom: var(--spacing-xs);
}
@media (max-width: 768px) {
    .preview-link .article-title {
        font-size: 1.5rem;
    }
}
@media (max-width: 480px) {
    .preview-link .article-title {
        font-size: 1.2rem;
    }
}

a.code-block-lang {
    display: none;
}

.preview-content .code-block-wrapper {
    margin: var(--spacing-md) 0;
}

.preview-content p {
    line-height: 1.4;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.pagination .page-info {
    font-size: 0.9rem;
    color: var(--color-text, #f8f8f2);
}
