/* ============================================================
   ArtDrop Gallery — Shared Stylesheet
   artdroplive.com
   ============================================================ */

/* ── Google Fonts are loaded in each HTML file via <link> ── */

/* ─────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES (THEME)
───────────────────────────────────────────── */
:root {
  --turquoise:    #0ABFBC;
  --turquoise-lt: #E6FAF9;
  --turquoise-dk: #089A97;
  --pink:         #FF2D78;
  --pink-lt:      #FFE9F0;
  --pink-dk:      #D91F62;

  /* Day mode (default) */
  --bg:           #F7F6F2;
  --surface:      #FFFFFF;
  --surface2:     #F0EEE9;
  --border:       #E2DFD8;
  --text:         #111111;
  --text-muted:   #888880;
  --text-light:   #BBBBBA;

  /* Spacing */
  --nav-h:        64px;
  --max-w:        1100px;
  --pad-x:        40px;

  /* Type */
  --serif:        'DM Serif Display', Georgia, serif;
  --sans:         'Inter', system-ui, sans-serif;

  /* Radius */
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.09);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12);

  /* Transition */
  --ease: .2s ease;
  --ease-slow: .4s ease;
}

[data-mode="night"] {
  --bg:         #0C0C0C;
  --surface:    #161616;
  --surface2:   #1E1E1E;
  --border:     #2A2A2A;
  --text:       #F0EEE9;
  --text-muted: #666660;
  --text-light: #3A3A38;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.6);
}

/* ─────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--ease-slow), color var(--ease-slow);
  border-left: 4px solid var(--turquoise);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--sans); }

/* ─────────────────────────────────────────────
   3. TYPOGRAPHY HELPERS
───────────────────────────────────────────── */
.serif { font-family: var(--serif); }

.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow.turq { color: var(--turquoise); }
.eyebrow.pink  { color: var(--pink); }

h1, h2, h3, h4 { line-height: 1.15; }

/* ─────────────────────────────────────────────
   4. LAYOUT
───────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.page-pad { padding-top: 72px; padding-bottom: 80px; }
.section   { padding: 0 0 72px; }

/* ─────────────────────────────────────────────
   5. NAVIGATION
───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  gap: 0;
  transition: background var(--ease-slow), border-color var(--ease-slow);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
  margin-right: 40px;
  flex-shrink: 0;
}
.nav-logo svg { flex-shrink: 0; }

/* Full wordmark logo */
.logo-mark {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  transition: color var(--ease), background var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface2);
}

/* Nav right */
.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mode toggle */
.mode-toggle {
  display: flex;
  align-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 2px;
}
.mode-btn {
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  background: transparent;
  color: var(--text-muted);
  transition: background var(--ease), color var(--ease);
}
.mode-btn.active { background: var(--text); color: var(--bg); }

/* CTA button in nav */
.nav-cta {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  background: var(--text);
  color: var(--bg);
  transition: opacity var(--ease);
}
.nav-cta:hover { opacity: .8; }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px var(--pad-x) 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }

/* ─────────────────────────────────────────────
   6. FOOTER
───────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px var(--pad-x) 40px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-tagline { font-size: 13px; color: var(--text-muted); line-height: 1.6; max-width: 220px; }

.footer-col h4 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li + li { margin-top: 8px; }
.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--ease);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text); }

/* ─────────────────────────────────────────────
   7. BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: opacity var(--ease), transform var(--ease);
  border: none;
}
.btn:hover { opacity: .85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary   { background: var(--text); color: var(--bg); }
.btn-turq      { background: var(--turquoise); color: #fff; }
.btn-pink      { background: var(--pink); color: #fff; }
.btn-outline   { background: transparent; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--text); background: transparent; }
.btn-ghost     { background: var(--surface2); color: var(--text); }
.btn-sm        { font-size: 11px; padding: 7px 16px; }
.btn-lg        { font-size: 15px; padding: 14px 32px; }

/* ─────────────────────────────────────────────
   8. SECTION HEADERS
───────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--text);
}
.section-head .see-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--turquoise);
  transition: opacity var(--ease);
}
.section-head .see-all:hover { opacity: .7; }

/* ─────────────────────────────────────────────
   9. CARDS
───────────────────────────────────────────── */

/* Gallery card */
.gallery-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  cursor: pointer;
}
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--turquoise);
}
.gallery-card-img {
  aspect-ratio: 4/3;
  background: var(--surface2);
  overflow: hidden;
  position: relative;
}
.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-card:hover .gallery-card-img img { transform: scale(1.04); }
.gallery-card-img .card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.gallery-card-body { padding: 16px 18px 18px; }
.gallery-card-city {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.gallery-card-name {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.25;
}
.gallery-card-opening {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}
.gallery-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Article card */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease);
  display: block;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.article-card-img {
  aspect-ratio: 16/9;
  background: var(--surface2);
  overflow: hidden;
}
.article-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.article-card:hover .article-card-img img { transform: scale(1.04); }
.article-card-body { padding: 18px 20px 20px; }
.article-card-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 6px;
}
.article-card-title {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 8px;
}
.article-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}
.article-card-meta {
  font-size: 11px;
  color: var(--text-light);
}

/* ─────────────────────────────────────────────
   10. BADGES & PILLS
───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.badge-live {
  background: var(--pink);
  color: #fff;
}
.badge-live::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1.4s ease-in-out infinite;
}
.badge-upcoming {
  background: var(--turquoise-lt);
  color: var(--turquoise-dk);
  border: 1px solid var(--turquoise);
}
.badge-sold {
  background: var(--surface2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

/* Countdown */
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--turquoise);
}
.countdown-unit { display: flex; flex-direction: column; align-items: center; }
.countdown-val  { font-size: 16px; font-weight: 800; line-height: 1; }
.countdown-lbl  { font-size: 8px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.countdown-sep  { font-size: 14px; font-weight: 800; margin: 0 3px; padding-bottom: 10px; opacity: .4; }

/* ─────────────────────────────────────────────
   11. GRIDS
───────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─────────────────────────────────────────────
   12. FORM ELEMENTS
───────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: .3px;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  transition: border-color var(--ease);
  outline: none;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--turquoise);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* ─────────────────────────────────────────────
   13. DIVIDER / ACCENT LINE
───────────────────────────────────────────── */
.accent-line {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--turquoise), var(--pink));
  border-radius: 2px;
  margin: 20px 0;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ─────────────────────────────────────────────
   14. IMAGE PLACEHOLDERS
───────────────────────────────────────────── */
.img-placeholder {
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .5px;
}

/* ─────────────────────────────────────────────
   14b. SHIMMER (loading skeleton)
───────────────────────────────────────────── */
@keyframes shimmer {
  0%   { opacity: 1; }
  50%  { opacity: .5; }
  100% { opacity: 1; }
}

/* ─────────────────────────────────────────────
   15. SCROLL ANIMATIONS
───────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up-delay-1 { transition-delay: .1s; }
.fade-up-delay-2 { transition-delay: .2s; }
.fade-up-delay-3 { transition-delay: .3s; }

/* ─────────────────────────────────────────────
   16. CITY SELECTOR
───────────────────────────────────────────── */
.city-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.city-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--ease);
}
.city-btn:hover { border-color: var(--turquoise); color: var(--turquoise); }
.city-btn.active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

/* ─────────────────────────────────────────────
   17. TABS
───────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.tab-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 12px 20px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--ease), border-color var(--ease);
  cursor: pointer;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--turquoise);
  border-bottom-color: var(--turquoise);
}
.tab-panel { display: none; }
.tab-panel.active {
  display: block;
  animation: tabFadeIn .3s ease both;
}
@keyframes tabFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────
   18. RESPONSIVE BREAKPOINTS
───────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --pad-x: 28px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --pad-x: 20px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }

  .nav-links,
  .nav-right .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .mode-toggle { display: none; } /* moved into mobile menu */

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section-head h2 { font-size: 18px; }
}

@media (max-width: 520px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Stats Strip (shared: Auctions page etc.) ── */
.stats-strip {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 72px;
}
.stat-item {
  flex: 1;
  padding: 24px 28px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-val {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-val span { color: var(--turquoise); }
.stat-lbl { font-size: 12px; color: var(--text-muted); }

@media (max-width: 900px) {
  .stats-strip { flex-wrap: wrap; }
  .stat-item { flex: 1 1 45%; border-bottom: 1px solid var(--border); }
}
