/* =========================================
   Стихи —  душа / Небесный свет
   ========================================= */

body.poetry-Soul {
    min-height: 100vh;
    padding-top: 92px;
    position: relative;
    overflow-x: hidden;
    color: #eef7ff;
    background:
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.22), transparent 14%),
        radial-gradient(circle at 16% 22%, rgba(100, 185, 255, 0.28), transparent 24%),
        radial-gradient(circle at 84% 16%, rgba(72, 155, 235, 0.22), transparent 20%),
        linear-gradient(
        to bottom,
            #91cdf8 0%,
            #67b8ef 22%,
            #3f9ee2 48%,
            #2b86cc 74%,
            #1f6fb0 100%
        );
    background-attachment: fixed;
}

/* Небесная дымка */
body.poetry-Soul::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 12%, rgba(255,255,255,0.30), transparent 22%),
        linear-gradient(to bottom, rgba(255,255,255,0.14), rgba(120,180,235,0.10));
}

/* Мягкое солнечно-голубое свечение */
body.poetry-Soul::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 52% 10%, rgba(255, 250, 235, 0.20), transparent 11%),
        radial-gradient(circle at 68% 76%, rgba(170, 220, 255, 0.14), transparent 22%);
}

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

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

body.poetry-Soul .top-nav {
    background: rgba(54, 133, 198, 0.42);
    backdrop-filter: blur(16px) saturate(145%);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 10px 30px rgba(76, 137, 190, 0.18);
}

.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-Soul .top-nav a {
    color: #244d72;
    text-decoration: none;
    white-space: nowrap;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.32);
    border: 1px solid rgba(255,255,255,0.42);
    transition: all 0.25s ease;
}

body.poetry-Soul .top-nav a:hover {
    background: rgba(255,255,255,0.48);
    border-color: rgba(255,255,255,0.65);
    color: #163a59;
    box-shadow: 0 0 14px rgba(165, 215, 255, 0.26);
    transform: translateY(-1px);
}

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

body.poetry-Soul h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #3448f0;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.6px;
    text-shadow:
        0 0 22px rgba(255, 255, 255, 0.34),
        0 2px 14px rgba(70, 120, 170, 0.22);
}

body.poetry-Soul .poem h2 {
    color: #3448f0;
    margin-bottom: 14px;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.35px;
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.28),
        0 1px 6px rgba(85, 140, 190, 0.20);
}

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

body.poetry-Soul .poem {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: 26px;
    border-radius: 22px;
    background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.07)),
        rgba(20, 92, 150, 0.26);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow:
        0 18px 38px rgba(73, 136, 189, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.34);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        background 0.28s ease;
}

body.poetry-Soul .poem::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.38) 0%,
            rgba(224, 242, 255, 0.18) 32%,
            rgba(255,255,255,0.00) 64%
        );
}

body.poetry-Soul .poem::after {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.26),
        rgba(193, 228, 255, 0.16) 44%,
        transparent 74%
    );
    filter: blur(10px);
    pointer-events: none;
}

body.poetry-Soul .poem:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.60);
    background:
        linear-gradient(145deg, rgba(255,255,255,0.42), rgba(255,255,255,0.18)),
        rgba(121, 192, 236, 0.30);
    box-shadow:
        0 22px 46px rgba(71, 134, 188, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset,
        0 0 24px rgba(185, 228, 255, 0.20);
}

/* Основной текст */
body.poetry-Soul .poem p,
body.poetry-Soul .poem .poem-text {
    color: #082567;

    font-size: 1.2rem;      /* было ~1.04 → теперь комфортный размер */
    font-weight: 600;       /* слегка плотнее */

    line-height: 2.1;       /* ключ к читаемости стихов */
    letter-spacing: 0.2px;  /* аккуратно увеличивает ясность */

    text-shadow: 0 1px 0 rgba(27,81,139,0.25);
}

/* Метаданные */
body.poetry-Soul .poem .poem-author,
body.poetry-Soul .poem .poem-meta {
    color: #2f628d;
    opacity: 0.98;
    font-weight 500;
}

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

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

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

body.poetry-Soul .poem-tags span:hover,
body.poetry-Soul .poem-tags a:hover {
    color: #163d5b;
    background: rgba(255, 255, 255, 0.48);
    border-color: rgba(255, 255, 255, 0.62);
    box-shadow: 0 0 12px rgba(181, 224, 255, 0.22);
}

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

body.poetry-Soul .poem-like {
    margin-top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    cursor: pointer;
    color: #3d78a6;
    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-Soul .poem-like:hover {
    transform: scale(1.08);
    color: #225d87;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.38);
    filter: drop-shadow(0 0 8px rgba(173, 224, 255, 0.26));
}

body.poetry-Soul .poem-like.liked {
    color: #4aa7ff;
    text-shadow: 0 0 16px rgba(150, 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-Soul .btn-back {
    position: fixed;
    top: 82px;
    left: 16px;
    z-index: 2000;
    padding: 9px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #1f4f75;
    background: rgba(28, 103, 161, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.48);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 26px rgba(95, 156, 207, 0.18);
    transition: all 0.25s ease;
}

body.poetry-Soul .btn-back:hover {
    color: #123b5a;
    background: rgba(255, 255, 255, 0.56);
    border-color: rgba(255, 255, 255, 0.68);
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px rgba(95, 156, 207, 0.22),
        0 0 18px rgba(210, 240, 255, 0.22);
}

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

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

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

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

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

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

    body.poetry-Soul .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-Soul h1 {
        margin-bottom: 22px;
    }

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