/* ============================================
   THEO LEGRO MEMORIAL SITE
   Complete Styling
   ============================================ */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,600;0,700;1,300;1,600;1,700&family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400&family=Inter:wght@300;400;500&display=swap');

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

:root {
    --black: #000;
    --white: #fff;
    --off: #f5f2ee;
    --mid: #888;
    --dim: #444;
    --pink: #e8195a;
    --pink-dim: rgba(232, 25, 90, 0.12);
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION
   ============================================ */
nav {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 3rem;
    mix-blend-mode: difference;
}

.nav-id {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--white);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 0.5;
}

@media (max-width: 680px) {
    nav {
        padding: 1rem 1.5rem;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.55rem;
    }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 3rem 0;
    padding-top: calc(32px + 60px);
    position: relative;
    overflow: hidden;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%);
    font-family: 'Cormorant', serif;
    font-size: clamp(14rem, 30vw, 28rem);
    font-weight: 700;
    font-style: italic;
    color: rgba(255, 255, 255, 0.025);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.04em;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-label::before {
    content: '';
    width: 2rem;
    height: 1px;
    background: var(--pink);
}

h1.name {
    font-family: 'Cormorant', serif;
    font-size: clamp(5rem, 14vw, 14rem);
    font-weight: 300;
    line-height: 0.88;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 0;
}

h1.name .italic {
    font-style: italic;
    font-weight: 300;
}

h1.name .stroke {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
}

.hero-foot {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: end;
    gap: 2rem;
    padding: 2.2rem 0 0;
}

@media (max-width: 700px) {
    .hero-foot {
        grid-template-columns: 1fr;
        padding-bottom: 2rem;
    }
}

.hf-cell {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mid);
    line-height: 1.9;
}

.hf-cell .accent {
    color: var(--white);
}

.hf-cell .pink {
    color: var(--pink);
}

.hf-cell-center {
    text-align: center;
}

.hf-cell-right {
    text-align: right;
}

/* ============================================
   SECTION WRAPPER
   ============================================ */
section {
    position: relative;
    z-index: 1;
}

/* ============================================
   BIO SECTION
   ============================================ */
.bio {
    background: var(--white);
    color: var(--black);
    padding: 7rem 3rem;
}

@media (max-width: 640px) {
    .bio {
        padding: 5rem 1.5rem;
    }
}

.bio-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    align-items: start;
}

@media (max-width: 780px) {
    .bio-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.bio-aside {
    position: sticky;
    top: calc(32px + 60px + 2rem);
}

.bio-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 1rem;
}

.bio-aside-name {
    font-family: 'Cormorant', serif;
    font-size: 3.2rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.bio-aside-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    line-height: 2.2;
    border-top: 1px solid #e0e0e0;
    padding-top: 1.2rem;
}

.bio-aside-meta .b {
    color: var(--black);
}

.portrait-box {
    margin-top: 2rem;
    width: 100%;
    aspect-ratio: 3/4;
    background: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 1.2rem;
}

.portrait-box::before {
    content: 'T';
    position: absolute;
    top: -3rem;
    left: -1rem;
    font-family: 'Cormorant', serif;
    font-size: 20rem;
    font-weight: 700;
    font-style: italic;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    pointer-events: none;
}

.pb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
}

.portrait-ig {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pink);
    text-decoration: none;
    z-index: 1;
    transition: opacity 0.2s;
}

.portrait-ig:hover {
    opacity: 0.6;
}

.bio-text p {
    font-size: 1.08rem;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.85;
    font-weight: 300;
}

.bio-text p strong {
    color: var(--black);
    font-weight: 500;
}

.blockq {
    margin: 2.5rem 0;
    border-left: 2px solid var(--pink);
    padding: 0.4rem 0 0.4rem 1.8rem;
}

.blockq p {
    font-family: 'Cormorant', serif;
    font-size: 1.55rem;
    font-style: italic;
    font-weight: 300;
    color: var(--black);
    line-height: 1.4;
    margin: 0 !important;
}

.blockq cite {
    display: block;
    margin-top: 0.8rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pink);
    font-style: normal;
}

/* ============================================
   POETRY SECTION
   ============================================ */
.poetry {
    background: var(--black);
    padding: 7rem 3rem;
}

@media (max-width: 640px) {
    .poetry {
        padding: 5rem 1.5rem;
    }
}

.poetry-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.sec-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.sec-title {
    font-family: 'Cormorant', serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    line-height: 1;
}

.sec-title em {
    font-style: normal;
    color: var(--pink);
}

.sec-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mid);
}

.track {
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
    position: relative;
}

.track::before {
    content: '';
    position: absolute;
    left: -3rem;
    right: -3rem;
    top: 0;
    bottom: 0;
    background: rgba(232, 25, 90, 0.05);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.track:hover::before {
    opacity: 1;
}

.track:hover .track-title {
    color: var(--pink);
}

.track:hover .track-arrow {
    color: var(--pink);
    transform: translateX(5px);
}

.track:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

@media (max-width: 600px) {
    .track {
        grid-template-columns: 2rem 1fr auto;
        gap: 1rem;
    }
}

.track-num {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--dim);
    letter-spacing: 0.08em;
    text-align: right;
}

.track-info .track-pub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 0.35rem;
}

.track-title {
    font-family: 'Cormorant', serif;
    font-size: 1.6rem;
    font-style: italic;
    font-weight: 300;
    color: var(--white);
    display: block;
    transition: color 0.2s;
    margin-bottom: 0.3rem;
}

.track-desc {
    font-size: 0.82rem;
    color: var(--dim);
    line-height: 1.5;
}

.track-arrow {
    font-size: 1rem;
    color: var(--dim);
    transition: color 0.2s, transform 0.2s;
}

.pub-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 3.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 2rem;
}

.pub-pill {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim);
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   BOOK SECTION
   ============================================ */
.book {
    background: var(--off);
    color: var(--black);
    padding: 7rem 3rem;
}

@media (max-width: 640px) {
    .book {
        padding: 5rem 1.5rem;
    }
}

.book-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 680px) {
    .book-inner {
        grid-template-columns: 1fr;
    }
}

.book-obj {
    width: 220px;
    height: 300px;
    background: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 12px 12px 0 0 var(--pink);
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.book-obj:hover {
    box-shadow: 16px 16px 0 0 var(--pink);
    transform: translate(-2px, -2px);
}

.book-obj::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--pink);
}

.book-obj-img {
    padding: 0;
    width: 220px;
    height: auto;
}

.book-obj-img img {
    width: 220px;
    display: block;
}

.book-obj-title {
    font-family: 'Cormorant', serif;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 300;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.book-obj-rule {
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 auto 1rem;
}

.book-obj-author {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #888;
}

.book-obj-prize {
    margin-top: 1.4rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pink);
    border-top: 1px solid rgba(232, 25, 90, 0.3);
    padding-top: 0.8rem;
    line-height: 1.6;
}

.book-text .book-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 1rem;
}

.book-text h2 {
    font-family: 'Cormorant', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1;
    color: var(--black);
    margin-bottom: 1.8rem;
}

.book-text p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1.1rem;
    line-height: 1.8;
    font-weight: 300;
}

.book-text p strong {
    color: var(--black);
    font-weight: 500;
}

.award-line {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.45rem 1.1rem;
    border: 1px solid var(--black);
    color: var(--black);
}

.buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.4rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.75rem 1.6rem;
    background: var(--pink);
    color: var(--white);
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    border: none;
}

.buy-btn:hover {
    background: #bf1248;
    transform: translateY(-2px);
}

.buy-btn::after {
    content: '→';
}

/* ============================================
   PHOTO STRIP
   ============================================ */
.photo-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--black);
}

@media (max-width: 900px) {
    .photo-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .photo-strip {
        grid-template-columns: 1fr;
    }
}

.photo-frame {
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
    background: #0d0d0d;
    display: flex;
    align-items: flex-end;
}

.photo-frame:hover .pf-img {
    transform: scale(1.04);
}

.pf-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
    z-index: 1;
    display: block;
}

.pf-caption {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
}

.pf-caption .pfc-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.56rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 0.25rem;
}

.pf-caption .pfc-credit {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.54rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   TRIBUTES SECTION
   ============================================ */
.tributes {
    background: var(--white);
    color: var(--black);
    padding: 7rem 3rem;
}

@media (max-width: 640px) {
    .tributes {
        padding: 5rem 1.5rem;
    }
}

.tributes-inner {
    max-width: 720px;
    margin: 0 auto;
}

.trib-title {
    font-family: 'Cormorant', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    font-style: italic;
    color: var(--black);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.trib-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 3rem;
}

.form-stack {
    margin-bottom: 3rem;
}

.field {
    margin-bottom: 1.2rem;
}

.field label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 0.45rem;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    background: var(--off);
    border: none;
    border-bottom: 1px solid #ccc;
    color: var(--black);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    padding: 0.75rem 0.8rem;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    border-radius: 0;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--pink);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #bbb;
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.field select {
    cursor: pointer;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

@media (max-width: 500px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

.btn-submit {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 0.85rem 2.4rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    margin-top: 0.4rem;
}

.btn-submit:hover {
    background: var(--pink);
    transform: translateY(-2px);
}

.entries-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e8e8e8;
    padding-top: 2rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.entries-head h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #aaa;
}

.entries-head .count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    color: var(--pink);
}

.entry {
    padding: 2rem 0;
    border-bottom: 1px solid #efefef;
    animation: rise 0.35s ease;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.entry-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.entry-name {
    font-family: 'Cormorant', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--black);
}

.entry-kind {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pink);
    margin-top: 0.15rem;
}

.entry-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.58rem;
    color: #bbb;
    white-space: nowrap;
}

.entry-body {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.75;
    white-space: pre-wrap;
    font-weight: 300;
}

.empty {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: #ccc;
    text-align: center;
    padding: 3rem 0;
    border: 1px dashed #e0e0e0;
}

/* ============================================
   FIND LINKS SECTION
   ============================================ */
.find {
    background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4rem 3rem;
}

@media (max-width: 640px) {
    .find {
        padding: 3rem 1.5rem;
    }
}

.find-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.find-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mid);
}

.find-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.find-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: border-color 0.2s, color 0.2s;
}

.find-link::after {
    content: ' ↗';
}

.find-link:hover {
    border-color: var(--pink);
    color: var(--pink);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5rem 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: end;
}

@media (max-width: 600px) {
    footer {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem;
    }
}

.ft-name {
    font-family: 'Cormorant', serif;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 300;
    line-height: 0.88;
    letter-spacing: -0.02em;
}

.ft-name .italic {
    font-style: italic;
}

.ft-name .pink {
    color: var(--pink);
}

.ft-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--dim);
    line-height: 2.2;
    text-align: right;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    animation: slideIn 0.3s ease;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.flash.success {
    background: #28a745;
    color: white;
}

.flash.error {
    background: #dc3545;
    color: white;
}

/* ============================================
   ADMIN STYLES
   ============================================ */
.admin-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
    color: var(--white);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--pink);
}

.admin-header h1 {
    font-family: 'Cormorant', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    font-weight: 600;
    margin: 0;
}

.admin-logout {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pink);
    text-decoration: none;
    border: 1px solid rgba(232, 25, 90, 0.45);
    padding: 0.8rem 1rem;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.admin-logout:hover {
    background: var(--pink);
    color: var(--white);
    border-color: var(--pink);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 1.4rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(4px);
}

.admin-stat-number {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--pink);
    line-height: 1;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.admin-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 0.9rem 1.15rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.admin-nav a:hover {
    transform: translateY(-1px);
    background: rgba(232, 25, 90, 0.12);
    border-color: rgba(232, 25, 90, 0.8);
    color: var(--white);
    box-shadow: 0 0 0 1px rgba(232, 25, 90, 0.15), 0 8px 24px rgba(0, 0, 0, 0.25);
}

.admin-nav a.active {
    background: var(--pink);
    color: var(--white);
    border-color: var(--pink);
    box-shadow: 0 10px 24px rgba(232, 25, 90, 0.28);
}

.admin-section {
    margin-bottom: 2rem;
}

.admin-section h2 {
    font-family: 'Cormorant', serif;
    font-size: 1.7rem;
    color: var(--white);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.upload-form,
.admin-tribute-card,
.admin-photo-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
    color: var(--white);
}

.upload-form {
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.upload-form h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.upload-form label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.35rem;
    color: rgba(255, 255, 255, 0.62);
}

.upload-form input,
.upload-form select,
.upload-form textarea {
    width: 100%;
    padding: 0.8rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    outline: none;
}

.upload-form input:focus,
.upload-form select:focus,
.upload-form textarea:focus {
    border-color: rgba(232, 25, 90, 0.8);
    box-shadow: 0 0 0 3px rgba(232, 25, 90, 0.12);
}

.upload-form button {
    background: var(--pink);
    color: var(--white);
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.2rem;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-photo-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-photo-actions form {
    flex: 1;
}

.admin-photo-actions button {
    width: 100%;
    min-height: 40px;
    padding: 0.55rem 0.7rem;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
}

.btn-delete {
    background: #c53446;
    color: white;
}

.btn-toggle {
    background: #f3c94a;
    color: #111;
}

.admin-tribute-card {
    padding: 1.25rem 1.4rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--pink);
}

.empty {
    min-height: 180px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'IBM Plex Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.015);
}

@media (max-width: 700px) {
    .admin-container {
        padding: 1.5rem 1rem 3rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-nav {
        display: grid;
        grid-template-columns: 1fr;
    }

    .admin-nav a {
        width: 100%;
        min-width: 0;
    }
}

.admin-section {
    margin-bottom: 2rem;
}

.admin-section h2 {
    font-family: 'Cormorant', serif;
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ddd;
}

.admin-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.admin-photo-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.admin-photo-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.admin-photo-info {
    padding: 0.5rem;
    font-size: 0.7rem;
}

.admin-photo-actions {
    display: flex;
    gap: 0.25rem;
    padding: 0.5rem;
    background: #f5f5f5;
}

.admin-photo-actions form {
    flex: 1;
}

.admin-photo-actions button {
    width: 100%;
    padding: 0.25rem;
    font-size: 0.6rem;
    border: none;
    cursor: pointer;
}

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-toggle {
    background: #ffc107;
    color: #333;
}

.upload-form {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #ddd;
}

.upload-form h3 {
    margin-bottom: 1rem;
}

.upload-form .form-group {
    margin-bottom: 1rem;
}

.upload-form label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    color: #666;
}

.upload-form input,
.upload-form select,
.upload-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.upload-form button {
    background: var(--black);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.admin-tribute-card {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border-left: 4px solid var(--pink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-tribute-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-tribute-name {
    font-weight: 600;
    color: var(--black);
}

.admin-tribute-type {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    color: var(--pink);
    background: var(--pink-dim);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.admin-tribute-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    color: #999;
}

.admin-tribute-message {
    color: #444;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.admin-tribute-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-approve {
    background: #28a745;
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
}

.btn-reject {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 0.4rem 1rem;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
}

.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
}

.admin-login-box {
    max-width: 400px;
    margin: 100px auto;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.admin-login-box h1 {
    font-family: 'Cormorant', serif;
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    text-align: center;
}

.admin-login-box input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

.admin-login-box button {
    width: 100%;
    background: var(--black);
    color: white;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.admin-login-box button:hover {
    background: var(--pink);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .admin-container {
        padding: 1rem;
    }
    
    .admin-tribute-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
/* =========================
   BIO MOBILE FIX
========================= */
@media (max-width: 780px) {
    .bio-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bio-aside {
        position: static;
        top: auto;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .bio-aside-name {
        font-size: 2.8rem;
        line-height: 0.95;
        margin-bottom: 1rem;
    }

    .bio-aside-meta {
        line-height: 1.9;
        margin-bottom: 1.5rem;
    }

    .portrait-box {
        aspect-ratio: 4 / 5;
        margin-top: 1.25rem;
    }

    .bio-text {
        width: 100%;
    }

    .bio-text p {
        font-size: 1.02rem;
        line-height: 1.75;
        margin-bottom: 1.25rem;
    }

    .blockq {
        margin: 2rem 0;
        padding-left: 1.1rem;
    }

    .blockq p {
        font-size: 1.25rem;
        line-height: 1.35;
    }
}

@media (max-width: 560px) {
    .bio {
        padding: 4rem 1.25rem;
    }

    .bio-inner {
        gap: 1.5rem;
    }

    .bio-label {
        margin-bottom: 0.75rem;
    }

    .bio-aside-name {
        font-size: 2.3rem;
    }

    .bio-aside-meta {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
        line-height: 1.8;
    }

    .portrait-box {
        aspect-ratio: 1 / 1.15;
        padding: 1rem;
    }

    .portrait-box::before {
        font-size: 12rem;
        top: -1.5rem;
        left: -0.25rem;
    }

    .portrait-ig {
        font-size: 0.55rem;
        letter-spacing: 0.12em;
    }

    .bio-text p {
        font-size: 0.98rem;
        line-height: 1.7;
    }
}

.find-link-highlight {
    border: 1px solid var(--gold);
    background: rgba(212, 175, 55, 0.08);
    padding: 6px 10px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.find-link-highlight:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

/* =========================
   KUNDIMAN SECTION
========================= */

.kundiman {
    background: var(--bg-section);
    padding: 90px 20px;
    position: relative;
}

.kundiman-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.kundiman-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 18px;
}

.kundiman h2 {
    font-family: 'Cormorant', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 1.8rem;
}

.kundiman p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 18px;
    color: var(--text);
}

.kundiman-btn {
    display: inline-block;
    margin-top: 30px;

    padding: 12px 22px;

    border: 1px solid var(--gold);
    background: rgba(212,175,55,0.08);

    font-weight: 500;
    letter-spacing: 0.04em;

    text-decoration: none;
    color: var(--text);

    transition: all 0.25s ease;
}

.kundiman-btn:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

/* ============================================
   KUNDIMAN SECTION
   ============================================ */

.kundiman {
    background: var(--bg-section);
    padding: 90px 20px;
    position: relative;
}

.kundiman-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.kundiman-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 18px;
}

.kundiman h2 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 28px;
}

.kundiman p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 18px;
    color: var(--text);
}

/* ============================================
   KUNDIMAN BUTTON — STRONGER VISIBILITY
   ============================================ */

.kundiman-btn {
    display: inline-block;

    margin-top: 36px;

    padding: 16px 28px;

    background: var(--gold);
    color: #000;

    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    text-decoration: none;

    border: none;
    border-radius: 4px;

    box-shadow:
        0 0 0 1px rgba(212,175,55,0.6),
        0 6px 18px rgba(212,175,55,0.35);

    transition: all 0.25s ease;
}

.kundiman-btn:hover {
    background: #e6c45a;

    transform: translateY(-2px);

    box-shadow:
        0 0 0 1px rgba(212,175,55,0.8),
        0 10px 28px rgba(212,175,55,0.45);
}


/* ============================================
   EXTRA HERO FOOT SPACING — DESKTOP ONLY
   ============================================ */

@media (min-width: 701px) {

    .hero-foot {
        padding-top: 3.5rem;     /* increases space above subheading */
        padding-bottom: 4.5rem;  /* adds more black space below */
    }

}