﻿
/* ====== Nova Post Detail (scoped) ====== */
:root {
    --red: #FF3B5C;
    --bg: #0E1014;
    --surf: #161A21;
    --surf2: #1D2330;
    --line: #2A2F3A;
    --text: #EAF1FB;
    --muted: #A7AEBB;
    --r: 16px;
    --r-lg: 22px;
    --heading: "Cinzel",ui-serif,Georgia,serif;
    --body: "Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

/* progress */
.nova-read-progress {
    position: sticky;
    inset: 0 0 auto 0;
    height: 3px;
    z-index: 1100
}

    .nova-read-progress span {
        display: block;
        height: 100%;
        width: 0;
        background: linear-gradient(90deg,#ff94a8,var(--red));
        box-shadow: 0 0 12px rgba(255,59,92,.5)
    }

/* HERO */
.nova-hero {
    padding-top: 14px;
    margin-bottom: 8px
}

.nova-hero-frame {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0F131A
}

.nova-hero-img {
    display: block;
    width: 100%;
    height: clamp(260px,42vw,520px);
    object-fit: cover;
    border-radius: 0 !important
}

.nova-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,rgba(0,0,0,0) 30%,rgba(0,0,0,.65))
}

.nova-hero-meta {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    backdrop-filter: blur(8px) saturate(130%);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
    background: linear-gradient(180deg,rgba(22,26,33,.72),rgba(22,26,33,.58));
    border: 1px solid var(--line);
    color: var(--text)
}

.nova-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: .28rem .6rem;
    border-radius: 999px;
    border: 1px solid rgba(255,59,92,.35);
    background: rgba(255,59,92,.15);
    font-size: .78rem;
    font-weight: 900;
    color: #FFE1E8
}

    .nova-chip .material-icons {
        font-size: 16px
    }

.nova-title {
    margin: 8px 0 8px;
    font-family: var(--heading);
    font-weight: 900;
    font-size: clamp(1.35rem,3vw,2.1rem)
}

.nova-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted)
}

.nova-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(255,255,255,.12)
}

.nova-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text)
}

.nova-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    display: inline-block
}

.nova-muted {
    color: var(--muted)
}

/* MAIN */
.nova-main {
    margin-bottom: 28px
}

.nova-card {
    background: linear-gradient(180deg,var(--surf2),var(--surf));
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px;
    color: var(--text);
    box-shadow: 0 12px 36px rgba(0,0,0,.25)
}

/* Typography */
.nova-typography {
    line-height: 1.78;
    font-size: 1.06rem
}

    .nova-typography p {
        margin: 0 0 1.15rem
    }

    .nova-typography a {
        color: var(--red);
        text-decoration: none
    }

        .nova-typography a:hover {
            text-decoration: underline
        }

    .nova-typography h2, .nova-typography h3 {
        margin-top: 1.8rem;
        margin-bottom: .4rem;
        font-weight: 900
    }

    .nova-typography h2 {
        font-size: 1.35rem
    }

    .nova-typography h3 {
        font-size: 1.18rem
    }

        .nova-typography h2::after, .nova-typography h3::after {
            content: "";
            display: block;
            height: 3px;
            width: 120px;
            margin-top: .45rem;
            background: var(--red);
            border-radius: 999px
        }

    .nova-typography blockquote {
        margin: 1.6rem 0;
        padding: 1rem 1.1rem;
        background: rgba(255,255,255,.04);
        border-left: 4px solid var(--red);
        border-radius: 12px;
        color: #D7E2EE;
        font-style: italic
    }

    .nova-typography img {
        max-width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
        border: 1px solid var(--line);
        margin: 10px auto
    }

    .nova-typography pre {
        background: #0F131A;
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 12px;
        overflow: auto
    }

    .nova-typography code {
        background: #10151C;
        border: 1px solid var(--line);
        color: #F5A6B2;
        padding: .12rem .38rem;
        border-radius: 8px
    }

/* Aside Widgets ( mevcut ViewComponent'lerle uyumlu ) */
.widget {
    background: linear-gradient(180deg,var(--surf2),var(--surf));
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden
}

.widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line)
}

.widget-title {
    margin: 0;
    color: var(--text);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .3px;
    font-size: .98rem
}

.widget-body {
    padding: 10px
}

.w-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px
}

.w-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: background .18s,border-color .18s,transform .12s
}

    .w-item:hover {
        background: #141922;
        border-color: var(--line);
        transform: translateY(-1px)
    }

.w-cat .w-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255,59,92,.16);
    border: 1px solid rgba(255,59,92,.32);
    color: #FFDDE3
}

.w-cat .material-icons {
    font-size: 18px
}

.w-cat .w-label {
    color: var(--text);
    font-weight: 700;
    text-decoration: none
}

.w-recent .w-thumb {
    width: 64px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--line)
}

.w-recent .w-title {
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    line-height: 1.3
}

    .w-recent .w-title:hover {
        color: var(--red)
    }

.nova-post-nav {
    margin-top: 32px;
    display: grid;
    gap: 16px;
}

@media (min-width: 992px) {
    .nova-post-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.nova-post-nav__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(29, 35, 48, .85), rgba(22, 26, 33, .92));
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.nova-post-nav__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 59, 92, .1), transparent 45%);
    opacity: 0;
    transition: opacity .2s ease;
}

.nova-post-nav__item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 59, 92, .45);
    box-shadow: 0 18px 36px rgba(0, 0, 0, .35);
}

    .nova-post-nav__item:hover::after {
        opacity: 1;
    }

.nova-post-nav__item.is-next {
    flex-direction: row-reverse;
    text-align: right;
}

.npn-cover {
    width: 96px;
    height: 96px;
    border-radius: var(--r);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .05);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .npn-cover img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.npn-cover--empty {
    border-style: dashed;
    color: var(--muted);
}

    .npn-cover--empty .material-icons {
        font-size: 36px;
        opacity: .6;
    }

.npn-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nova-post-nav__item.is-next .npn-body {
    align-items: flex-end;
}

.npn-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

    .npn-label .material-icons {
        font-size: 18px;
    }

.nova-post-nav__item.is-next .npn-label {
    justify-content: flex-end;
}

.npn-title {
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.3;
}

.npn-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: .85rem;
}

.nova-post-nav__item.is-next .npn-meta {
    justify-content: flex-end;
}

.npn-category {
    font-weight: 700;
    color: #FFE1E8;
}

.npn-date {
    color: var(--muted);
}

@media (max-width: 575.98px) {
    .nova-post-nav__item,
    .nova-post-nav__item.is-next {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

        .nova-post-nav__item.is-next .npn-body,
        .nova-post-nav__item.is-next .npn-meta,
        .nova-post-nav__item.is-next .npn-label {
            align-items: flex-start;
            justify-content: flex-start;
        }

    .npn-cover {
        width: 100%;
        height: 160px;
    }
}

@media (max-width: 767.98px) {
    .nova-hero-meta {
        position: static;
        margin: 12px
    }

    .nova-card {
        padding: 14px
    }
}
