:root { --navy: #102a43; --blue: #2f80ed; --blue-dark: #1d5fbf; --mint: #b8f2e6; --cream: #f7f4ef; --surface: #fff; --ink: #102a43; --muted: #627d98; --line: #d9e2ec; --danger: #c0392b; --warning: #9a6700; --success: #1f7a5a; --shadow: 0 18px 50px rgba(16, 42, 67, .10); --radius: 22px; }
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--cream); }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: radial-gradient(circle at 78% 0%, rgba(184,242,230,.55), transparent 30rem), var(--cream); font-family: "DM Sans", system-ui, sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.app-shell { min-height: 100vh; }
.site-header { max-width: 1180px; margin: 0 auto; height: 92px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--navy); font: 700 1.15rem "Space Grotesk", sans-serif; letter-spacing: -.04em; text-decoration: none; }
.brand span { color: var(--blue); }
.theme-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--navy); background: rgba(255,255,255,.65); cursor: pointer; }
.page-wrap { max-width: 1180px; margin: 0 auto; padding: 42px 24px 80px; }
.page-loading { display: grid; min-height: 100vh; place-items: center; color: var(--muted); }
.site-footer { max-width: 1180px; margin: auto; padding: 0 24px 28px; color: var(--muted); font-size: .8rem; }
.site-footer a { color: var(--blue-dark); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; letter-spacing: -.055em; }
h1 { margin-bottom: 16px; font-size: clamp(2.5rem, 7vw, 5.8rem); line-height: .98; }
h2 { margin-bottom: 8px; font-size: 1.5rem; }
h3 { margin-bottom: 6px; font-size: 1.08rem; }
p { color: var(--muted); line-height: 1.65; }
.card { border: 1px solid rgba(217,226,236,.85); border-radius: var(--radius); background: rgba(255,255,255,.85); box-shadow: var(--shadow); }
.hero { max-width: 960px; margin: 0 auto 28px; padding: clamp(32px, 7vw, 82px); background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(231,250,246,.88)); }
.hero p { max-width: 540px; font-size: 1.05rem; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--blue-dark); font-size: .7rem; font-weight: 700; letter-spacing: .16em; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.button.primary { color: #fff; background: var(--navy); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { color: var(--navy); background: var(--mint); }
.button.ghost { color: var(--navy); border-color: var(--line); background: transparent; }
.button.danger { color: var(--danger); border-color: #efc1bc; background: #fff8f7; }
.button.small { min-height: 34px; padding: 0 11px; border-radius: 9px; font-size: .78rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 960px; margin: auto; }
.feature { padding: 24px; }
.feature > span { color: var(--blue); font: 700 .75rem "Space Grotesk"; }
.feature h2 { margin-top: 28px; font-size: 1.15rem; }
.feature p { margin-bottom: 0; font-size: .9rem; }
.gallery-heading { max-width: 960px; margin: 0 auto 26px; display: flex; justify-content: space-between; gap: 24px; }
.gallery-heading h1 { max-width: 760px; font-size: clamp(2.6rem, 7vw, 5.6rem); }
.gallery-heading p { max-width: 650px; margin-bottom: 22px; font-size: 1.05rem; }
.gallery-mark { width: 92px; height: 92px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--navy); border-radius: 50%; color: var(--navy); font: 700 .7rem "Space Grotesk"; transform: rotate(9deg); }
.event-details { display: flex; flex-wrap: wrap; gap: 22px; margin: 0; }
.event-details div { min-width: 100px; }
.event-details dt { margin-bottom: 4px; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.event-details dd { margin: 0; font-weight: 700; }
.banner, .notice { max-width: 960px; margin: 0 auto 20px; padding: 14px 18px; border-radius: 12px; font-size: .9rem; }
.banner.demo, .notice.info { color: #245c60; background: #dff8f2; }
.banner.warning, .notice.error { color: var(--warning); background: #fff1c7; }
.notice.success { color: var(--success); background: #dcf5e9; }
.gallery-card, .upload-card, .access-box { max-width: 960px; margin: 0 auto 20px; padding: clamp(20px, 4vw, 34px); }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-head h2 { margin-bottom: 0; }
.counter, .upload-limit { color: var(--muted); font-size: .82rem; text-align: right; line-height: 1.5; }
.counter strong { color: var(--navy); font-size: 1.2rem; }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.media-item { position: relative; aspect-ratio: 1; overflow: hidden; padding: 0; border: 0; border-radius: 10px; background: #dfe7ec; cursor: pointer; }
.media-item img, .media-item video { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.media-item:hover img, .media-item:hover video { transform: scale(1.04); }
.media-item .media-label { position: absolute; right: 7px; bottom: 7px; padding: 3px 7px; border-radius: 99px; color: #fff; background: rgba(16,42,67,.72); font-size: .65rem; }
.play-icon { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 2.2rem; text-shadow: 0 2px 15px rgba(0,0,0,.55); pointer-events: none; }
.empty-media, .empty-state { padding: 50px 20px; text-align: center; }
.empty-media span { color: var(--muted); font-size: .85rem; }
.drop-zone { display: flex; min-height: 190px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1.5px dashed #7ca3c4; border-radius: 16px; color: var(--navy); background: #f6fbff; cursor: pointer; text-align: center; transition: background .2s ease, border-color .2s ease; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--blue); background: #e9f4ff; }
.drop-zone.disabled { cursor: not-allowed; opacity: .55; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone span, .drop-zone small { color: var(--muted); }
.drop-zone small { margin-top: 8px; font-size: .73rem; }
.drop-icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 3px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 1.5rem; }
.selected-files { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.selected-file { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .82rem; }
.selected-file:last-child { border-bottom: 0; }
.selected-file button { width: 26px; height: 26px; margin-left: auto; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; font-size: 1.2rem; }
.file-type { color: var(--blue-dark); font-size: .62rem; font-weight: 700; }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { margin-left: auto; color: var(--muted); font-size: .72rem; }
.upload-actions { display: flex; gap: 10px; margin-top: 14px; }
.upload-actions .button:first-child { flex: 1; }
.upload-status { min-height: 22px; margin-top: 13px; color: var(--muted); font-size: .82rem; }
.demo-text { color: var(--success); font-weight: 700; }
.access-box { padding: 24px 28px; }
.access-box h2 { margin-bottom: 5px; }
.inline-form { display: flex; gap: 9px; }
.inline-form input, .gallery-form input, .gallery-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; outline: 0; }
.inline-form input:focus, .gallery-form input:focus, .gallery-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,128,237,.12); }
.inline-form input { max-width: 300px; }
.lightbox { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 60px; background: rgba(8,20,32,.94); }
.lightbox-content { max-width: 90vw; max-height: 86vh; }
.lightbox-content img, .lightbox-content video { display: block; max-width: 90vw; max-height: 86vh; object-fit: contain; }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; color: #fff; background: transparent; cursor: pointer; }
.lightbox-close { top: 18px; right: 24px; font-size: 2.4rem; }
.lightbox-nav { top: 50%; padding: 30px; transform: translateY(-50%); font-size: 4rem; }
.lightbox-nav.prev { left: 0; }.lightbox-nav.next { right: 0; }
.admin-intro { max-width: 960px; margin: 0 auto 32px; }.admin-intro h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); }.admin-intro p { max-width: 560px; }
.admin-login { max-width: 620px; margin: auto; padding: 28px; }
.admin-content, .admin-toolbar, .filter-row, .admin-list { max-width: 960px; margin-left: auto; margin-right: auto; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }.admin-toolbar h2 { margin-bottom: 5px; }.admin-toolbar p { margin-bottom: 0; font-size: .85rem; }
.filter-row { display: flex; gap: 7px; margin-bottom: 16px; overflow-x: auto; }.filter { padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: transparent; cursor: pointer; font-size: .8rem; }.filter.active { color: #fff; border-color: var(--navy); background: var(--navy); }
.admin-gallery { margin-bottom: 12px; padding: 19px; }.admin-gallery-main { display: flex; align-items: center; gap: 10px; }.admin-gallery-main p { margin-bottom: 0; font-size: .8rem; }.admin-gallery-main code { color: var(--blue-dark); }.status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #b1bdc8; }.status-dot.active { background: #35a871; }.status-dot.closed { background: #e4ad30; }.status-dot.expired { background: #d5655a; }
.admin-stats { display: flex; flex-wrap: wrap; gap: 18px; margin: 16px 0; color: var(--muted); font-size: .78rem; }.admin-stats strong { color: var(--navy); }.admin-actions { display: flex; flex-wrap: wrap; gap: 7px; }.qr-details { margin-top: 14px; color: var(--muted); font-size: .78rem; }.qr-details summary { cursor: pointer; }.qr-row { display: flex; align-items: center; gap: 16px; margin-top: 10px; }.qr-row img { width: 110px; height: 110px; }.qr-row code { overflow-wrap: anywhere; }
.form-card { max-width: 960px; margin: 18px auto; padding: 28px; }.icon-button { border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 1.8rem; }.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }.form-grid label { display: grid; gap: 6px; color: var(--muted); font-size: .78rem; font-weight: 700; }.form-grid .wide { grid-column: 1 / -1; }.form-grid textarea { height: auto; resize: vertical; }.form-grid .check { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }.form-grid .check input { width: auto; min-height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }.hidden { display: none !important; }
@media (max-width: 700px) { .site-header { height: 72px; }.page-wrap { padding: 24px 14px 50px; }.feature-grid { grid-template-columns: 1fr; }.gallery-heading { flex-direction: column; }.gallery-mark { width: 72px; height: 72px; }.media-grid { grid-template-columns: repeat(2, 1fr); }.section-head, .admin-toolbar { flex-direction: column; }.counter, .upload-limit { text-align: left; }.inline-form { flex-direction: column; }.inline-form input { max-width: none; }.inline-form .button { width: 100%; }.form-grid { grid-template-columns: 1fr; }.form-grid .wide { grid-column: auto; }.upload-actions { flex-direction: column; }.lightbox { padding: 45px 8px; }.lightbox-nav { padding: 20px 12px; font-size: 3rem; } }
