/* =========================================
   Стихи — Тёмная душа / Лунный свет
   ========================================= */

body.poetry-sad {
    min-height: 100vh;
    padding-top: 92px;
    position: relative;
    overflow-x: hidden;
    color: #eaf2ff;
    background:
        radial-gradient(circle at 50% 10%, rgba(214, 230, 255, 0.20), transparent 12%),
        radial-gradient(circle at 20% 22%, rgba(130, 165, 255, 0.12), transparent 20%),
        radial-gradient(circle at 78% 14%, rgba(180, 210, 255, 0.08), transparent 18%),
        linear-gradient(
            to bottom,
            #09111f 0%,
            #0c1730 22%,
            #10203f 46%,
            #0c1830 74%,
            #060b14 100%
        );
    background-attachment: fixed;
}

/* Лунная дымка */
body.poetry-sad::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 12%, rgba(255,255,255,0.08), transparent 20%),
        linear-gradient(to bottom, rgba(255,255,255,0.02), rgba(0,0,0,0.22));
}

/* Дополнительное холодное свечение */
body.poetry-sad::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 12%, rgba(210, 228, 255, 0.07), transparent 10%),
        radial-gradient(circle at 65% 75%, rgba(110, 150, 255, 0.05), transparent 20%);
}

/* =========================
   Верхняя навигация
   ========================= */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

body.poetry-sad .top-nav {
    background: rgba(9, 16, 32, 0.62);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid rgba(220, 235, 255, 0.10);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.top-nav nav {
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 12px 16px;
}

.top-nav nav::-webkit-scrollbar {
    display: none;
}

body.poetry-Sad .top-nav a {
    color: #dce9ff;
    text-decoration: none;
    white-space: nowrap;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.25s ease;
}

body.poetry-sad .top-nav a:hover {
    background: rgba(210, 228, 255, 0.10);
    border-color: rgba(220, 235, 255, 0.16);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(173, 205, 255, 0.10);
    transform: translateY(-1px);
}

/* =========================
   Заголовки
   ========================= */

body.poetry-sad h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #f5f9ff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.6px;
    text-shadow:
        0 0 24px rgba(205, 225, 255, 0.15),
        0 2px 18px rgba(0, 0, 0, 0.45);
}

body.poetry-sad .poem h2 {
    color: #f8fbff;
    margin-bottom: 14px;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.35px;
    text-shadow:
        0 0 10px rgba(218, 232, 255, 0.10),
        0 1px 6px rgba(0, 0, 0, 0.30);
}

/* =========================
   Карточки стихов
   ========================= */

body.poetry-sad .poem {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: 26px;
    border-radius: 22px;

background:
    linear-gradient(145deg, rgba(240, 246, 255, 0.08), rgba(240, 246, 255, 0.02)),
    rgba(10, 16, 30, 0.82);

backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(220, 235, 255, 0.12);

    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255,255,255,0.05);

    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease;
}

body.poetry-sad .poem::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.10) 0%,
            rgba(214, 228, 255, 0.04) 30%,
            rgba(255,255,255,0.00) 62%
        );
}


body.poetry-sad .poem::after {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(245, 248, 255, 0.08),
        rgba(170, 200, 255, 0.03) 42%,
        transparent 72%
    );
    filter: blur(10px);
    pointer-events: none;
}

body.poetry-sad .poem:hover {
    transform: translateY(-5px);
    border-color: rgba(229, 240, 255, 0.20);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04)),
        rgba(14, 24, 44, 0.80);
    box-shadow:
        0 22px 46px rgba(0, 0, 0, 0.42),
        0 0 0 1px rgba(216, 232, 255, 0.04) inset,
        0 0 24px rgba(180, 210, 255, 0.08);
}

/* Основной текст */
body.poetry-sad .poem p,
body.poetry-sad .poem .poem-text {
    color: #ebf3ff;
    line-height: 1.92;
    font-size: 1.04rem;
    text-shadow: 0 1px 0 rgba(0,0,0,0.16);
}	

/* Метаданные */
body.poetry-sad .poem .poem-author,
body.poetry-sad .poem .poem-meta {
    color: #bdd4f5;
    opacity: 0.92;
}

/* =========================
   Теги
   ========================= */

body.poetry-sad .poem-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

body.poetry-sad .poem-tags span,
body.poetry-sad .poem-tags a {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.92rem;
    color: #e5f0ff;
    background: rgba(226, 237, 255, 0.08);
    border: 1px solid rgba(226, 237, 255, 0.12);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition: all 0.22s ease;
}

body.poetry-sad .poem-tags span:hover,
body.poetry-sad .poem-tags a:hover {
    color: #ffffff;
    background: rgba(230, 240, 255, 0.12);
    border-color: rgba(235, 243, 255, 0.18);
    box-shadow: 0 0 12px rgba(200, 220, 255, 0.08);
}

/* =========================
   Лайк
   ========================= */

body.poetry-sad .poem-like {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    cursor: pointer;
    color: #c7ddff;
    transform-origin: center center;
    transition:
        transform 0.2s ease,
        color 0.2s ease,
        text-shadow 0.2s ease,
        filter 0.2s ease;
    backface-visibility: hidden;
    will-change: transform;
    user-select: none;
}

body.poetry-sad .poem-like:hover {
    transform: scale(1.08);
    color: #f3f8ff;
    text-shadow: 0 0 14px rgba(220, 235, 255, 0.35);
    filter: drop-shadow(0 0 8px rgba(193, 219, 255, 0.18));
}

body.poetry-sad .poem-like.liked {
    color: #9fcbff;
    text-shadow: 0 0 16px rgba(190, 220, 255, 0.55);
    animation: like-pop 420ms cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes like-pop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.36); }
    65%  { transform: scale(0.94); }
    85%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* =========================
   Кнопка назад
   ========================= */

body.poetry-sad .btn-back {
    position: fixed;
    top: 82px;
    left: 16px;		
    z-index: 2000;

    padding: 9px 16px;
    border-radius: 14px;
    text-decoration: none;

    color: #eef5ff;
    background: rgba(12, 19, 34, 0.72);
    border: 1px solid rgba(223, 236, 255, 0.12);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 10px 26px rgba(0,0,0,0.28);
    transition: all 0.25s ease;
}

body.poetry-sad .btn-back:hover {
    color: #ffffff;
    background: rgba(18, 28, 48, 0.84);
    border-color: rgba(229, 240, 255, 0.18);
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px rgba(0,0,0,0.30),
        0 0 18px rgba(205, 225, 255, 0.06);
}

/* =========================
   Технические контейнеры
   ========================= */

body.poetry-sad main,
body.poetry-sad .content,
body.poetry-sad .poetry-list {
    position: relative;
    z-index: 1;
}

/* =========================
   Мобилка
   ========================= */

@media (max-width: 768px) {
    body.poetry-Soul {
        padding-top: 84px;
    }

    body.poetry-sad .poem {
        padding: 20px 18px;
        border-radius: 18px;
    }

    body.poetry-sad .poem h2 {
        font-size: 1.24rem;
    }

    body.poetry-sad .btn-back {
        top: 76px;
        left: 12px;
        padding: 8px 12px;
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    header .poetry-search {
        display: none !important;
    }

    .top-nav nav {
        gap: 8px;
        padding: 10px 12px;
    }

    body.poetry-sad h1 {
        margin-bottom: 22px;
    }

    body.poetry-sad .poem p,
    body.poetry-sad .poem .poem-text {
        font-size: 1rem;
        line-height: 1.84;
    }
}
