/* ═══════════════════════════════════════════════════════════════
   Trinity Canvas · style.css
   Theme: Navy #0f1b2d · Gold #c8993c · Ivory #faf7f0
   Fonts: Cinzel (headings) · Cormorant Garamond (body) · Lato (UI)
══════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
    --navy:       #0f1b2d;
    --navy-light: #1a2d45;
    --gold:       #c8993c;
    --gold-pale:  #f5e9c9;
    --ivory:      #faf7f0;
    --ivory-dark: #f1ece0;
    --white:      #ffffff;
    --text:       #2c2c2c;
    --text-muted: #7a7060;
    --font-head:  'Cinzel', serif;
    --font-body:  'Cormorant Garamond', Georgia, serif;
    --font-ui:    'Lato', sans-serif;
    --shadow:     0 2px 12px rgba(15,27,45,.1);
    --shadow-lg:  0 8px 32px rgba(15,27,45,.18);
    --transition: .2s ease;
    --radius:     6px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-ui); color: var(--text); background: var(--ivory); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Visitor Ribbon ─────────────────────────────────────────────── */
.visitor-ribbon {
    background: var(--navy-light);
    color: rgba(245,233,201,.75);
    text-align: center;
    padding: .3rem 1rem;
    font-family: var(--font-ui);
    font-size: .72rem;
    letter-spacing: .1em;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.visitor-ribbon strong { color: var(--gold-pale); }

/* ── Site Header ───────────────────────────────────────────────── */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: .85rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}
.logo-cross { font-size: 1.6rem; color: var(--gold); line-height: 1; }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-family: var(--font-head); font-size: 1.1rem; color: var(--ivory); letter-spacing: .08em; line-height: 1.1; }
.logo-tagline { font-family: var(--font-ui); font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(245,233,201,.6); }
.site-nav { display: flex; gap: .25rem; align-items: center; }
.nav-link {
    font-family: var(--font-ui);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(245,233,201,.75);
    padding: .5rem .9rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { background: rgba(200,153,60,.15); color: var(--gold-pale); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--gold-pale); border-radius: 2px; transition: var(--transition); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
    background: var(--navy);
    text-align: center;
    padding: 6rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8993c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-cross {
    display: block;
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 1rem;
    opacity: .7;
}
.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--ivory);
    letter-spacing: .06em;
    margin-bottom: .75rem;
    position: relative;
    z-index: 1;
}
.hero-tagline {
    font-family: var(--font-body);
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--gold-pale);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.hero-divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .65rem 1.6rem;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: #b8862c; border-color: #b8862c; }
.btn-navy { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); }
.btn-outline { background: transparent; color: var(--ivory); border-color: rgba(245,233,201,.4); }
.btn-outline:hover { background: rgba(245,233,201,.1); border-color: var(--gold); color: var(--gold-pale); }

/* ── Sections ──────────────────────────────────────────────────── */
.section { padding: 4rem 2rem; }
.section-dark { background: var(--navy); }
.section-ivory { background: var(--ivory-dark); }
.container { max-width: 1280px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-label {
    font-family: var(--font-ui);
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gold);
    display: block;
    margin-bottom: .5rem;
}
.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--navy);
    letter-spacing: .06em;
}
.section-dark .section-title { color: var(--ivory); }
.section-rule {
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: .75rem auto 0;
}

/* ── Gallery Grid ──────────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}
.artwork-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
}
.artwork-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.artwork-card__img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--navy);
    display: block;
}
.artwork-card__img img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform .6s ease;
    display: block;
}
.artwork-card:hover .artwork-card__img img { transform: scale(1.05); }
.artwork-card__img::after {
    content: '🔍 View Full Image';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(15,27,45,.92) 0%, transparent 100%);
    color: var(--gold-pale);
    font-family: var(--font-ui);
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 1.8rem .75rem .6rem;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.artwork-card:hover .artwork-card__img::after { opacity: 1; }
.artwork-card__views {
    position: absolute;
    top: .5rem;
    right: .5rem;
    background: rgba(15,27,45,.75);
    color: var(--gold-pale);
    font-family: var(--font-ui);
    font-size: .68rem;
    letter-spacing: .06em;
    padding: .2rem .55rem;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 3;
}
.artwork-card__body { padding: .85rem 1rem 1rem; flex: 1; }
.artwork-card__cats { display: flex; flex-wrap: wrap; gap: .25rem; margin-bottom: .3rem; }
.artwork-card__cat-pill {
    font-family: var(--font-ui);
    font-size: .6rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-pale);
    padding: .1rem .45rem;
    border-radius: 10px;
}
.artwork-card__title {
    font-family: var(--font-head);
    font-size: .95rem;
    color: var(--navy);
    margin-bottom: .25rem;
    line-height: 1.3;
}
.artwork-card__meta {
    font-family: var(--font-ui);
    font-size: .72rem;
    color: var(--text-muted);
}

/* ── Filter Bar ─────────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2rem;
}
.filter-btn {
    font-family: var(--font-ui);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .4rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(15,27,45,.2);
    color: var(--text-muted);
    background: var(--white);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-pale); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--ivory); }

/* ── Pagination ─────────────────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: .82rem;
    border: 1px solid rgba(15,27,45,.15);
    color: var(--text);
    background: var(--white);
    transition: all var(--transition);
    text-decoration: none;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination span.current { background: var(--navy); border-color: var(--navy); color: var(--ivory); }

/* ── Artwork Detail ─────────────────────────────────────────────── */
.artwork-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
    align-items: start;
}
.artwork-detail__image { position: sticky; top: 80px; }
.artwork-detail__image img { border-radius: 6px; box-shadow: var(--shadow-lg); width: 100%; }
.artwork-detail__title {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: var(--navy);
    margin-bottom: .5rem;
    line-height: 1.2;
    letter-spacing: .04em;
}
.artwork-detail__rule { width: 48px; height: 2px; background: var(--gold); margin: .75rem 0 1.25rem; }
.artwork-detail__desc { font-family: var(--font-body); font-size: 1.05rem; line-height: 1.8; color: var(--text); margin-bottom: 1.5rem; }
.artwork-meta-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.artwork-meta-table td { padding: .5rem 0; border-bottom: 1px solid var(--ivory-dark); font-size: .85rem; }
.artwork-meta-table td:first-child { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); width: 120px; }
.view-count-badge {
    display: inline-block;
    background: var(--ivory-dark);
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: .75rem;
    padding: .3rem .85rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

/* ── Social Share ───────────────────────────────────────────────── */
.social-share { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--ivory-dark); }
.social-share__label { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: .75rem; }
.social-share__buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem 1rem;
    border-radius: 20px;
    font-family: var(--font-ui);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}
.share-fb  { background: #1877f2; color: #fff; }
.share-tw  { background: #000; color: #fff; }
.share-wa  { background: #25d366; color: #fff; }
.share-pi  { background: #e60023; color: #fff; }
.share-copy{ background: var(--ivory-dark); color: var(--navy); border: 1px solid rgba(0,0,0,.1); }
.share-copy.copied { background: var(--gold); color: var(--navy); }
.share-btn:hover { opacity: .87; transform: translateY(-1px); }

/* ── Lightbox ───────────────────────────────────────────────────── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.94);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px; box-shadow: 0 0 60px rgba(0,0,0,.5); }
.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* ── Comments ───────────────────────────────────────────────────── */
.comments-section { max-width: 780px; margin: 0 auto; padding: 3rem 2rem; border-top: 1px solid var(--ivory-dark); }
.comments-section h2 { font-family: var(--font-head); color: var(--navy); font-size: 1.3rem; margin-bottom: 1.5rem; }
.comment-item { padding: 1.1rem 0; border-bottom: 1px solid var(--ivory-dark); }
.comment-author { font-family: var(--font-ui); font-size: .8rem; font-weight: 700; color: var(--navy); margin-bottom: .15rem; }
.comment-date { font-family: var(--font-ui); font-size: .72rem; color: var(--text-muted); margin-bottom: .5rem; }
.comment-body { font-family: var(--font-body); font-size: 1rem; line-height: 1.7; }
.comment-form { margin-top: 2.5rem; }
.comment-form h3 { font-family: var(--font-head); font-size: 1.1rem; color: var(--navy); margin-bottom: .5rem; }

/* ── Articles ───────────────────────────────────────────────────── */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.article-card { background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.article-card__cover { aspect-ratio: 16/9; overflow: hidden; }
.article-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.article-card:hover .article-card__cover img { transform: scale(1.04); }
.article-card__body { padding: 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.article-card__cat { font-family: var(--font-ui); font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; display: block; }
.article-card__title { font-family: var(--font-head); font-size: 1.05rem; color: var(--navy); margin-bottom: .4rem; line-height: 1.3; }
.article-card__excerpt { font-family: var(--font-body); font-size: .9rem; color: var(--text-muted); margin-bottom: .75rem; flex: 1; line-height: 1.6; }
.article-card__footer { display: flex; justify-content: space-between; font-family: var(--font-ui); font-size: .72rem; color: var(--text-muted); margin-top: auto; }
.article-single { max-width: 780px; margin: 0 auto; padding: 3rem 2rem; }
.article-single__cat { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.article-single__title { font-family: var(--font-head); font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--navy); margin: .5rem 0 .75rem; line-height: 1.2; }
.article-single__meta { display: flex; gap: 1.5rem; flex-wrap: wrap; font-family: var(--font-ui); font-size: .75rem; color: var(--text-muted); margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 2px solid var(--gold-pale); }
.article-single__cover { margin: 1.5rem 0; border-radius: 6px; overflow: hidden; }
.article-single__cover img { width: 100%; border-radius: 6px; }
.article-body { font-family: var(--font-body); font-size: 1.1rem; line-height: 1.9; color: var(--text); }
.article-body h2, .article-body h3 { font-family: var(--font-head); color: var(--navy); margin: 2rem 0 .75rem; }
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.2rem; }
.article-body p { margin-bottom: 1.2rem; }
.article-body blockquote { border-left: 3px solid var(--gold); padding: .75rem 1.2rem; margin: 1.5rem 0; background: var(--ivory-dark); font-style: italic; border-radius: 0 4px 4px 0; }
.article-body ul, .article-body ol { margin: .75rem 0 1.2rem 1.5rem; }
.article-body a { color: var(--gold); text-decoration: underline; }
.article-body hr { border: none; border-top: 1px solid var(--ivory-dark); margin: 2rem 0; }

/* ── About ──────────────────────────────────────────────────────── */
.about-layout { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; max-width: 1000px; margin: 0 auto; align-items: start; padding: 3rem 2rem; }
.about-portrait img { width: 100%; border-radius: 8px; box-shadow: var(--shadow-lg); }
.about-text h1 { font-family: var(--font-head); font-size: 2rem; color: var(--navy); }
.about-title { font-family: var(--font-ui); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: .3rem 0 1.2rem; }
.about-text p { font-family: var(--font-body); font-size: 1.1rem; line-height: 1.9; color: var(--text); margin-bottom: 1rem; }

/* ── Site Footer ────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: var(--ivory); text-align: center; padding: 3.5rem 2rem 2rem; margin-top: auto; }
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-cross { font-size: 2rem; color: var(--gold); display: block; margin-bottom: .5rem; }
.footer-title { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: .08em; }
.footer-tagline { font-family: var(--font-body); font-style: italic; color: rgba(245,233,201,.6); font-size: .95rem; margin: .3rem 0 1.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .5rem; margin-bottom: 1.5rem; }
.footer-nav a { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(245,233,201,.5); padding: .2rem .5rem; transition: color var(--transition); }
.footer-nav a:hover { color: var(--gold); }
.footer-copy { font-family: var(--font-ui); font-size: .72rem; color: rgba(245,233,201,.35); line-height: 1.8; }
.footer-copy a { color: rgba(200,153,60,.5); }
.footer-copy a:hover { color: var(--gold); }

/* ── Forms (shared public) ──────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    font-family: var(--font-ui);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .35rem;
    font-weight: 700;
}
.form-group input[type=text],
.form-group input[type=email],
.form-group input[type=date],
.form-group input[type=datetime-local],
.form-group input[type=url],
.form-group input[type=number],
.form-group input[type=password],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: .6rem .85rem;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: .9rem;
    color: var(--text);
    background: #fff;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: auto;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(200,153,60,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-family: var(--font-ui); font-size: .72rem; color: var(--text-muted); margin-top: .25rem; display: block; }
.alert { padding: .75rem 1.1rem; border-radius: var(--radius); font-family: var(--font-ui); font-size: .83rem; margin-bottom: 1rem; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ── Admin Layout ───────────────────────────────────────────────── */
.admin-wrap { display: flex; min-height: 100vh; background: #f4f5f7; }
.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar-logo { padding: 1.2rem 1rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.admin-nav { padding: .75rem 0; flex: 1; overflow-y: auto; }
.admin-nav a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1.2rem;
    font-family: var(--font-ui);
    font-size: .78rem;
    letter-spacing: .04em;
    color: rgba(245,233,201,.6);
    transition: all var(--transition);
    text-decoration: none;
}
.admin-nav a:hover { background: rgba(200,153,60,.1); color: var(--gold-pale); }
.admin-nav a.active { background: rgba(200,153,60,.15); color: var(--gold); border-left: 3px solid var(--gold); }
.nav-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.admin-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { background: #fff; padding: .85rem 1.5rem; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-ui); font-size: .85rem; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.admin-page { padding: 1.5rem; flex: 1; }
.admin-card { background: #fff; border-radius: 8px; padding: 1.4rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); margin-bottom: 1.5rem; }
.admin-card h2 { font-family: var(--font-head); font-size: 1.1rem; color: var(--navy); margin-bottom: 1.2rem; padding-bottom: .6rem; border-bottom: 1px solid #eee; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: #fff; border-radius: 8px; padding: 1.1rem 1.2rem; box-shadow: 0 2px 8px rgba(0,0,0,.06); text-align: center; border-top: 3px solid var(--gold); }
.stat-val { font-family: var(--font-head); font-size: 2rem; color: var(--navy); line-height: 1; }
.stat-label { font-family: var(--font-ui); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-top: .3rem; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--navy); color: var(--ivory); padding: .6rem 1rem; text-align: left; font-family: var(--font-ui); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.data-table td { padding: .65rem 1rem; border-bottom: 1px solid #f0f0f0; font-size: .83rem; vertical-align: middle; }
.data-table tr:hover td { background: #fafafa; }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: 20px; font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.badge-green  { background: #d4edda; color: #155724; }
.badge-yellow { background: #fff3cd; color: #856404; }
.badge-red    { background: #f8d7da; color: #721c24; }

/* ── Admin Form overrides ───────────────────────────────────────── */
.admin-page .form-group input,
.admin-page .form-group select,
.admin-page .form-group textarea { background: #fff; }
.admin-page .form-group label { color: #555; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .artwork-detail { grid-template-columns: 1fr; }
    .artwork-detail__image { position: static; }
    .about-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .articles-grid { grid-template-columns: 1fr; }
    .site-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
    .site-nav.open { display: flex; }
    .nav-toggle { display: flex; }
    .hero { padding: 4rem 1.5rem 3rem; }
    .section { padding: 2.5rem 1.25rem; }
    .cropper-wrap { flex-direction: column; }
    .crop-preview-panel { width: 100%; }
}
