/* ═══ PUBLICATIONS PAGE SPECIFIC ═══ */

/* Page Header */
.page-header {
    min-height: 42vh;
    padding-top: var(--nav-h);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid var(--border);
}

.ph-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.ph-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(26,107,255,.13);
    top: -30%;
    right: -5%;
}

.ph-orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(108,43,217,.1);
    bottom: -20%;
    left: 5%;
}

.ph-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(108,43,217,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(108,43,217,.04) 1px,transparent 1px);
    background-size: 60px 60px;
}

#ph-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 110px;
    pointer-events: none;
    opacity: .7;
}

.ph-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 3rem 4%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: flex-end;
}

.ph-breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--fm);
    font-size: .65rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.2rem;
    animation: fadeUp .7s var(--ease) both;
}

    .ph-breadcrumb a {
        color: var(--muted);
        text-decoration: none;
        transition: color .2s;
    }

        .ph-breadcrumb a:hover {
            color: var(--purple-3);
        }

.ph-breadcrumb-sep {
    color: var(--border-2);
}

.ph-breadcrumb-cur {
    color: var(--gold-2);
}

.ph-num {
    font-family: var(--fm);
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--purple-3);
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    gap: .6rem;
    animation: fadeUp .7s .05s var(--ease) both;
}

    .ph-num::before {
        content: '';
        width: 18px;
        height: 1px;
        background: var(--purple-3);
    }

.ph-title {
    font-family: var(--fd);
    font-size: clamp(3rem,6vw,5.5rem);
    letter-spacing: .04em;
    line-height: .95;
    animation: fadeUp .8s .1s var(--ease) both;
}

    .ph-title em {
        font-family: var(--fb);
        font-style: italic;
        background: var(--g-gold);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

.ph-desc {
    font-size: .9rem;
    font-weight: 300;
    color: rgba(240,238,255,.45);
    line-height: 1.7;
    max-width: 480px;
    margin-top: .9rem;
    animation: fadeUp .8s .18s var(--ease) both;
}

.ph-stats {
    display: flex;
    gap: 1.5rem;
    animation: fadeUp .8s .22s var(--ease) both;
}

.ph-stat-n {
    font-family: var(--fd);
    font-size: 2rem;
    letter-spacing: .04em;
    background: var(--g-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.ph-stat-l {
    font-family: var(--fm);
    font-size: .6rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: .2rem;
}

/* Kinematic Scene */
#scene-pub-track {
    height: 320vh;
}

#scene-pub {
    background: var(--black-2);
}

.sc-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(108,43,217,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(108,43,217,.04) 1px,transparent 1px);
    background-size: 55px 55px;
}

.sc-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
}

.sc-orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(26,107,255,.13);
    top: -20%;
    right: -10%;
}

.sc-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(108,43,217,.1);
    bottom: -15%;
    left: -5%;
}

#sc-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    pointer-events: none;
}

.sc-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 4%;
    max-width: 1000px;
}

.sc-bgword {
    font-family: var(--fd);
    font-size: clamp(6rem,16vw,16rem);
    letter-spacing: .08em;
    line-height: .85;
    background: linear-gradient(135deg,rgba(26,107,255,.18),rgba(108,43,217,.12));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    user-select: none;
}

.sc-tag {
    font-family: var(--fm);
    font-size: .7rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-2);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
}

    .sc-tag::before, .sc-tag::after {
        content: '';
        width: 22px;
        height: 1px;
        background: var(--gold-2);
    }

.sc-quote {
    font-family: var(--fb);
    font-style: italic;
    font-size: clamp(1.4rem,3vw,2.6rem);
    color: var(--white);
    line-height: 1.4;
    max-width: 780px;
    margin: 0 auto;
}

    .sc-quote em {
        color: var(--gold-2);
        font-style: normal;
    }

.sc-line {
    height: 1px;
    background: linear-gradient(90deg,transparent,var(--gold),transparent);
    margin: 1.4rem auto 0;
    width: 0;
}

/* Pub Body */
.pub-section {
    position: relative;
    z-index: 2;
    padding: 8rem 4%;
}

.pub-inner {
    max-width: 1260px;
    margin: 0 auto;
}

.pub-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3.5rem;
    align-items: start;
}

/* Filter Sidebar */
.filter-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
}

.fs-card {
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.4rem;
    margin-bottom: 1rem;
}

.fs-title {
    font-family: var(--fd);
    font-size: .95rem;
    letter-spacing: .06em;
    margin-bottom: 1rem;
}

.fs-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: .5rem .8rem;
    border: none;
    border-radius: 5px;
    background: transparent;
    font-family: var(--fs);
    font-size: .82rem;
    font-weight: 500;
    color: rgba(240,238,255,.45);
    cursor: pointer;
    transition: background .2s, color .2s;
    margin-bottom: .2rem;
}

    .fs-btn:hover {
        background: rgba(108,43,217,.1);
        color: var(--white);
    }

    .fs-btn.active {
        background: rgba(108,43,217,.2);
        color: var(--purple-3);
    }

.fs-divider {
    height: 1px;
    background: var(--border);
    margin: .8rem 0;
}

.fs-stat {
    display: flex;
    justify-content: space-between;
    font-family: var(--fm);
    font-size: .7rem;
    padding: .3rem 0;
}

.fs-stat-label {
    color: var(--muted);
}

.fs-stat-val {
    color: var(--gold-2);
    font-weight: 500;
}

/* Pub List */
.pub-list {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1rem;
}

/* Book Flip - Complete 3D flip */
.book-wrap {
    perspective: 1500px;
    position: relative;
    height: 320px;
    cursor: pointer;
}

.book {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-wrap:hover .book {
    transform: rotateY(-180deg);
}

.book-cover {
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.4rem;
}


.book-cover,
.book-inside {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
}

.book-cover {
    z-index: 2;
}

.book-inside {
    transform: rotateY(180deg);
    z-index: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--black-2);
    border: 1px solid var(--border-2);
    overflow-y: auto;
}

/* Cover Styles */
.bc-1 {
    background: linear-gradient(160deg,#1a0a2e 0%,#3a1060 40%,#6c2bd9 100%);
}

.bc-2 {
    background: linear-gradient(160deg,#0a0f2a 0%,#0e2060 40%,#1a6bff 100%);
}

.bc-3 {
    background: linear-gradient(160deg,#1a1200 0%,#3d2a00 40%,#d4a017 100%);
}

.bc-4 {
    background: linear-gradient(160deg,#120a2e 0%,#2a0f60 40%,#8b47f0 100%);
}

.bc-5 {
    background: linear-gradient(160deg,#0a1520 0%,#0e3050 40%,#3d8bff 100%);
}

.bc-6 {
    background: linear-gradient(160deg,#1a0f00 0%,#3d2800 40%,#f0c040 100%);
}

.bc-7 {
    background: linear-gradient(160deg,#0a1a10 0%,#0e3820 40%,#1a8f55 100%);
}

.cover-glow {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    filter: blur(50px);
    top: -20%;
    right: -10%;
    opacity: .4;
    pointer-events: none;
}

.cg-p {
    background: var(--purple-2);
}

.cg-b {
    background: var(--blue-2);
}

.cg-g {
    background: var(--gold-2);
}

.cover-spine {
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 5%;
    width: 3px;
    background: linear-gradient(180deg,transparent,rgba(255,255,255,.25),transparent);
    border-radius: 2px;
    z-index: 2;
}

.cover-year {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--fm);
    font-size: .6rem;
    letter-spacing: .1em;
    color: rgba(255,255,255,.4);
    z-index: 2;
}

.cover-badge {
    position: absolute;
    top: 1rem;
    left: 1.6rem;
    font-family: var(--fm);
    font-size: .58rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .18rem .5rem;
    border-radius: 3px;
    z-index: 2;
}

.cb-j {
    background: rgba(108,43,217,.4);
    color: var(--purple-3);
}

.cb-c {
    background: rgba(26,107,255,.35);
    color: var(--blue-2);
}

.cb-r {
    background: rgba(212,160,23,.3);
    color: var(--gold-2);
}

.cover-logo {
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%,-70%);
    font-family: var(--fd);
    font-size: 2.2rem;
    letter-spacing: .1em;
    color: rgba(255,255,255,.13);
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
    text-align: center;
    line-height: 1;
    user-select: none;
}

.cover-bottom {
    position: relative;
    z-index: 3;
    margin-top: auto;
}

.cover-journal {
    font-family: var(--fm);
    font-size: .58rem;
    letter-spacing: .06em;
    color: rgba(255,255,255,.4);
    margin-bottom: .35rem;
}

.cover-title {
    font-family: var(--fd);
    font-size: .88rem;
    letter-spacing: .04em;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

/* Inside Content */
.inside-badge {
    display: inline-block;
    font-family: var(--fm);
    font-size: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    font-weight: 600;
}

.inside-title {
    font-family: var(--fb);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--white);
}

.inside-authors {
    font-family: var(--fs);
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 1.5;
}

.inside-journal {
    font-family: var(--fm);
    font-size: 0.65rem;
    color: var(--purple-3);
    letter-spacing: 0.04em;
}

.inside-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.itag {
    font-family: var(--fm);
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
}

.it-p {
    background: rgba(108, 43, 217, 0.2);
    color: #a78bfa;
}

.it-b {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.it-g {
    background: rgba(212, 160, 23, 0.2);
    color: #fbbf24;
}

.inside-link {
    font-family: var(--fs);
    font-size: 0.7rem;
    color: var(--gold-2);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

    .inside-link:hover {
        color: var(--gold-3);
    }

.inside-year {
    font-family: var(--fd);
    font-size: 3rem;
    color: rgba(108, 43, 217, 0.1);
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    line-height: 1;
}

/* Publications Responsive */
@media(max-width:900px) {
    .pub-layout {
        grid-template-columns: 1fr;
    }

    .filter-sidebar {
        position: static;
    }

    .book-wrap {
        height: 180px;
    }

    .pub-list {
        grid-template-columns: 1fr;
    }
}

@media(max-width:768px) {
    .ph-inner {
        grid-template-columns: 1fr;
    }

    .ph-stats {
        display: none;
    }
}