/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Base ── */
:root {
  --bg: #000000;
  --surface: #111111;
  --surface-hover: #1A1A1A;
  --border: #222222;
  --text: #FFFFFF;
  --text-secondary: #888888;
  --text-tertiary: #444444;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 480px;
  padding: 20px;
  position: relative;
}

/* ── Navigation Arrows ── */
.nav-arrows {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 100;
}

.nav-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  text-decoration: none;
  pointer-events: all;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  opacity: 0.7;
}

.nav-arrow:hover {
  background: var(--surface-hover);
  border-color: #333;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.nav-arrow-left {
  left: 16px;
}

.nav-arrow-right {
  right: 16px;
}

.nav-arrow.nav-hidden {
  display: none;
}

/* ── Share Page ── */
.share-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.share-image-wrap {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(255, 255, 255, 0.04);
}

.share-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Actions ── */
.share-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.action-btn:hover {
  background: var(--surface-hover);
  border-color: #333;
}

.share-toast {
  font-size: 13px;
  color: var(--text-secondary);
  opacity: 0;
  transition: opacity 0.3s;
}

.share-toast.show {
  opacity: 1;
}

/* ── Footer ── */
.share-footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
  letter-spacing: 1px;
}

/* ── Archive Page ── */
.archive-page {
  padding: 20px 0;
}

.archive-header {
  margin-bottom: 20px;
}

.archive-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 4px;
}

.archive-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.archive-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s;
}

.archive-row:first-child { border-radius: 12px 12px 0 0; }
.archive-row:last-child { border-radius: 0 0 12px 12px; }
.archive-row:only-child { border-radius: 12px; }
.archive-row:hover { background: var(--surface-hover); }

.archive-date {
  font-size: 15px;
  font-weight: 600;
  min-width: 100px;
}

.archive-vibe {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  flex: 1;
}

.archive-arrow {
  color: var(--text-tertiary);
}

/* ── Mobile touch targets ── */
@media (max-width: 768px) {
  .nav-arrow {
    width: 48px;
    height: 48px;
  }

  .nav-arrow-left {
    left: 8px;
  }

  .nav-arrow-right {
    right: 8px;
  }
}

/* ── Keyboard navigation hint ── */
@media (hover: hover) {
  .nav-arrow {
    opacity: 0.4;
  }

  .nav-arrow:hover {
    opacity: 1;
  }
}
