/* Virtual Museum — shared styles for the 4 public templates.
   Built on the WRTI green palette already used across public pages. */

:root {
    --vm-green:       #2E7D32;
    --vm-green-dark:  #1B5E20;
    --vm-green-soft:  #e8f5e9;
    --vm-accent:      #facc15;
    --vm-text-muted:  #6b7280;
    --vm-card-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    --vm-card-hover:  0 10px 24px rgba(0, 0, 0, 0.10);
}

.vm-hero {
    background: linear-gradient(135deg, var(--vm-green) 0%, var(--vm-green-dark) 100%);
    color: #fff;
    padding: 3.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}
.vm-hero::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 110%, rgba(255,255,255,.10), transparent 60%);
    pointer-events: none;
}
.vm-hero h1 { font-weight: 700; letter-spacing: -0.5px; }
.vm-hero .lead { opacity: 0.92; }

.vm-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--vm-card-shadow);
    overflow: hidden;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid rgba(0,0,0,0.04);
}
.vm-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--vm-card-hover);
}
.vm-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    background: #e2e8f0;
}
.vm-card-body { padding: 1.1rem 1.25rem 1.25rem; }
.vm-card-title { font-weight: 600; margin-bottom: .35rem; color: #111827; }
.vm-card-text  { color: var(--vm-text-muted); font-size: .92rem; line-height: 1.5; }

.vm-badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    background: var(--vm-green-soft);
    color: var(--vm-green-dark);
    font-weight: 600;
}
.vm-badge-featured { background: var(--vm-accent); color: #1f2937; }
.vm-badge-status   { background: #f3f4f6; color: #374151; }

.vm-section-title {
    font-weight: 700;
    color: var(--vm-green-dark);
    margin-bottom: 1rem;
}

/* Gallery-tour fullscreen viewer layout */
.vm-tour-shell {
    position: relative;
    width: 100%;
    background: #0b0f14;
    min-height: 70vh;
    border-radius: 12px;
    overflow: hidden;
    color: #f9fafb;
}
.vm-tour-poster {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
}
.vm-tour-poster::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.20) 0%, rgba(0,0,0,.70) 100%);
}
.vm-tour-poster > div { position: relative; z-index: 1; padding: 2rem; max-width: 720px; }
.vm-tour-canvas {
    position: absolute; inset: 0;
    z-index: 1;
    background: #000;
}
.vm-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(46,125,50,.95);
    color: #fff;
    border: 2px solid #fff;
    box-shadow: 0 0 0 4px rgba(46,125,50,.30), 0 4px 12px rgba(0,0,0,.40);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 5;
    animation: vm-hotspot-pulse 2.2s ease-in-out infinite;
}
@keyframes vm-hotspot-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(46,125,50,.30), 0 4px 12px rgba(0,0,0,.40); }
    50%      { box-shadow: 0 0 0 10px rgba(46,125,50,.08), 0 4px 12px rgba(0,0,0,.40); }
}

.vm-side-panel {
    position: fixed;
    top: 0; right: 0;
    height: 100vh; width: min(420px, 92vw);
    background: #fff;
    box-shadow: -10px 0 30px rgba(0,0,0,.18);
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 1050;
    overflow-y: auto;
}
.vm-side-panel.open { transform: translateX(0); }
.vm-side-panel .panel-head {
    padding: 1rem 1.25rem;
    background: var(--vm-green);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vm-side-panel .panel-body { padding: 1.25rem; }
.vm-side-panel .panel-body img { max-width: 100%; border-radius: 8px; margin-bottom: 1rem; }

/* Photo-gallery fallback (viewer_type=custom) */
.vm-photo-grid img {
    width: 100%; height: 220px;
    object-fit: cover; border-radius: 8px;
    transition: transform .2s ease;
    cursor: zoom-in;
}
.vm-photo-grid img:hover { transform: scale(1.02); }
.vm-empty-state {
    padding: 4rem 1rem;
    text-align: center;
    color: var(--vm-text-muted);
}

/* Artifact detail */
.vm-artifact-hero {
    background: var(--vm-green-soft);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.vm-artifact-meta {
    list-style: none; padding: 0; margin: 0;
}
.vm-artifact-meta li {
    padding: .55rem 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    display: flex; justify-content: space-between; gap: 1rem;
}
.vm-artifact-meta li:last-child { border-bottom: 0; }
.vm-artifact-meta .label { color: var(--vm-text-muted); font-size: .9rem; }
.vm-artifact-meta .value { font-weight: 500; color: #111827; text-align: right; }
