/* ============================================================
   shared.css — Steve Yochum site shared styles
   Source of truth: index.html palette & typography
   ============================================================ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Outfit:wght@300;400;500&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --primary:   #00F5FF;   /* cyan  */
  --secondary: #A855F7;   /* violet */
  --accent:    #FFBE0B;   /* yellow */
  --dark:      #0A0E27;
  --darker:    #050813;
  --light:     #F8F9FA;

  /* Surface tokens used by recipe page */
  --surface:   #0c1120;
  --surface2:  #1a1f3a;
  --text-muted: rgba(248, 249, 250, 0.5);

  /* Shared utility */
  --radius: 16px;
}

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

/* ── BODY BASE ── */
body {
  font-family: 'Outfit', sans-serif;
  background: var(--darker);
  color: var(--light);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
  font-size: 16px;
}

/* ── ANIMATED GRADIENT BACKGROUND ── */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 50%, #1a1f3a 100%);
  --tx: 0px;
  --ty: 0px;
}

.bg-gradient::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,245,255,0.15) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  animation: bgFloat 20s ease-in-out infinite;
}

.bg-gradient::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168,85,247,0.1) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  animation: bgFloat 15s ease-in-out infinite reverse;
}

@keyframes bgFloat {
  0%,  100% { transform: translate(calc(var(--tx, 0px) + 0px),   calc(var(--ty, 0px) + 0px))   scale(1);   }
  33%        { transform: translate(calc(var(--tx, 0px) + 100px), calc(var(--ty, 0px) - 50px))   scale(1.1); }
  66%        { transform: translate(calc(var(--tx, 0px) - 50px),  calc(var(--ty, 0px) + 100px))  scale(0.9); }
}

/* ── GRID OVERLAY ── */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0,245,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,245,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.5;
}

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  transition: color 0.15s ease;
}

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

/* ── REDUCED MOTION — background only ── */
@media (prefers-reduced-motion: reduce) {
  .bg-gradient::before,
  .bg-gradient::after {
    animation: none !important;
  }
}
