/* ─── WE2 functional footer (shared across all pages) ─── */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter+Tight:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

.footer-fn {
  --footer-bg: #0a0a0a;
  --footer-ink: #f5f2ec;
  --footer-accent: #ff1a4c;
  --footer-line: rgba(245,242,236,0.08);
  background: var(--footer-bg); color: var(--footer-ink);
  padding: 60px 40px 32px;
  border-top: 1px solid var(--footer-line);
  position: relative;
}
.footer-fn-inner { max-width: 1360px; margin: 0 auto; }

.footer-fn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(360px, 1.5fr);
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--footer-line);
  position: relative;
}
.footer-fn-grid::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0;
  height: 6px;
  background-image: repeating-linear-gradient(90deg,
    var(--footer-accent) 0 6px,
    transparent 6px 12px,
    rgba(245,242,236,0.25) 12px 18px,
    transparent 18px 24px);
  image-rendering: pixelated;
  opacity: 0.7;
}
.footer-fn-col { display: flex; flex-direction: column; gap: 4px; counter-reset: footerLink; }

.footer-fn-tag {
  font-family: "Press Start 2P", "Geist Mono", monospace;
  font-size: 9px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.5);
  margin: 0 0 18px;
  image-rendering: pixelated;
}

.footer-fn-link {
  font-family: "Inter Tight", sans-serif;
  font-size: 17px; font-weight: 500;
  color: var(--footer-ink); text-decoration: none;
  padding: 10px 0 10px 56px; position: relative;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--footer-line);
  transition: padding-left 0.3s cubic-bezier(0.7,0,0.2,1), color 0.25s ease;
  min-height: 44px;
  text-transform: uppercase; letter-spacing: 0.02em;
  counter-increment: footerLink;
}
.footer-fn-link:hover { padding-left: 64px; color: var(--footer-accent); }
.footer-fn-link::before {
  content: counter(footerLink, decimal-leading-zero);
  position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  width: 32px;
  font-family: "Press Start 2P", monospace; font-size: 8px;
  color: rgba(245,242,236,0.45);
  letter-spacing: 0.06em;
  image-rendering: pixelated;
  transition: color 0.25s ease;
  pointer-events: none;
}
.footer-fn-link:hover::before { color: var(--footer-accent); }
.footer-fn-link.arrow span {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.7,0,0.2,1);
  font-family: "Geist Mono", monospace; font-size: 14px;
}
.footer-fn-link.arrow:hover span { transform: translate(3px, -3px); }
.footer-fn-link .line { height: 1px; flex: 0 0 12px; background: transparent; }

/* Draw with me */
.footer-fn-draw {
  display: flex; flex-direction: column; gap: 12px;
  background: rgba(245,242,236,0.04);
  border: 1px solid rgba(245,242,236,0.1);
  border-radius: 18px;
  padding: 18px;
}
.draw-header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.draw-title {
  font-family: "Press Start 2P", "Geist Mono", monospace;
  font-size: 10px; letter-spacing: 0.04em;
  color: var(--footer-ink);
  image-rendering: pixelated;
}
.draw-star { color: var(--footer-accent); display: inline-block; animation: footerStarSpin 8s linear infinite; }
@keyframes footerStarSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.draw-tag {
  font-family: "Press Start 2P", "Geist Mono", monospace;
  font-size: 7.5px; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.5);
  image-rendering: pixelated;
}
.draw-canvas-wrap {
  position: relative; aspect-ratio: 16 / 10;
  background: #f5f2ec; border-radius: 10px; overflow: hidden;
}
.draw-canvas-wrap canvas {
  display: block; width: 100%; height: 100%;
  cursor: crosshair; touch-action: none;
}
.draw-clear {
  position: absolute; top: 10px; right: 10px;
  font-family: "Geist Mono", monospace; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(14,13,12,0.85); color: #f5f2ec;
  border: none; padding: 8px 12px; border-radius: 999px;
  cursor: pointer; transition: background 0.2s ease;
}
.draw-clear:hover { background: var(--footer-accent); color: #0a0a0a; }
.draw-tools {
  position: absolute; bottom: 10px; left: 10px;
  display: flex; gap: 8px; align-items: center;
  background: rgba(14,13,12,0.78);
  backdrop-filter: blur(8px);
  padding: 6px 10px; border-radius: 999px;
}
.draw-color {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(245,242,236,0.55);
  background: #0a0a0a;
  cursor: pointer; padding: 0;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.draw-color.orange { background: #ff1a4c; }
.draw-color:hover { transform: scale(1.12); }
.draw-color.active {
  border-color: #f5f2ec;
  box-shadow: 0 0 0 2px rgba(245,242,236,0.18);
}
.draw-tools-sep {
  width: 1px; height: 14px;
  background: rgba(245,242,236,0.2);
}
.draw-brush-range {
  -webkit-appearance: none; appearance: none;
  width: 70px; height: 4px; padding: 0; margin: 0;
  background: rgba(245,242,236,0.15);
  border-radius: 999px; outline: none;
  cursor: pointer;
}
.draw-brush-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  background: #ff1a4c; cursor: grab;
  border: 0;
}
.draw-brush-range::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: #ff1a4c; cursor: grab; border: 0;
}
.bs-dot {
  background: rgba(245,242,236,0.7);
  border-radius: 50%; display: inline-block;
}
.bs-dot.bs-sm { width: 4px; height: 4px; }
.bs-dot.bs-lg { width: 10px; height: 10px; }

/* Contact icons row */
.contact-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.contact-icon {
  position: relative;
  width: 42px; height: 42px;
  border: 1px solid rgba(245,242,236,0.18);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: #f5f2ec; text-decoration: none;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.contact-icon:hover {
  background: rgba(255, 26, 76,0.12);
  border-color: var(--footer-accent);
  color: var(--footer-accent);
  transform: translateY(-2px);
}
.contact-icon.highlight {
  background: var(--footer-accent);
  border-color: var(--footer-accent);
  color: #0a0a0a;
}
.contact-icon.highlight:hover {
  background: #ff7c4d; border-color: #ff7c4d; color: #0a0a0a;
  transform: translateY(-2px);
}
.contact-icon svg { width: 16px; height: 16px; }
.contact-icon::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0a0a0a; color: #f5f2ec;
  font-family: "Press Start 2P", monospace;
  font-size: 7px; letter-spacing: 0.06em;
  padding: 6px 8px; border-radius: 4px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  image-rendering: pixelated;
}
.contact-icon:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 720px) {
  .contact-icons { gap: 6px; }
  .contact-icon { width: 38px; height: 38px; border-radius: 10px; }
  .contact-icon svg { width: 14px; height: 14px; }
}

.draw-submit-row { display: flex; gap: 8px; align-items: stretch; }
.footer-fn-draw input[type=text] {
  flex: 1; min-width: 0;
  background: rgba(245,242,236,0.06);
  border: 1px solid rgba(245,242,236,0.12);
  border-radius: 999px; padding: 11px 16px;
  font-family: "Inter Tight", sans-serif; font-size: 13px;
  color: #f5f2ec; outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.footer-fn-draw input[type=text]::placeholder { color: rgba(245,242,236,0.4); }
.footer-fn-draw input[type=text]:focus { border-color: var(--footer-accent); background: rgba(245,242,236,0.08); }
.draw-submit {
  background: var(--footer-accent); color: #0a0a0a;
  font-family: "Inter Tight", sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: 0.04em; padding: 11px 18px;
  border: none; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}
.draw-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 26, 76,0.45); }
.draw-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Gallery zone: free-form scatter — drag + stack polaroids anywhere */
.draw-gallery-zone {
  position: relative;
  width: 100%;
  min-height: 520px;
  margin-top: 64px;
  padding: 40px 0 16px;
  border-top: 1px dashed rgba(245,242,236,0.14);
  clear: both;
}
.draw-gallery-tag {
  font-family: "Press Start 2P", "Geist Mono", monospace;
  font-size: 8px; letter-spacing: 0.1em;
  color: rgba(245,242,236,0.4);
  margin: 0 0 22px;
  image-rendering: pixelated;
  text-transform: uppercase;
}
.draw-grid {
  position: relative;
  width: 100%;
  min-height: 440px;
}
.draw-empty {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Press Start 2P", monospace;
  font-size: 9px; letter-spacing: 0.08em;
  color: rgba(245,242,236,0.45);
  text-align: center; margin: 0;
  image-rendering: pixelated;
  pointer-events: none;
}
.draw-polaroid {
  position: absolute;
  width: clamp(78px, 7.8vw, 108px);
  background: #f5f2ec; color: #0a0a0a;
  padding: 6px 6px 16px; border-radius: 3px;
  box-shadow: 0 5px 14px rgba(0,0,0,0.45);
  transform: rotate(var(--r, 0deg));
  transition: top 0.62s cubic-bezier(0.34, 0, 0.66, 0.05), box-shadow 0.2s ease;
  cursor: grab;
  touch-action: none;
  user-select: none;
  display: flex; flex-direction: column; align-items: center;
  z-index: var(--z, 1);
}
.draw-polaroid:hover { box-shadow: 0 14px 30px rgba(0,0,0,0.6); }
.draw-polaroid.dragging {
  cursor: grabbing;
  box-shadow: 0 22px 48px rgba(0,0,0,0.7);
  z-index: 999;
  transition: box-shadow 0.2s ease;
}
.draw-polaroid.settling {
  transition: top 0.68s cubic-bezier(0.32, 0, 0.7, 0.1), box-shadow 0.2s ease;
}
.draw-polaroid img {
  display: block; width: 100%; aspect-ratio: 16/10;
  object-fit: contain; background: #fff;
  pointer-events: none;
}
.draw-polaroid .name {
  font-family: "Press Start 2P", monospace;
  font-size: 6px; letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 5px; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  image-rendering: pixelated;
  pointer-events: none;
  max-width: 100%;
}

/* Lightbox */
.draw-lightbox {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,0.85);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s ease;
  padding: 40px;
}
.draw-lightbox.visible { display: flex; opacity: 1; }
.draw-lb-card {
  background: #f5f2ec; padding: 18px 18px 36px;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  display: flex; flex-direction: column; align-items: center;
  max-width: min(560px, 90vw);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.draw-lightbox.visible .draw-lb-card { transform: scale(1); }
.draw-lb-card img {
  display: block;
  width: 100%; max-width: 480px;
  aspect-ratio: 16/10;
  object-fit: contain; background: #fff;
  border-radius: 2px;
}
.draw-lb-name {
  font-family: "Press Start 2P", monospace;
  font-size: 10px; letter-spacing: 0.08em;
  margin-top: 14px; color: #0a0a0a;
  image-rendering: pixelated;
  text-transform: uppercase;
}
.draw-lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(245,242,236,0.12);
  border: 1px solid rgba(245,242,236,0.22);
  color: #f5f2ec;
  font-size: 22px; line-height: 1;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.draw-lb-nav:hover { background: rgba(245,242,236,0.22); transform: translateY(-50%) scale(1.06); }
.draw-lb-nav.prev { left: 24px; }
.draw-lb-nav.next { right: 24px; }
.draw-lb-nav:disabled { opacity: 0.3; cursor: default; }
.draw-lb-close {
  position: absolute; top: 18px; right: 18px;
  background: rgba(245,242,236,0.12);
  border: 1px solid rgba(245,242,236,0.22);
  color: #f5f2ec; font-size: 14px;
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
  z-index: 2;
}
.draw-lb-close:hover { background: rgba(245,242,236,0.22); }
.draw-lb-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-family: "Press Start 2P", monospace;
  font-size: 8px; letter-spacing: 0.14em;
  color: rgba(245,242,236,0.55);
  image-rendering: pixelated;
}

@media (max-width: 720px) {
  .draw-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
  .draw-lb-nav { width: 38px; height: 38px; font-size: 18px; }
  .draw-lb-nav.prev { left: 8px; }
  .draw-lb-nav.next { right: 8px; }
  .draw-lightbox { padding: 16px; }
}

.footer-fn-bot {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--footer-line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: "Press Start 2P", "Geist Mono", monospace;
  font-size: 8px; letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.5);
  line-height: 1.7;
  image-rendering: pixelated;
}

/* Force the footer to stay dark regardless of page theme */
.footer-fn,
[data-theme="light"] .footer-fn,
[data-theme="dark"] .footer-fn {
  background: #0a0a0a !important;
  color: #f5f2ec !important;
  border-top: 1px solid rgba(245,242,236,0.08) !important;
}
[data-theme="light"] .footer-fn .footer-fn-link,
[data-theme="light"] .footer-fn .draw-title,
[data-theme="light"] .footer-fn .contact-icon { color: #f5f2ec !important; }
[data-theme="light"] .footer-fn .contact-icon.highlight { color: #0a0a0a !important; }
[data-theme="light"] .footer-fn .footer-fn-tag,
[data-theme="light"] .footer-fn .footer-fn-bot,
[data-theme="light"] .footer-fn .draw-tag,
[data-theme="light"] .footer-fn .draw-gallery-tag { color: rgba(245,242,236,0.55) !important; }
[data-theme="light"] .footer-fn .footer-fn-link::before { color: rgba(245,242,236,0.45) !important; }

@media (max-width: 980px) {
  .footer-fn-grid { grid-template-columns: 1fr; gap: 36px; }
  .draw-gallery-zone { margin-top: 40px; }
}
@media (max-width: 720px) {
  .footer-fn { padding: 50px 20px 28px; }
  .footer-fn-bot { font-size: 7px; flex-direction: column; align-items: flex-start; gap: 10px; line-height: 1.8; }
  .footer-fn-link { padding-left: 48px; font-size: 15px; }
  .footer-fn-link:hover { padding-left: 54px; }
  .footer-fn-link::before { font-size: 7px; width: 28px; left: 4px; }
  .footer-fn-tag { font-size: 8px; }
  .draw-title { font-size: 9px; }
  .draw-tag { font-size: 6.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .draw-star { animation: none; }
  .footer-fn-link, .footer-fn-link::before, .draw-polaroid { transition: none; }
}
