.articles-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 120px;
    min-height: 100vh;
}

.articles-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.articles-sidebar h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.articles-sidebar p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.search-form {
    margin-bottom: 2rem;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrap input {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 0.9375rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input-wrap input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.search-input-wrap input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.search-input-wrap button {
    position: absolute;
    right: 0.375rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: none;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-input-wrap button:hover {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.search-results-info {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.search-results-info strong {
    color: var(--accent-cyan);
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-pill {
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.category-pill:hover,
.category-pill.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.articles-feed {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.article-entry {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.4s ease;
}

.article-entry::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient-primary);
    transition: width 0.6s ease;
}

.article-entry:hover::before {
    width: 100%;
}

.article-cover {
    position: relative;
    aspect-ratio: 21/9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    max-height: 340px;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-entry:hover .article-cover img {
    transform: scale(1.03);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.article-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
}

.article-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.article-entry h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.article-entry:hover h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-entry-featured .article-cover {
    aspect-ratio: 21/9;
    max-height: 340px;
}

.article-entry-featured .article-cover img {
    transition: transform 0.5s ease;
}

.article-entry-featured h3 {
    position: relative;
    padding-left: 1rem;
}

.article-entry-featured h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3rem;
    bottom: 0.3rem;
    width: 3px;
    border-radius: 2px;
    background: var(--gradient-primary);
}

.article-entry-featured .featured-badge {
    top: 0.75rem;
    right: 0.75rem;
}

body[data-theme="light"] .article-entry {
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-bottom: 4rem;
}

.page-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    background: transparent;
}

.page-link:hover,
.page-link.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--bg-primary);
}

.page-link.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .articles-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .articles-sidebar {
        position: relative;
        top: 0;
    }
}
