/* ========================================
   SHMONTZES DESIGN SYSTEM v2
   Playful Brutalist Aesthetic
   ======================================== */

/* ========================================
   GOOGLE FONTS (loaded via <link> in HTML)
   - IBM Plex Mono (display)
   - Outfit (body)
   ======================================== */

/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
  /* Colors - Dark Theme Core */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-card-hover: rgba(31, 41, 55, 0.8);

  /* Text */
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Accents */
  --accent-gold: #eab308;
  --accent-gold-dim: rgba(234, 179, 8, 0.15);
  --accent-blue: #3b82f6;
  --accent-blue-dim: rgba(59, 130, 246, 0.15);
  --accent-teal: #14b8a6;
  --accent-purple: #a855f7;

  /* Status */
  --status-shipped: #10b981;
  --status-shipped-bg: rgba(16, 185, 129, 0.12);
  --status-wip: #f59e0b;
  --status-wip-bg: rgba(245, 158, 11, 0.12);

  /* Borders & Effects */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(234, 179, 8, 0.3);
  --glow-gold: 0 0 40px rgba(234, 179, 8, 0.15);
  --glow-blue: 0 0 40px rgba(59, 130, 246, 0.1);

  /* Typography */
  --font-display: 'IBM Plex Mono', 'Fira Code', monospace;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Timing */
  --timing-fast: 150ms;
  --timing-normal: 250ms;
  --timing-slow: 400ms;

  /* Easing */
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light mode override */
@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #fafafa;
    --bg-secondary: #f3f4f6;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-accent: rgba(234, 179, 8, 0.4);
    --glow-gold: 0 0 40px rgba(234, 179, 8, 0.1);
  }
}

/* ========================================
   BASE STYLES
   ======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Animated Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(234, 179, 8, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Gradient Orbs */
body::after {
  content: '';
  position: fixed;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: float-orb 20s ease-in-out infinite;
}

@keyframes float-orb {

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

  33% {
    transform: translate(-100px, 50px) scale(1.1);
  }

  66% {
    transform: translate(50px, -30px) scale(0.95);
  }
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff8266;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--accent-gold);
  color: var(--bg-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: 6px;
  z-index: 1001;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-8);
}

/* ========================================
   HERO - Asymmetric Design
   ======================================== */
.hero {
  position: relative;
  padding: var(--space-16) 0 var(--space-12);
  margin-bottom: var(--space-8);
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
  position: relative;
  display: inline-block;
}

/* Decorative underline */
.logo::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold) 0%, transparent 80%);
  border-radius: 2px;
}

.tagline {
  font-family: var(--font-display);
  font-size: clamp(0.875rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  margin-top: var(--space-8);
  letter-spacing: 0.02em;
  opacity: 0.8;
}

.tagline::before {
  content: '// ';
  color: var(--accent-gold);
  opacity: 0.6;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--space-6);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--timing-fast) var(--ease-out);
}

.about-link:hover {
  color: var(--accent-gold);
  border-color: var(--border-accent);
  background: var(--accent-gold-dim);
}

/* ========================================
   LINKS
   ======================================== */
a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--timing-fast) ease;
}

a:hover {
  color: #ff8266;
}

/* ========================================
   GALLERY GRID - Staggered Layout
   ======================================== */
.gallery,
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--space-6);
}

/* ========================================
   SHMONTZ CARD - Glassmorphism + 3D Tilt
   ======================================== */
.shmontz-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--space-6);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transform-style: preserve-3d;
  transition:
    transform var(--timing-normal) var(--ease-bounce),
    box-shadow var(--timing-normal) var(--ease-out),
    border-color var(--timing-fast) ease,
    background var(--timing-fast) ease;
  animation: card-appear 0.6s var(--ease-out) backwards;
}

@keyframes card-appear {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

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

/* Staggered animation delays via JS */
.shmontz-card:nth-child(1) {
  animation-delay: 0.1s;
}

.shmontz-card:nth-child(2) {
  animation-delay: 0.2s;
}

.shmontz-card:nth-child(3) {
  animation-delay: 0.3s;
}

.shmontz-card:nth-child(4) {
  animation-delay: 0.4s;
}

.shmontz-card:nth-child(5) {
  animation-delay: 0.5s;
}

.shmontz-card:nth-child(6) {
  animation-delay: 0.6s;
}

.shmontz-card:nth-child(7) {
  animation-delay: 0.7s;
}

.shmontz-card:nth-child(8) {
  animation-delay: 0.8s;
}

/* Glow border effect */
.shmontz-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 17px;
  background: linear-gradient(135deg,
      rgba(234, 179, 8, 0.3) 0%,
      transparent 40%,
      transparent 60%,
      rgba(59, 130, 246, 0.2) 100%);
  opacity: 0;
  transition: opacity var(--timing-normal) ease;
  z-index: -1;
}

.shmontz-card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
  box-shadow:
    var(--glow-gold),
    0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.shmontz-card:hover::before {
  opacity: 1;
}

.shmontz-card .number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.shmontz-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.shmontz-card .description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.shmontz-card .card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.shmontz-card .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   STATUS BADGES
   ======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge-shipped {
  background: var(--status-shipped-bg);
  color: var(--status-shipped);
}

.badge-shipped::before {
  background: var(--status-shipped);
  box-shadow: 0 0 6px var(--status-shipped);
}

.badge-wip {
  background: var(--status-wip-bg);
  color: var(--status-wip);
}

.badge-wip::before {
  background: var(--status-wip);
  box-shadow: 0 0 6px var(--status-wip);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ========================================
   TAG PILLS
   ======================================== */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--timing-fast) ease;
}

.tag:hover {
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
  border-color: var(--border-accent);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--accent-gold);
  color: var(--bg-primary);
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--timing-fast) var(--ease-bounce);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(234, 179, 8, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--border-accent);
  background: var(--accent-gold-dim);
}

/* ========================================
   EMPTY STATE
   ======================================== */
.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: var(--space-16);
  font-family: var(--font-mono);
  font-size: 14px;
  border: 1px dashed var(--border-subtle);
  border-radius: 16px;
  background: var(--bg-card);
}

.empty-state.hidden {
  display: none;
}

/* ========================================
   LOADING SKELETON
   ======================================== */
.skeleton {
  background: linear-gradient(90deg,
      var(--bg-secondary) 0%,
      var(--bg-card) 50%,
      var(--bg-secondary) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ========================================
   ERROR STATES
   ======================================== */
.error-card {
  text-align: center;
  padding: var(--space-12);
  max-width: 400px;
  margin: var(--space-16) auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.error-card .error-icon {
  font-size: 48px;
  margin-bottom: var(--space-4);
}

.error-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.error-card p {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  text-align: center;
  padding: var(--space-8) 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: var(--space-12);
  border-top: 1px solid var(--border-subtle);
}

/* ========================================
   SHMONTZ PAGE - Header
   ======================================== */
.shmontz-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  z-index: 1000;
  padding: 0 var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

@media (prefers-color-scheme: light) {
  .shmontz-header {
    background: rgba(250, 250, 250, 0.85);
  }
}

.shmontz-header a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--timing-fast) ease;
}

.shmontz-header a:hover {
  color: var(--accent-gold);
}

.shmontz-header .shmontz-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-gold);
  letter-spacing: 0.03em;
}

/* ========================================
   SHMONTZ PAGE - Full Screen
   ======================================== */
.shmontz-fullscreen {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 48px;
}

.shmontz-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
}

.shmontz-content.centered {
  justify-content: center;
  align-items: center;
}

.shmontz-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--space-6);
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* ========================================
   SHMONTZ PAGE - Meta Footer
   ======================================== */
.shmontz-meta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3) var(--space-4);
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: linear-gradient(transparent, var(--bg-primary));
  opacity: 0.6;
  transition: opacity var(--timing-normal) ease;
}

.shmontz-meta:hover {
  opacity: 1;
}

.shmontz-meta a {
  color: var(--text-muted);
}

.shmontz-meta a:hover {
  color: var(--accent-gold);
}

#root {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-container {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-6);
  position: relative;
  z-index: 1;
}

.about-content {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: var(--space-8);
}

.about-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: var(--space-6);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: var(--accent-gold);
}

.about-content p {
  margin-bottom: var(--space-4);
  line-height: 1.7;
  color: var(--text-secondary);
}

.about-content ul {
  list-style-type: none;
  padding-left: var(--space-4);
  margin-bottom: var(--space-4);
}

.about-content li {
  line-height: 1.7;
  position: relative;
  color: var(--text-secondary);
  padding-left: var(--space-4);
}

.about-content li::before {
  content: "→";
  color: var(--accent-gold);
  position: absolute;
  left: 0;
  opacity: 0.6;
}

.about-content a {
  color: var(--accent-gold);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--timing-fast) ease;
}

.back-link:hover {
  color: var(--accent-gold);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */
@media (max-width: 768px) {
  .container {
    padding: var(--space-6);
  }

  .hero {
    padding: var(--space-12) 0 var(--space-8);
  }

  .gallery,
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
  }
}

@media (max-width: 640px) {
  .container {
    padding: var(--space-4);
  }

  .hero {
    padding: var(--space-8) 0 var(--space-6);
  }

  .gallery,
  .grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .shmontz-card {
    padding: var(--space-4);
  }

  .shmontz-header {
    padding: 0 var(--space-4);
  }

  .shmontz-content {
    padding: var(--space-6) var(--space-4);
  }

  .about-container {
    padding: var(--space-6) var(--space-4);
  }

  .about-content {
    padding: var(--space-6);
  }
}

/* ========================================
   TEXT CONTENT MAX-WIDTH
   ======================================== */
.prose {
  max-width: 680px;
  font-size: 18px;
  line-height: 1.7;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow {
  box-shadow: var(--glow-gold);
}