/* DreamVenture gallery — cosmic theme matched to the master site CSS. */
@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&family=Cinzel:wght@500;600&display=swap");

:root {
--accent: #4a90e2;
--accent-bright: #00c6ff;
--text: #ffffff;
--text-soft: #a8d2ff;
--text-dim: #cddaf1;
--panel: rgba(4, 31, 78, 0.8);
--panel-line: rgba(168, 210, 255, 0.18);
--radius: 14px;
}

* { box-sizing: border-box; }

html { user-select: none; }

body {
margin: 0;
padding: 0;
min-height: 100vh;
overflow-x: hidden;
color: var(--text);
font-family: "Lexend", sans-serif;
line-height: 1.6;
background: linear-gradient(to bottom, #041f4e 0%, #06245c 45%, #000000 100%)
fixed;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

/* faint static starfield behind everything */
body::before {
content: "";
position: fixed;
inset: 0;
z-index: -1;
pointer-events: none;
background-image:
radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.8), transparent),
radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.6), transparent),
radial-gradient(1.5px 1.5px at 40% 70%, rgba(255, 255, 255, 0.7), transparent),
radial-gradient(1px 1px at 85% 60%, rgba(255, 255, 255, 0.5), transparent),
radial-gradient(1px 1px at 10% 80%, rgba(255, 255, 255, 0.6), transparent),
radial-gradient(1.5px 1.5px at 55% 45%, rgba(255, 255, 255, 0.5), transparent);
background-repeat: repeat;
background-size: 100% 100%;
opacity: 0.5;
}

a { color: var(--text-soft); text-decoration: none; }
a:hover { text-decoration: none; }

.wrap {
max-width: 1180px;
margin: 0 auto;
padding: 0 24px;
}

/* ---------- top bar ---------- */
.topbar {
position: sticky;
top: 0;
z-index: 10;
background: rgba(4, 16, 38, 0.65);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--panel-line);
}
.topbar .wrap {
display: flex;
align-items: center;
justify-content: space-between;
height: 64px;
}
.brand {
font-weight: 700;
font-size: 20px;
letter-spacing: 0.06em;
color: #fff;
text-shadow: 0 0 12px rgba(74, 144, 226, 0.6);
}
.brand .accent {
color: var(--accent-bright);
text-shadow: 0 0 14px rgba(0, 198, 255, 0.7);
}
.topbar nav a {
color: var(--text-dim);
font-weight: 500;
font-size: 14px;
margin-left: 22px;
padding: 0.4rem 0.6rem;
border-radius: 8px;
transition: background-color 0.3s ease;
}
.topbar nav a:hover { background-color: rgba(200, 220, 255, 0.15); }

/* ---------- hero / gallery header ---------- */
.hero { padding: 64px 0 28px; text-align: center; }
.hero .eyebrow {
display: inline-block;
font-family: "Cinzel", serif;
letter-spacing: 0.3em;
text-transform: uppercase;
font-size: 13px;
color: var(--text-soft);
padding: 6px 14px;
border: 1px solid var(--panel-line);
border-radius: 999px;
}
.hero h1 {
font-family: "Lexend", sans-serif;
font-size: clamp(2.4rem, 6vw, 4rem);
font-weight: 600;
letter-spacing: 0.12em;
text-transform: uppercase;
margin: 18px 0 14px;
color: var(--text-soft);
text-shadow:
0 0 5px rgba(168, 210, 255, 0.8),
0 0 10px rgba(168, 210, 255, 0.6),
0 0 20px rgba(74, 144, 226, 0.4),
0 0 40px rgba(74, 144, 226, 0.3);
}
.hero p {
color: var(--text-dim);
font-size: 17px;
max-width: 640px;
margin: 0 auto;
}

/* ---------- featured (pinned) banner ---------- */
.featured { padding: 8px 0 4px; }
.featured-card {
display: grid;
grid-template-columns: 1.15fr 1fr;
gap: 0;
background: var(--panel);
border: 1px solid rgba(245, 197, 24, 0.5);
border-radius: 18px;
overflow: hidden;
box-shadow: 0 0 30px rgba(245, 197, 24, 0.22), 0 14px 50px rgba(0, 0, 0, 0.5);
}
.featured-media {
position: relative;
display: block;
min-height: 100%;
}
.featured-img {
width: 100%;
height: 100%;
min-height: 280px;
object-fit: cover;
display: block;
}
.featured-body {
padding: 32px 36px;
display: flex;
flex-direction: column;
justify-content: center;
gap: 14px;
}
.featured-body .tags { margin: 0; }
.featured-body h2 {
margin: 4px 0 0;
font-size: clamp(1.8rem, 3vw, 2.4rem);
font-weight: 600;
letter-spacing: 0.03em;
}
.featured-body h2 a { color: #fff; text-shadow: 0 0 18px rgba(74, 144, 226, 0.45); }
.featured-body p { margin: 0; color: var(--text-dim); font-size: 16px; }
.featured-actions {
display: flex;
flex-wrap: wrap;
gap: 14px;
margin-top: 8px;
align-items: center;
}
.gallery-btn {
display: inline-flex;
align-items: center;
padding: 11px 24px;
border-radius: 999px;
text-decoration: none;
font-size: 0.85rem;
font-weight: 600;
letter-spacing: 0.06em;
transition: transform 0.25s ease;
}
.gallery-btn.primary { background: #fff; color: #041f4e; }
.gallery-btn:hover { transform: translateY(-2px); }

@media (max-width: 760px) {
.featured-card { grid-template-columns: 1fr; }
.featured-img { min-height: 200px; }
}

/* ---------- gallery grid ---------- */
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
gap: 22px;
padding: 28px 0 72px;
}
.card {
background: var(--panel);
border: 1px solid var(--panel-line);
border-radius: var(--radius);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.45);
overflow: hidden;
display: flex;
flex-direction: column;
transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.card:hover {
transform: translateY(-4px);
box-shadow: 0 5px 30px rgba(74, 144, 226, 0.35),
0 0 18px rgba(0, 198, 255, 0.18);
}
.card .thumb {
aspect-ratio: 16 / 9;
width: 100%;
object-fit: cover;
display: block;
border-bottom: 1px solid var(--panel-line);
opacity: 0.95;
}
.card .body { padding: 18px 20px 22px; }
.card .tags { margin-bottom: 12px; }
.card h3 {
margin: 0 0 8px;
font-size: 20px;
font-weight: 600;
letter-spacing: 0.02em;
color: #fff;
}
.card .desc {
color: var(--text-dim);
font-size: 14.5px;
margin: 0 0 14px;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
.card .meta {
color: var(--accent-bright);
font-weight: 600;
font-size: 13px;
}

/* pinned / winner cards */
.card--pinned {
position: relative;
border-color: rgba(245, 197, 24, 0.55);
box-shadow: 0 0 22px rgba(245, 197, 24, 0.25), 0 0 30px rgba(0, 0, 0, 0.45);
}
a.card--pinned:hover {
box-shadow: 0 6px 34px rgba(245, 197, 24, 0.45),
0 0 18px rgba(0, 198, 255, 0.15);
}
.pin-flag {
position: absolute;
top: 12px;
left: 12px;
z-index: 2;
background: linear-gradient(135deg, #f5c518, #ffb300);
color: #1c1305;
font-weight: 700;
font-size: 11px;
letter-spacing: 0.06em;
text-transform: uppercase;
padding: 5px 11px;
border-radius: 999px;
box-shadow: 0 0 16px rgba(245, 197, 24, 0.5);
}

/* ---------- pill tags ---------- */
.tag {
display: inline-block;
font-weight: 600;
font-size: 11px;
letter-spacing: 0.08em;
text-transform: uppercase;
padding: 5px 12px;
border-radius: 999px;
margin-right: 7px;
margin-bottom: 4px;
}
.tag--event {
background: linear-gradient(135deg, #007bff, #00c6ff);
color: #fff;
box-shadow: 0 0 14px rgba(0, 150, 255, 0.4);
}
.tag--challenge {
background: transparent;
color: var(--text-soft);
border: 1px solid var(--panel-line);
}
.badge-award {
display: inline-block;
background: linear-gradient(135deg, #f5c518, #ffb300);
color: #1c1305;
font-weight: 700;
font-size: 12px;
letter-spacing: 0.04em;
padding: 8px 16px;
border-radius: 999px;
box-shadow: 0 0 16px rgba(245, 197, 24, 0.45);
}

/* ---------- detail page ---------- */
.detail {
display: grid;
grid-template-columns: 1fr 300px;
gap: 24px;
padding: 28px 0 80px;
align-items: start;
}
.panel {
background: var(--panel);
border: 1px solid var(--panel-line);
border-radius: var(--radius);
box-shadow: 0 0 24px rgba(0, 0, 0, 0.45);
padding: 30px 34px;
}
.detail-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
}
.detail h1 {
font-size: clamp(1.8rem, 4vw, 2.2rem);
font-weight: 600;
letter-spacing: 0.04em;
margin: 14px 0;
color: #fff;
text-shadow: 0 0 18px rgba(74, 144, 226, 0.45);
}
.lead { color: var(--text-dim); font-size: 17px; margin: 0 0 18px; }
.detail .meta { color: var(--accent-bright); font-weight: 600; font-size: 14px; }

.prompt-box {
margin: 18px 0 4px;
padding: 16px 18px;
background: rgba(11, 41, 92, 0.6);
border: 1px solid var(--panel-line);
border-left: 4px solid var(--accent-bright);
border-radius: 10px;
}
.prompt-label {
display: block;
font-weight: 700;
font-size: 11px;
letter-spacing: 0.1em;
text-transform: uppercase;
color: var(--accent-bright);
margin-bottom: 6px;
}
.prompt-box p { margin: 0; color: var(--text); font-size: 15.5px; }

.shot {
width: 100%;
border-radius: 12px;
border: 2px solid rgba(255, 255, 255, 0.85);
margin: 22px 0 8px;
display: block;
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
}
.detail h2 {
font-family: "Cinzel", serif;
font-size: 1.1rem;
letter-spacing: 0.12em;
text-transform: uppercase;
margin: 30px 0 10px;
color: var(--text-soft);
}
.detail section p { color: var(--text-dim); margin: 0; }

.links-row {
margin-top: 8px;
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
}
.link-btn {
display: inline-flex;
align-items: center;
gap: 8px;
background: linear-gradient(135deg, #007bff, #00c6ff);
color: #fff;
font-weight: 600;
font-size: 13px;
letter-spacing: 0.05em;
text-transform: uppercase;
padding: 11px 22px;
border-radius: 999px;
box-shadow: 0 4px 20px rgba(0, 150, 255, 0.35);
transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.link-btn:hover {
transform: translateY(-2px) scale(1.03);
box-shadow: 0 6px 28px rgba(100, 220, 255, 0.6);
}
.link-note { color: var(--text-dim); font-weight: 500; font-size: 14px; font-style: italic; }

/* sidebar */
.sidebar h4 {
margin: 0 0 14px;
font-family: "Cinzel", serif;
font-size: 1.1rem;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--text-soft);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li {
font-weight: 500;
font-size: 15px;
color: var(--text);
padding: 9px 0;
border-bottom: 1px solid var(--panel-line);
}
.sidebar li:last-child { border-bottom: none; }

.back {
display: inline-block;
margin-top: 24px;
color: var(--text-dim);
font-weight: 500;
font-size: 14px;
}
.back:hover { color: #fff; }

footer {
border-top: 1px solid var(--panel-line);
background: rgba(4, 16, 38, 0.55);
color: var(--text-dim);
font-size: 1rem;
font-family: "Lexend", sans-serif;
padding: 24px 0;
text-align: center;
}

@media (max-width: 820px) {
.detail { grid-template-columns: 1fr; }
}