/* ──────────────────────────────────────────────────────────────
   AMBERSKY — Golden Hour Gallery Theme
   ────────────────────────────────────────────────────────────── */

:root {
  --bg:          #0e0a06;
  --bg-card:     #1a1208;
  --bg-hover:    #221908;
  --border:      #3d2e12;
  --accent:      #f5a623;
  --accent2:     #ff6b35;
  --accent3:     #e8306a;
  --sunrise:     #ff9f43;
  --sunset:      #ff6348;
  --realistic:   #f5a623;
  --fantasy:     #c56ef0;
  --text:        #f0e6d3;
  --text-muted:  #7a6548;
  --header-h:    200px;
  --card-w:      280px;
  --radius:      8px;
  --font-sans:   "Playfair Display", "Georgia", serif;
  --font-ui:     "Inter", "Segoe UI", sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  min-height: 100vh;
  line-height: 1.5;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── HEADER ── */
.site-header {
  position: relative;
  padding: 56px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: linear-gradient(180deg, #1a0a00 0%, #0e0a06 100%);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245,166,35,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.header-inner { position: relative; z-index: 1; }

.logo {
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 40px rgba(245,166,35,0.5);
}

.logo span {
  color: var(--accent);
  text-shadow: 0 0 30px rgba(245,166,35,0.8);
}

.subtitle {
  margin-top: 8px;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.meta {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── FILTER BAR ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-right: 4px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-family: var(--font-ui);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
}

/* ── GALLERY GRID ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--card-w), 1fr));
  gap: 20px;
  padding: 32px 24px;
  max-width: 1600px;
  margin: 0 auto;
}

/* ── CARD ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(245,166,35,0.15);
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 9/16;
  overflow: hidden;
  background: var(--bg);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.card:hover .card-img-wrap img {
  transform: scale(1.04);
}

/* ── DOWNLOAD BUTTON ── */
.download-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(245,166,35,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
}

.card:hover .download-btn {
  opacity: 1;
  transform: translateY(0);
}

.download-btn svg {
  width: 16px;
  height: 16px;
  color: #000;
}

/* ── CARD BODY ── */
.card-body {
  padding: 12px 14px 14px;
}

.card-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
  letter-spacing: 0.04em;
}

.card-prompt {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── TAGS ── */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag {
  font-size: 0.62rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid currentColor;
  opacity: 0.85;
}

.tag-sunset   { color: var(--sunset);  }
.tag-sunrise  { color: var(--sunrise); }
.tag-realistic { color: var(--realistic); }
.tag-fantasy  { color: var(--fantasy); }
.tag-city     { color: #7ec8e3; }
.tag-nature   { color: #88d498; }
.tag-person   { color: #f5c6a0; }

/* ── FOOTER ── */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px; }
  .filter-bar { gap: 8px 16px; padding: 14px 16px; }
}
