/* ============================================================
   iambored.site — Main Stylesheet
   Design: Dark night theme · Orange accent · Outfit font
   ============================================================ */

/* ── Variables ── */
:root {
  --bg-900: #0c0c0f;
  --bg-800: #111116;
  --bg-700: #18181f;
  --bg-600: #1f1f28;
  --bg-500: #26262f;
  --surface: #1a1a22;

  --orange-500: #ff8c00;
  --orange-600: #e67a00;
  --orange-300: #ffad47;
  --orange-glow: rgba(255, 140, 0, 0.35);
  --orange-glow-soft: rgba(255, 140, 0, 0.12);

  --text-100: #f0f0f5;
  --text-200: #c2c2d0;
  --text-400: #7a7a90;
  --text-500: #55556a;

  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 140, 0, 0.5);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-btn: 0 8px 40px rgba(255, 140, 0, 0.45);
  --shadow-btn-hover: 0 12px 60px rgba(255, 140, 0, 0.7);
  --gradient-accent: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-300) 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-900);
  color: var(--text-200);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Particle Canvas ── */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ── Layout ── */
.site-header,
.main-content,
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: default;
  user-select: none;
}

.logo-text {
  color: var(--text-100);
}

.logo-dot {
  color: var(--orange-500);
}



/* ── Main Content ── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  padding: 2rem 1.5rem 4rem;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
}

/* ── Hero ── */
.hero {
  text-align: center;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--text-100);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--text-400);
  font-weight: 400;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .desktop-br {
    display: none;
  }
}

/* ── Enjoy Button ── */
.button-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}

.button-glow-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-glow-wrapper::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: pulse-glow 3s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

/* ── FOOTER SUBMIT ─────────────────────────────────────────── */
.footer-btn {
  background: none;
  border: none;
  color: var(--text-500);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.footer-btn:hover {
  color: var(--text-200);
  background: var(--bg-600);
}

/* ── MODAL ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  padding: 40px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content h3 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-subtitle {
  color: #888;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #bbb;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff9d00;
  background: #222;
}

.form-group textarea {
  height: 80px;
  resize: none;
}

.modal-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.modal-tag-pill {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-tag-pill.active {
  background: rgba(255, 157, 0, 0.1);
  border-color: #ff9d00;
  color: #ff9d00;
}

.modal-tag-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ccc;
}

.modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.btn-cancel,
.btn-submit {
  flex: 1;
  padding: 16px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-submit {
  background: #ff9d00;
  border: none;
  color: #000;
}

.btn-submit:hover {
  transform: translateY(-2px);
  background: #ffb333;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-overlay[hidden] {
  display: none;
}

@keyframes pulse-glow {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}

.enjoy-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;

  width: clamp(185px, 42vw, 230px);
  height: clamp(185px, 42vw, 230px);
  border-radius: 50%;

  /* High-quality 3D Base */
  background: linear-gradient(145deg, var(--orange-500) 0%, var(--orange-600) 100%);
  border: none;
  cursor: pointer;
  outline: none;

  /* The 3D Protrusion */
  box-shadow:
    0 12px 0 #b36200,
    /* Bottom face (solid color for height) */
    0 15px 35px rgba(255, 140, 0, 0.4),
    /* Glow shadow */
    inset 0 2px 2px rgba(255, 255, 255, 0.4),
    /* Top-light highlight */
    inset 0 -4px 6px rgba(0, 0, 0, 0.2);
  /* Inner shadow for curvature */

  transition: transform 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    filter 0.1s;

  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-emoji {
  font-size: 3.2rem;
  line-height: 1;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s var(--transition);
}

.btn-label {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.enjoy-btn:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 0 #b36200,
    /* Taller side on hover */
    0 20px 45px rgba(255, 140, 0, 0.5),
    /* Stronger glow */
    inset 0 2px 2px rgba(255, 255, 255, 0.5),
    inset 0 -4px 10px rgba(0, 0, 0, 0.25);
  filter: brightness(1.05);
}

.enjoy-btn:hover .btn-emoji {
  transform: rotate(-10deg) scale(1.15);
}

.enjoy-btn:active {
  transform: translateY(8px);
  /* Moves down significantly */
  box-shadow:
    0 4px 0 #b36200,
    /* Side squashes */
    0 5px 15px rgba(255, 140, 0, 0.3),
    /* Glow recedes */
    inset 0 4px 6px rgba(0, 0, 0, 0.4);
  /* Inner shadow deepens */
  transition-duration: 0.05s;
}

.enjoy-btn:focus-visible {
  outline: 3px solid var(--orange-300);
  outline-offset: 8px;
}

/* Button launch animation */
.enjoy-btn.launching {
  animation: launch-pulse 0.35s ease-out;
}

@keyframes launch-pulse {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(0.93) translateY(3px);
  }

  70% {
    transform: scale(1.08) translateY(-5px);
  }

  100% {
    transform: scale(1);
  }
}

/* ── Session Counter ── */
.session-info {
  text-align: center;
}

.session-counter {
  font-size: 0.85rem;
  color: var(--text-500);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
}

.session-counter.active {
  color: var(--text-400);
}

/* ── Tags Section ── */
.tags-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.tags-heading {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-500);
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  max-width: 680px;
}

/* Tag chip */
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-400);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none;
  white-space: nowrap;
}

.tag-chip:hover {
  border-color: var(--text-500);
  color: var(--text-200);
  background: var(--bg-600);
  transform: translateY(-1px);
}

.tag-chip.active {
  border-color: var(--orange-500);
  background: rgba(255, 140, 0, 0.12);
  color: var(--orange-300);
  box-shadow: 0 0 12px rgba(255, 140, 0, 0.2);
}

.tag-chip.active:hover {
  background: rgba(255, 140, 0, 0.18);
  box-shadow: 0 0 18px rgba(255, 140, 0, 0.3);
}

.tag-chip:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
}

.tag-emoji {
  font-size: 0.95em;
}

/* Clear filters button */
.clear-tags-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-500);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0.2rem;
}

.clear-tags-btn:hover {
  border-color: var(--text-400);
  color: var(--text-200);
}

/* ── Stats Bar ── */
.stats-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  justify-content: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-100);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.stat-number.highlight {
  color: var(--orange-500);
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-500);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Footer ── */
.site-footer {
  padding: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

/* ── Toast Notification ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: var(--bg-600);
  border: 1px solid var(--border);
  color: var(--text-200);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-4px);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .site-header {
    padding: 1.2rem 1.25rem;
  }

  .main-content {
    gap: 2.5rem;
    padding: 1.5rem 1rem 3rem;
  }

  .enjoy-btn {
    width: min(72vw, 220px);
    height: min(72vw, 220px);
  }

  .btn-emoji {
    font-size: 2.4rem;
  }

  .btn-label {
    font-size: 1.2rem;
  }

  .stats-bar {
    gap: 1.25rem;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-md);
  }

  .stat-number {
    font-size: 1.25rem;
  }

  .stat-label {
    font-size: 0.65rem;
  }

  .stat-divider {
    height: 28px;
  }

  .toast {
    width: calc(100% - 2rem);
    text-align: center;
    white-space: normal;
    bottom: 1.25rem;
  }
}

@media (max-width: 480px) {
  .stats-bar {
    flex-wrap: wrap;
    gap: 1.5rem 1rem;
    padding: 1.25rem;
  }

  .stat-item {
    flex: 1 1 40%;
  }

  .stat-divider {
    display: none;
  }

  .stat-label {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .stats-bar {
    gap: 1rem;
    padding: 1rem 0.5rem;
  }

  .stat-number {
    font-size: 1.15rem;
  }

  .stat-label {
    font-size: 0.6rem;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  #particleCanvas {
    display: none;
  }
}