/* /cikkek – prémium cikklista */

.articles-page {
    background: #f8fafc;
}

.articles-page main {
    background: #f8fafc;
}

.articles-container,
.articles-hero__container {
    max-width: var(--site-max-width);
}

/* —— Hero —— */
.articles-hero {
    position: relative;
    background: linear-gradient(135deg, #0f2d52 0%, #153d5c 45%, #1f4d3e 100%);
    color: #fff;
    padding: 3.5rem 0 5.5rem;
    overflow: hidden;
}

.articles-hero__pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.articles-hero__pattern::after {
    content: "";
    position: absolute;
    right: -10%;
    top: 20%;
    width: 50%;
    height: 80%;
    border: 2px solid rgba(60, 179, 113, 0.25);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.articles-hero__container {
    position: relative;
    z-index: 1;
}

.articles-hero__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.75rem;
}

.articles-hero__title {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.articles-hero__lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    max-width: 36rem;
    margin: 0;
}

.articles-hero__panel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    backdrop-filter: blur(12px);
}

.articles-hero__panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.articles-hero__panel-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.92);
}

.articles-hero__panel-list span {
    color: #3cb371;
    font-weight: 800;
}

/* —— Body / filter —— */
.articles-page__body {
    padding: 0 0 3.5rem;
}

.articles-filter {
    position: relative;
    z-index: 5;
    margin-top: -2.75rem;
    margin-bottom: 2rem;
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 16px 48px rgba(15, 45, 82, 0.1);
    border: 1px solid rgba(15, 45, 82, 0.06);
}

.articles-filter__title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin: 0 0 1rem;
}

.articles-filter__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.articles-filter__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f2d52;
    margin-bottom: 0.4rem;
}

.articles-filter__label--hidden {
    visibility: hidden;
    height: 0;
    margin: 0;
}

.articles-filter__input,
.articles-filter__select {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    font-size: 0.95rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.articles-filter__input:focus,
.articles-filter__select:focus {
    outline: none;
    border-color: #3cb371;
    box-shadow: 0 0 0 3px rgba(60, 179, 113, 0.2);
    background: #fff;
}

.articles-filter__btn {
    height: 48px;
    width: 100%;
    min-width: 120px;
    padding: 0 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, #0f2d52 0%, #1f6b4f 100%);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.articles-filter__btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 107, 79, 0.35);
}

/* Intro row */
.articles-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1.75rem;
    padding: 0 0.25rem;
}

.articles-intro__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f2d52;
    margin: 0;
    letter-spacing: -0.02em;
}

.articles-intro__count {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.articles-intro__guest {
    font-weight: 600;
    color: #1f6b4f;
}

/* Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    align-items: stretch;
}

/* Card */
.articles-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(15, 45, 82, 0.06);
    box-shadow: 0 10px 36px rgba(15, 45, 82, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.articles-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 52px rgba(15, 45, 82, 0.14);
}

.articles-card--placeholder {
    pointer-events: none;
    opacity: 0.92;
}

.articles-card--placeholder:hover {
    transform: none;
    box-shadow: 0 10px 36px rgba(15, 45, 82, 0.08);
}

.articles-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    overflow: hidden;
    text-decoration: none;
    background:
        radial-gradient(ellipse 85% 65% at 18% 12%, rgba(60, 179, 113, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 92% 88%, rgba(15, 45, 82, 0.12) 0%, transparent 52%),
        linear-gradient(152deg, #edf2f6 0%, #e8f2ec 38%, #e2eaf5 100%);
}

.articles-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 14px 16px;
    box-sizing: border-box;
    transition: transform 0.45s ease;
}

.articles-card:hover .articles-card__media img {
    transform: scale(1.02);
}

.articles-card__placeholder {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 85% 65% at 18% 12%, rgba(60, 179, 113, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse 70% 55% at 92% 88%, rgba(15, 45, 82, 0.12) 0%, transparent 52%),
        linear-gradient(152deg, #edf2f6 0%, #e8f2ec 38%, #e2eaf5 100%);
}

.articles-card__placeholder--pattern {
    background:
        linear-gradient(135deg, #e2eaf2 0%, #d4e6dc 100%),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 12px,
            rgba(15, 45, 82, 0.04) 12px,
            rgba(15, 45, 82, 0.04) 24px
        );
}

.articles-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    background: #fff;
    color: #1f6b4f;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.articles-card__badge--type {
    background: rgba(31, 107, 79, 0.95);
    color: #fff;
}

.articles-card__badge--category {
    top: 2.65rem;
    left: 1rem;
    background: #fff;
    color: #0f2d52;
}

.articles-card__badge--new {
    top: 1rem;
    left: auto;
    right: 1rem;
    background: #3cb371;
    color: #fff;
    letter-spacing: 0.04em;
}

.articles-card__badge--read {
    top: auto;
    bottom: 1rem;
    left: auto;
    right: 1rem;
    background: #0f2d52;
    color: #fff;
    letter-spacing: 0.04em;
}

.articles-card__subtitle {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #64748b;
    line-height: 1.35;
}

.articles-card__badge--muted {
    color: #64748b;
    position: static;
    display: inline-block;
    margin-bottom: 0.75rem;
    box-shadow: none;
    background: #f1f5f9;
}

.articles-card__body {
    padding: 1.35rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.articles-card__title {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 0.65rem;
    letter-spacing: -0.02em;
}

.articles-card__title a {
    color: #0f2d52;
    text-decoration: none;
    transition: color 0.2s;
}

.articles-card__title a:hover {
    color: #1f6b4f;
}

.articles-card__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.articles-card__summary {
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.articles-card--placeholder .articles-card__title {
    display: block;
    -webkit-line-clamp: unset;
    font-size: 1.05rem;
}

.articles-card--placeholder .articles-card__summary {
    display: block;
    -webkit-line-clamp: unset;
}

.articles-card__meta {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.articles-card__meta-tag {
    font-weight: 600;
    color: #1f6b4f;
}

.articles-card__meta-dot {
    margin: 0 0.2rem;
}

.articles-card__cta {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1f6b4f;
    margin-top: auto;
}

.articles-card:hover .articles-card__cta {
    color: #3cb371;
}

/* Empty state */
.articles-empty {
    text-align: center;
    padding: 4rem 1.5rem;
    background: #fff;
    border-radius: 22px;
    border: 1px dashed #cbd5e1;
    max-width: 32rem;
    margin: 2rem auto 0;
}

.articles-empty__icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.articles-empty__title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f2d52;
    margin-bottom: 0.5rem;
}

.articles-empty__text {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.articles-empty__btn {
    display: inline-flex;
    width: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Responsive */
@media (max-width: 991.98px) {
    .articles-filter__grid {
        grid-template-columns: 1fr 1fr;
    }

    .articles-filter__field--search {
        grid-column: 1 / -1;
    }

    .articles-filter__field--submit {
        grid-column: 1 / -1;
    }

    .articles-hero {
        padding-bottom: 5rem;
    }
}

@media (max-width: 575.98px) {
    .articles-filter__grid {
        grid-template-columns: 1fr;
    }

    .articles-hero {
        padding: 2.5rem 0 4.5rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }
}
