/* ==========================================================================
   «Yeniliklər» səhifəsi - /{dil}/yenilikler
   --------------------------------------------------------------------------
   Yalnız bu səhifəyə aiddir; `whatsnew/index.blade.php`-dən `@push('styles')`
   ilə yüklənir. Tema faylı `style.css`-ə toxunulmayıb.

   Siniflər `wn-` prefiksi ilədir - köhnə `section.news` qaydaları ilə
   toqquşmasın deyə (köhnə blade `index.backup.blade.php`-də saxlanılıb).

   Rənglər `style.css`-dəki `:root` dəyişənlərindəndir: --qr-blue, --qr-green.
   Yeni palitra uydurulmur.

   Səhifənin motion dili: «pulse + reveal». Timeline/parallax YOXDUR - o,
   «Üstünlüklər» səhifəsinin vizual ideyasıdır və burada təkrarlanmır.
   ========================================================================== */

.wn-page {
    --wn-text: #020202;
    --wn-muted: #5B5B5B;
    --wn-border: #E4E4E4;
    --wn-line: #EFEFEF;
    --wn-surface: #F7F7F7;
    --wn-blue: var(--qr-blue, #06A4ED);
    --wn-green: var(--qr-green, #A9F504);

    color: var(--wn-text);
    overflow-x: clip;
}

/* ── Ortaq elementlər ──────────────────────────────────────────────────── */

.wn-page .wn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    transition: transform .25s ease;
}

.wn-page .wn-arrow svg {
    display: block;
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.wn-page .wn-pill {
    display: inline-block;
    padding: 5px 13px;
    border: 1px solid var(--wn-border);
    border-radius: 40px;
    background: #fff;
    color: var(--wn-muted);
    font: 400 12px/18px "Poppins", sans-serif;
    white-space: nowrap;
}

.wn-page .wn-placeholder { display: block; width: 100%; height: 100%; }
.wn-page .wn-ph__frame { fill: none; stroke: #C9CFD4; stroke-width: 2; }
.wn-page .wn-ph__eye { fill: none; stroke: #C9CFD4; stroke-width: 2; }
.wn-page .wn-ph__dot { fill: #C9CFD4; }

/* ── Başlıq ───────────────────────────────────────────────────────────── */

/* Başlıqdan əsas karta qədər nəfəs: kart başlığa yapışmasın */
.wn-head { padding: 16px 0 52px; }

.wn-head__inner { position: relative; max-width: 720px; }

.wn-head__title {
    margin: 0 0 14px 0;
    color: var(--wn-text);
    font: 500 40px/60px "Poppins", sans-serif;
}

.wn-head__title span { color: var(--wn-blue); }

.wn-head__lead {
    margin: 0;
    max-width: 560px;
    color: var(--wn-muted);
    font: 400 16px/28px "Poppins", sans-serif;
}

/* İki kiçik dekorativ spark - başlığın yanında, çox zəif hərəkətlə */
.wn-spark {
    position: absolute;
    display: block;
    pointer-events: none;
}

.wn-spark svg { display: block; width: 100%; height: auto; }

.wn-spark--blue {
    top: -6px;
    left: -34px;
    width: 22px;
    transform-origin: center;
    animation: wn-spark-a 4.5s ease-in-out infinite;
}

.wn-spark--blue svg { fill: var(--wn-blue); opacity: .55; }

.wn-spark--green {
    top: 38px;
    right: 4px;
    width: 15px;
    transform-origin: center;
    animation: wn-spark-b 5.6s ease-in-out infinite;
}

.wn-spark--green svg { fill: var(--wn-green); opacity: .85; }

/* Ulduzlar «nəfəs alır»: böyüyüb kiçilir. İki ulduz QƏSDƏN əks fazadadır -
   eyni anda böyüsələr diqqəti səhifənin məzmunundan yayındırır. */
@keyframes wn-spark-a {
    0%, 100% { transform: scale(.78) rotate(-6deg); opacity: .55; }
    50%      { transform: scale(1.18) rotate(6deg);  opacity: 1; }
}

@keyframes wn-spark-b {
    0%, 100% { transform: scale(1.15) rotate(8deg); opacity: 1; }
    50%      { transform: scale(.72) rotate(-8deg); opacity: .45; }
}

/* ── Əsas yenilik ─────────────────────────────────────────────────────── */

.wn-featured { padding: 0 0 60px; }

/* Sütun nisbəti ~69% / ~31% - sağdakı siyahı dar zolağa sıxılmasın.
   `min-height` kartın alçaq görünməsinin qarşısını alır; məzmun daha
   uzun olsa kart öz təbii hündürlüyünə qədər böyüyür. */
.wn-featured__card {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 32px;
    min-height: 540px;
    padding: 32px;
    border: 1px solid var(--wn-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(2, 2, 2, .03);
}

/* Yan siyahı paneldən söndürüləndə kart tək sütuna keçir */
.wn-featured__card--solo { grid-template-columns: minmax(0, 1fr); min-height: 0; }

.wn-featured__main { min-width: 0; }

.wn-featured__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 15px 0;
}

.wn-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 15px 6px 13px;
    border: 1px solid rgba(6, 164, 237, .28);
    border-radius: 40px;
    background: rgba(6, 164, 237, .07);
    color: var(--wn-blue);
    font: 500 13px/20px "Poppins", sans-serif;
}

/* Kiçik nöqtə + yayılan halqa: yeniliyin «canlı» olduğunu bildirir */
.wn-badge__dot {
    position: relative;
    display: block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--wn-blue);
}

.wn-badge__dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--wn-blue);
    animation: wn-ping 3.2s cubic-bezier(.24, .6, .35, 1) infinite;
}

@keyframes wn-ping {
    0%       { transform: scale(1);   opacity: .5; }
    70%, 100% { transform: scale(2.9); opacity: 0; }
}

.wn-featured__date {
    color: var(--wn-muted);
    font: 400 14px/22px "Poppins", sans-serif;
}

.wn-featured__title {
    margin: 0 0 22px 0;
    color: var(--wn-text);
    font: 500 30px/44px "Poppins", sans-serif;
}

/*
   Hündürlük QƏSDƏN sabitdir, nisbətlə deyil: sütun geniş olduğu üçün
   `aspect-ratio` şəkli 400px-dən yuxarı qaldırırdı və kartda mətnə yer
   qalmırdı. Sabit 310px şəkli dominant olmaqdan çıxarır.
*/
.wn-cover {
    position: relative;
    height: 310px;
    margin: 0 0 22px 0;
    border-radius: 18px;
    overflow: hidden;
    background: var(--wn-surface);
}

.wn-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*
   Şəklin üstündə çox zəif halqa - «live product update» hissi.
   Parlaq glow QƏSDƏN yoxdur: şəklin özü oxunaqlı qalmalıdır.
*/
.wn-cover__pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(6, 164, 237, .18) inset;
    opacity: .5;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: none;
    animation: wn-ring 6.5s ease-in-out infinite;
}

@keyframes wn-ring {
    0%, 100% { transform: translate(-50%, -50%) scale(1);    opacity: .38; }
    50%      { transform: translate(-50%, -50%) scale(1.03); opacity: .6; }
}

/* Redaktordan gələn məzmun: başlıq, siyahı və abzaslar da düzgün görünsün */
.wn-featured__text {
    margin: 0 0 20px 0;
    color: var(--wn-muted);
    font: 400 16px/28px "Poppins", sans-serif;
}

.wn-featured__text > *:last-child { margin-bottom: 0; }
.wn-featured__text p { margin: 0 0 14px 0; }
.wn-featured__text h3 { margin: 22px 0 10px; color: var(--wn-text); font: 500 19px/30px "Poppins", sans-serif; }
.wn-featured__text ul,
.wn-featured__text ol { margin: 0 0 14px; padding-left: 20px; }
.wn-featured__text li { margin-bottom: 6px; }
.wn-featured__text a { color: var(--wn-blue); }
.wn-featured__text img { max-width: 100%; height: auto; border-radius: 12px; }

.wn-page .wn-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11.5px 24px;
    border: 1px solid var(--wn-border);
    border-radius: 36px;
    background: #fff;
    color: var(--wn-text);
    font: 500 15px/24px "Poppins", sans-serif;
    text-decoration: none;
    transition: border-color .25s ease, background .25s ease;
}

.wn-page .wn-btn-ghost:hover,
.wn-page .wn-btn-ghost:focus-visible {
    border-color: var(--wn-text);
    background: var(--wn-surface);
}

.wn-page .wn-btn-ghost:hover .wn-arrow { transform: translateX(4px); }

/* ── Yan siyahı ───────────────────────────────────────────────────────── */

/* Siyahı kartın YUXARISINDAN başlayır (badge/başlıq xətti ilə eyni səviyyə)
   və bəndlər qalan hündürlüyü bölüşür - `center` olanda yuxarıda böyük
   boşluq qalırdı. `max-height` bəndlərin həddindən artıq uzanmasının
   qarşısını alır. */
.wn-featured__side {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding-left: 32px;
    border-left: 1px solid var(--wn-line);
}

.wn-side__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex: 1 1 auto;
    min-height: 96px;
    max-height: 160px;
    padding: 16px 14px;
    border-radius: 12px;
    border-bottom: 1px solid var(--wn-line);
    color: var(--wn-text);
    text-decoration: none;
    transition: background .25s ease;
}

.wn-side__item:last-child { border-bottom: 0; }

/* Solda görünən incə mavi xətt - hover və aktiv bənd üçün */
.wn-side__item::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    border-radius: 3px;
    background: var(--wn-blue);
    opacity: 0;
    transform: scaleY(.4);
    transform-origin: center;
    transition: opacity .25s ease, transform .25s ease;
}

.wn-side__item:hover,
.wn-side__item:focus-visible { background: rgba(6, 164, 237, .05); }

/* Aktiv bənd: sol mavi xətt + çox açıq mavi fon */
.wn-side__item.is-current { background: rgba(6, 164, 237, .04); }

.wn-side__item:hover::before,
.wn-side__item:focus-visible::before,
.wn-side__item.is-current::before { opacity: 1; transform: scaleY(1); }

.wn-side__item:hover .wn-arrow,
.wn-side__item:focus-visible .wn-arrow { transform: translateX(5px); }

.wn-side__body { display: block; min-width: 0; }

.wn-side__name {
    display: block;
    margin: 0 0 6px 0;
    color: var(--wn-text);
    font: 500 15px/24px "Poppins", sans-serif;
}

/* Qısa təsvir - maksimum 2 sətir, bəndlərin hündürlüyü bir-birinə yaxın qalsın */
.wn-side__text {
    margin: 0 0 8px 0;
    color: var(--wn-muted);
    font: 400 13px/21px "Poppins", sans-serif;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wn-side__date {
    display: block;
    color: var(--wn-muted);
    font: 400 13px/20px "Poppins", sans-serif;
}

.wn-side__item .wn-arrow { color: var(--wn-muted); }
.wn-side__item:hover .wn-arrow { color: var(--wn-blue); }

/* ── Digər yeniliklər ─────────────────────────────────────────────────── */

.wn-others { padding: 0 0 56px; }

.wn-others__head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 0 28px 0;
}

.wn-others__head h2 {
    margin: 0;
    flex: 0 0 auto;
    color: var(--wn-text);
    font: 500 26px/38px "Poppins", sans-serif;
}

/* Dekorativ: kiçik mavi nöqtə + sağa gedən incə xətt (statikdir) */
.wn-rule {
    position: relative;
    display: block;
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(to right, var(--wn-border), rgba(228, 228, 228, 0));
}

.wn-rule i {
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--wn-blue);
}

.wn-others__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.wn-card {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    border: 1px solid var(--wn-border);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.22, .61, .36, 1), border-color .3s ease, box-shadow .3s ease;
}

.wn-card:hover {
    transform: translateY(-3px);
    border-color: #D7D7D7;
    box-shadow: 0 10px 24px rgba(2, 2, 2, .05);
}

/* Sabit hündürlük - bütün şəkillər eyni xəttdə bitir, mətn hissəsi əzilmir */
.wn-card__media {
    display: block;
    flex: 0 0 auto;
    height: 200px;
    background: var(--wn-surface);
    overflow: hidden;
}

.wn-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.wn-card:hover .wn-card__media img { transform: scale(1.03); }

/* `flex: 1` + `margin-top: auto` (linkdə) → «Oxu» linkləri eyni xəttdədir */
.wn-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    gap: 12px;
    min-height: 184px;
    padding: 22px 24px 24px;
}

.wn-card__title {
    margin: 0;
    /* İki sətirlik yer həmişə saxlanılır - başlıqlar müxtəlif uzunluqdadır */
    min-height: 56px;
    font: 500 18px/28px "Poppins", sans-serif;
}

.wn-card__title a {
    color: var(--wn-text);
    text-decoration: none;
    transition: color .25s ease;
}

.wn-card__title a:hover { color: var(--wn-blue); }

.wn-card__text {
    margin: 0;
    color: var(--wn-muted);
    font: 400 14px/24px "Poppins", sans-serif;

    /* Maksimum 3 sətir - kartların hündürlüyü bir-birinə yaxın qalsın */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wn-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--wn-blue);
    font: 500 14px/22px "Poppins", sans-serif;
    text-decoration: none;
}

.wn-card__link:hover { color: var(--wn-blue); }
.wn-card:hover .wn-card__link .wn-arrow,
.wn-card__link:hover .wn-arrow { transform: translateX(4px); }

/* ── Abunə kartı ──────────────────────────────────────────────────────── */

.wn-newsletter { padding: 0 0 100px; }

.wn-news__card {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 148px;
    padding: 32px 36px;
    border: 1px solid var(--wn-border);
    border-radius: 24px;
    background:
        radial-gradient(42% 90% at 8% 22%, rgba(6, 164, 237, .09), transparent 70%),
        radial-gradient(40% 86% at 92% 84%, rgba(169, 245, 4, .13), transparent 70%),
        var(--wn-surface);
}

.wn-news__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border: 1px solid var(--wn-border);
    border-radius: 16px;
    background: #fff;
}

.wn-news__icon svg {
    display: block;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--wn-text);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wn-news__body { flex: 1 1 auto; min-width: 0; }

.wn-news__body h2 {
    margin: 0 0 6px 0;
    color: var(--wn-text);
    font: 500 22px/34px "Poppins", sans-serif;
}

.wn-news__body p {
    margin: 0;
    max-width: 520px;
    color: var(--wn-muted);
    font: 400 14px/24px "Poppins", sans-serif;
}

.wn-news__form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 6px 6px 6px 20px;
    border: 1px solid var(--wn-border);
    border-radius: 40px;
    background: #fff;
}

.wn-news__form input {
    width: 220px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--wn-text);
    font: 400 14px/24px "Poppins", sans-serif;
}

.wn-news__form input::placeholder { color: #9A9A9A; }

.wn-news__form button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 0;
    border-radius: 36px;
    background: var(--wn-text);
    color: #fff;
    font: 500 14px/22px "Poppins", sans-serif;
    cursor: pointer;
    transition: opacity .25s ease;
}

.wn-news__form button:hover { opacity: .88; }
.wn-news__form button:hover .wn-arrow { transform: translateX(4px); }

/* ── Reveal animasiyası ───────────────────────────────────────────────── */

.wn-page [data-wn-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity .55s ease var(--wn-delay, 0ms),
        transform .55s cubic-bezier(.22, .61, .36, 1) var(--wn-delay, 0ms);
}

.wn-page [data-wn-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media only screen and (max-width: 1199.98px) {
    .wn-head__title { font-size: 34px; line-height: 52px; }
    .wn-featured__title { font-size: 26px; line-height: 40px; }
    .wn-featured__card { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; min-height: 500px; }
    .wn-featured__side { padding-left: 24px; }
    .wn-cover { height: 270px; }

    .wn-others__grid { gap: 22px; }
    .wn-card { min-height: 400px; }
    .wn-card__media { height: 190px; }

    .wn-news__form input { width: 180px; }
}

@media only screen and (max-width: 991.98px) {
    .wn-head { padding: 8px 0 36px; }
    .wn-head__title { font-size: 30px; line-height: 46px; }

    /* Yan siyahı əsas kartın ALTINA düşür - min-height artıq lazım deyil,
       tək sütunda məzmun onsuz da kartı doldurur */
    .wn-featured__card {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        min-height: 0;
        padding: 24px;
    }

    /* Tək sütunda şəkil tam en boyu açılır və nisbətlə ölçülür */
    .wn-cover { height: auto; aspect-ratio: 1.75 / 1; }

    .wn-featured__side {
        padding-left: 0;
        padding-top: 8px;
        border-left: 0;
        border-top: 1px solid var(--wn-line);
    }

    .wn-side__item { padding-left: 12px; }

    .wn-others__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
    .wn-card { min-height: 0; }
    .wn-card__body { min-height: 0; }

    .wn-news__card { flex-wrap: wrap; padding: 28px; min-height: 0; }
    .wn-news__form { flex: 1 1 100%; }
    .wn-news__form input { width: auto; flex: 1 1 auto; }
}

@media only screen and (max-width: 575.98px) {
    .wn-head__title { font-size: 26px; line-height: 40px; }
    .wn-head__lead { font-size: 15px; line-height: 26px; }
    .wn-spark--blue { left: auto; right: 30px; top: -18px; }
    .wn-spark--green { top: auto; bottom: -14px; right: 12px; }

    .wn-featured { padding-bottom: 44px; }
    .wn-featured__card { padding: 20px; border-radius: 20px; }
    .wn-featured__title { font-size: 22px; line-height: 34px; }
    .wn-featured__text { font-size: 15px; line-height: 26px; }
    .wn-page .wn-btn-ghost { width: 100%; justify-content: center; }

    .wn-others__head { gap: 14px; margin-bottom: 22px; }
    .wn-others__head h2 { font-size: 21px; line-height: 32px; }
    .wn-others__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .wn-card__media { height: 200px; }
    .wn-card__title { min-height: 0; }

    .wn-newsletter { padding-bottom: 72px; }
    .wn-news__card { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 20px; }
    .wn-news__body h2 { font-size: 19px; line-height: 30px; }
    .wn-news__form { width: 100%; padding: 8px; flex-direction: column; align-items: stretch; gap: 10px; border-radius: 20px; }
    .wn-news__form input { width: 100%; padding: 8px 12px; }
    .wn-news__form button { width: 100%; justify-content: center; }
}

/* Hərəkət azaldılmasını istəyən istifadəçi: heç bir animasiya yoxdur,
   bloklar birbaşa son vəziyyətdə görünür. */
@media (prefers-reduced-motion: reduce) {
    .wn-page [data-wn-reveal] { opacity: 1; transform: none; transition: none; }
    .wn-page .wn-spark { animation: none; }
    .wn-page .wn-badge__dot::after { animation: none; opacity: 0; }
    .wn-page .wn-cover__pulse { animation: none; }
    .wn-page .wn-arrow { transition: none; }
    .wn-page .wn-card { transition: none; }
    .wn-page .wn-card__media img { transition: none; }
}
