/* =========================================================
   poem.php — толық өлең беті premium style
   Файл: assets/css/poem-page-premium.css
   ========================================================= */

.poem-page{
    background:#fbf3e9;
}

/* =========================================================
   HERO
   ========================================================= */

.poem-hero{
    position:relative;
    min-height:360px;
    display:flex;
    align-items:center;
    border-bottom:1px solid #ead7bf;
    overflow:hidden;
}

.poem-hero.has-cover{
    background:
        linear-gradient(90deg, rgba(255,249,240,.97) 0%, rgba(255,249,240,.9) 42%, rgba(255,249,240,.28) 100%),
        var(--poem-cover) center/cover no-repeat;
}

.poem-hero.no-cover{
    background:
        radial-gradient(circle at 12% 5%, rgba(226,153,44,.16), transparent 34%),
        radial-gradient(circle at 92% 10%, rgba(6,31,63,.08), transparent 32%),
        #fff8ef;
}

.poem-hero-inner{
    width:calc(100% - 80px);
    max-width:1180px;
    margin:0 auto;
    padding:54px 0;
}

.breadcrumbs{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:9px;
    margin-bottom:24px;
    color:#7c6a57;
    font-size:14.5px;
    font-weight:800;
}

.breadcrumbs a{
    color:#b86416;
    text-decoration:none;
}

.breadcrumbs a:hover{
    text-decoration:underline;
}

.breadcrumbs b{
    color:#082a52;
    font-weight:900;
}

.poem-hero h1{
    max-width:760px;
    margin:0 0 18px;
    color:#061f3f;
    font-size:58px;
    line-height:1.04;
    font-weight:900;
    letter-spacing:-.035em;
}

.category-mark{
    display:inline-block;
    margin:0 0 20px;
    padding:0 0 10px;
    border-bottom:1px solid rgba(198,111,31,.38);
    color:#082a52;
    font-size:18px;
    line-height:1.2;
    font-weight:900;
}

.orn-line{
    width:88px;
    height:3px;
    margin:0 0 22px;
    border-radius:99px;
    background:linear-gradient(90deg, #c26f1f, rgba(194,111,31,0));
}

.poem-lead{
    max-width:690px;
    margin:0;
    color:#173252;
    font-size:19px;
    line-height:1.55;
    font-weight:600;
}

/* =========================================================
   CONTENT
   ========================================================= */

.poem-content-section{
    padding:46px 0 80px;
}

.poem-content-container{
    width:calc(100% - 80px);
    max-width:980px;
    margin:0 auto;
}

.poem-text-card{
    background:#fffdf9;
    border:1px solid #ead7bf;
    border-radius:24px;
    box-shadow:0 18px 42px rgba(61,34,8,.075);
    padding:44px 54px;
}

.poem-body{
    color:#102f52;
    font-size:20px;
    line-height:1.95;
    font-weight:600;
    white-space:normal;
}

.poem-body:empty::before{
    content:"Өлең мәтіні енгізілмеген.";
    color:#7c6a57;
}

/* =========================================================
   NEIGHBOR NAV
   ========================================================= */

.poem-neighbor-nav{
    margin:28px auto 0;
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:18px;
}

.neighbor-link{
    min-height:92px;
    padding:20px 24px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:7px;
    border:1px solid #ead7bf;
    border-radius:20px;
    background:#fffdf9;
    color:#082a52;
    text-decoration:none;
    box-shadow:0 12px 26px rgba(61,34,8,.06);
}

.neighbor-link:hover{
    border-color:#d98a28;
    transform:translateY(-2px);
}

.neighbor-link span{
    color:#b86416;
    font-size:13px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:.05em;
}

.neighbor-link b{
    font-size:17px;
    line-height:1.3;
    font-weight:900;
}

.neighbor-link.next{
    text-align:right;
}

.neighbor-link.disabled{
    opacity:0;
    pointer-events:none;
}

/* =========================================================
   BOTTOM PANEL
   ========================================================= */

.poem-bottom-panel{
    width:100%;
    max-width:980px;
    margin:44px auto 0;
    padding:0 18px 10px;
    box-sizing:border-box;
}

.poem-bottom-panel .poem-meta-card{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    overflow:hidden;
    background:rgba(255,253,249,.84);
    border:1px solid rgba(234,215,191,.95);
    border-radius:22px;
    box-shadow:
        0 16px 34px rgba(61,34,8,.075),
        inset 0 1px 0 rgba(255,255,255,.75);
    backdrop-filter:blur(6px);
}

.poem-bottom-panel .meta-item{
    display:flex;
    align-items:center;
    gap:13px;
    min-width:0;
    padding:18px 22px;
    border-right:1px solid rgba(234,215,191,.85);
}

.poem-bottom-panel .meta-item:last-child{
    border-right:0;
}

.poem-bottom-panel .meta-icon{
    width:42px;
    height:42px;
    min-width:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:14px;
    background:linear-gradient(180deg, #fff4df 0%, #ffe7bd 100%);
    color:#c26f1f;
    box-shadow:
        0 9px 18px rgba(194,111,31,.14),
        inset 0 1px 0 rgba(255,255,255,.7);
}

.poem-bottom-panel .meta-icon svg{
    width:21px;
    height:21px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.poem-bottom-panel .meta-text{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:4px;
}

.poem-bottom-panel .meta-text small{
    color:#8a745d;
    font-size:12px;
    line-height:1;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.poem-bottom-panel .meta-text b{
    display:block;
    color:#082a52;
    font-size:16px;
    line-height:1.25;
    font-weight:900;
    white-space:normal;
    overflow-wrap:break-word;
}

.poem-bottom-panel .poem-nav-card{
    margin:20px auto 0;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
    flex-wrap:wrap;
}

.poem-bottom-panel .poem-nav-card a{
    min-height:52px;
    padding:0 24px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    border-radius:999px;
    border:1px solid rgba(225,190,150,.95);
    background:linear-gradient(180deg, #fffdf9 0%, #fff7ed 100%);
    color:#082a52;
    font-size:16px;
    line-height:1;
    font-weight:900;
    text-decoration:none;
    white-space:nowrap;
    box-shadow:
        0 12px 24px rgba(61,34,8,.075),
        inset 0 1px 0 rgba(255,255,255,.9);
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease,
        color .16s ease,
        background .16s ease;
}

.poem-bottom-panel .poem-nav-card a:hover{
    transform:translateY(-2px);
    border-color:#d98a28;
    color:#b86416;
    box-shadow:
        0 16px 32px rgba(61,34,8,.13),
        inset 0 1px 0 rgba(255,255,255,.92);
}

.poem-bottom-panel .poem-nav-card .primary-nav{
    background:linear-gradient(180deg, #092e58 0%, #061f3f 100%);
    border-color:#061f3f;
    color:#ffffff;
    box-shadow:
        0 16px 34px rgba(6,31,63,.24),
        inset 0 1px 0 rgba(255,255,255,.15);
}

.poem-bottom-panel .poem-nav-card .primary-nav:hover{
    color:#ffffff;
    border-color:#082a52;
    box-shadow:
        0 18px 38px rgba(6,31,63,.32),
        inset 0 1px 0 rgba(255,255,255,.18);
}

.poem-bottom-panel .nav-icon{
    width:22px;
    height:22px;
    min-width:22px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#c26f1f;
}

.poem-bottom-panel .primary-nav .nav-icon{
    color:#e8a23d;
}

.poem-bottom-panel .nav-icon svg{
    width:21px;
    height:21px;
    fill:none;
    stroke:currentColor;
    stroke-width:2.25;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* =========================================================
   404
   ========================================================= */

.poem-not-found{
    min-height:60vh;
    display:flex;
    align-items:center;
    padding:80px 0;
    background:#fbf3e9;
}

.poem-not-found .container{
    width:calc(100% - 80px);
    max-width:880px;
    margin:0 auto;
    text-align:center;
}

.poem-not-found h1{
    color:#061f3f;
    font-size:46px;
}

.poem-not-found p{
    color:#173252;
    font-size:18px;
}

.not-found-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:0 24px;
    border-radius:999px;
    background:#061f3f;
    color:white;
    text-decoration:none;
    font-weight:900;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:860px){
    .poem-hero h1{
        font-size:42px;
    }

    .poem-text-card{
        padding:34px 30px;
    }

    .poem-body{
        font-size:18px;
        line-height:1.85;
    }

    .poem-neighbor-nav{
        grid-template-columns:1fr;
    }

    .neighbor-link.next{
        text-align:left;
    }

    .poem-bottom-panel .poem-meta-card{
        grid-template-columns:1fr;
    }

    .poem-bottom-panel .meta-item{
        border-right:0;
        border-bottom:1px solid rgba(234,215,191,.85);
    }

    .poem-bottom-panel .meta-item:last-child{
        border-bottom:0;
    }
}

@media(max-width:560px){
    .poem-hero-inner,
    .poem-content-container{
        width:calc(100% - 32px);
    }

    .poem-hero h1{
        font-size:34px;
    }

    .poem-lead{
        font-size:16px;
    }

    .poem-text-card{
        padding:28px 22px;
        border-radius:20px;
    }

    .poem-body{
        font-size:17px;
        line-height:1.8;
    }

    .poem-bottom-panel{
        margin-top:32px;
        padding-left:0;
        padding-right:0;
    }

    .poem-bottom-panel .poem-nav-card{
        gap:10px;
    }

    .poem-bottom-panel .poem-nav-card a{
        width:100%;
        min-height:50px;
    }
}
