/* ==========================================================================
   KITCHEN DESK - AUTHENTIC CLAUDE / EDITORIAL LUXURY DESIGN SYSTEM
   Warm Linen Paper (#FAF8F5), Claude Terracotta Coral (#D97757), 
   Deep Espresso Charcoal (#1F1E1B), Sharp Dark Retro Borders & Shadows (#1F1E1B)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=JetBrains+Mono:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500;1,6..72,600&display=swap');

:root {
  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  
  /* Claude Authentic Palette */
  --bg-page: #FAF8F5;            /* Signature Claude Warm Alabaster / Oatmeal Linen */
  --bg-page-alt: #F4EFEA;        /* Slightly deeper warm tone for contrasts */
  --bg-card: #FFFFFF;            /* Pure Crisp White Card Surface */
  --bg-card-hover: #FFFFFF;
  --bg-dark: #1E1E1C;            /* Claude Deep Warm Umber Charcoal */
  --bg-dark-card: #272724;       /* Warm Charcoal Card */
  
  /* Authentic Claude Brand Accents */
  --claude-terracotta: #D97757;  /* Claude signature Terracotta / Clay Coral */
  --claude-terracotta-dark: #C15F3D;
  --claude-terracotta-light: #FBF0EB;
  --claude-terracotta-border: #F3D4C8;
  
  --claude-amber: #D97706;       /* Warm Culinary Honey Amber */
  --claude-amber-light: #FEF3C7;
  
  --claude-sage: #3E6B5C;        /* Organic Culinary Herb Green */
  --claude-sage-light: #EBF5F0;

  /* Text Tones (Warm Espresso Charcoal - never cold harsh gray) */
  --text-primary: #1F1E1B;
  --text-secondary: #57534E;
  --text-muted: #8C8881;
  --text-inverse: #FAF8F5;

  /* Sharp Dark Borders (Matching editorial luxury reference) */
  --border-warm: #1F1E1B;
  --border-warm-strong: #1F1E1B;
  --border-dark: #363632;

  /* Shadows (Multi-layered subtle soft shadows) */
  --shadow-sm: 0 1px 3px rgba(31, 30, 27, 0.05), 0 1px 2px rgba(31, 30, 27, 0.03);
  --shadow-md: 0 4px 12px -2px rgba(31, 30, 27, 0.06), 0 2px 6px -1px rgba(31, 30, 27, 0.04);
  --shadow-lg: 0 16px 32px -4px rgba(31, 30, 27, 0.08), 0 4px 12px -2px rgba(31, 30, 27, 0.04);
  --shadow-hover: 0 16px 30px -4px rgba(31, 30, 27, 0.1), 0 4px 12px -2px rgba(31, 30, 27, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle editorial paper grain texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(217, 119, 87, 0.03) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Typography - Elegant, Refined, Bold & Authoritative
   ========================================================================== */
h1, h2, h3, h4, h5, h6, .font-heading, .font-display {
  font-family: var(--font-display) !important;
  letter-spacing: -0.025em;
  font-weight: 750;
  color: var(--text-primary);
}

.font-serif-title {
  font-family: var(--font-serif) !important;
  letter-spacing: -0.015em;
}

.font-mono {
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Header with Orange Top Accent & Sharp Dark Border Line
   ========================================================================== */
.site-header {
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 3px solid var(--claude-terracotta); /* Orange top stripe */
  border-bottom: 2px solid #1F1E1B;              /* Sharp dark bottom border line */
  position: sticky;
  top: 0;
  z-index: 50;
  transition: all 0.2s ease;
}

.site-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: var(--claude-terracotta);
  border: 1.5px solid #1F1E1B;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 2px 2px 0px #1F1E1B;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-brand-logo:hover .logo-badge {
  transform: translate(-1px, -1px);
  background: var(--claude-terracotta-dark);
  box-shadow: 3px 3px 0px #1F1E1B;
}

/* Floating Capsule Island Menu with Sharp Dark Border */
.nav-capsule-island {
  background: #FFFFFF;
  border: 1.5px solid #1F1E1B;
  border-radius: 9999px;
  padding: 0.25rem 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 2px 2px 0px #1F1E1B;
}

.nav-link-modern {
  font-size: 0.85rem;
  font-weight: 600;
  color: #36332E;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  letter-spacing: -0.01em;
}

.nav-link-modern:hover {
  color: #1F1E1B;
  background: #FAF8F5;
}

.nav-pill-active {
  background: var(--claude-terracotta) !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  border: 1px solid #1F1E1B !important;
  box-shadow: 1px 1px 0px #1F1E1B !important;
}

/* ==========================================================================
   Hero Section with Top-Down Orange Ambient Gradient Glow
   ========================================================================== */
.hero-wrapper {
  position: relative;
  padding: 5rem 1rem 4.5rem;
  text-align: center;
  overflow: hidden;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(217, 119, 87, 0.28) 0%,
    rgba(217, 119, 87, 0.16) 35%,
    rgba(217, 119, 87, 0.05) 70%,
    rgba(250, 248, 245, 0) 100%
  );
}

.badge-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: #1E1E1C;
  border: 1.5px solid #1F1E1B;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  box-shadow: 2px 2px 0px #1F1E1B;
}

.pulse-dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--claude-terracotta);
  box-shadow: 0 0 0 0 rgba(217, 119, 87, 0.7);
  animation: pulse-terracotta 2s infinite;
}

@keyframes pulse-terracotta {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 87, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(217, 119, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 87, 0); }
}

.hero-title-card {
  display: inline-block;
  background: #FFFFFF;
  border: 1.5px solid #1F1E1B;
  border-radius: 1.25rem;
  padding: 1.6rem 2.5rem;
  box-shadow: 4px 4px 0px #1F1E1B;
  max-width: 860px;
  margin: 0.75rem auto 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-title-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5.5px 5.5px 0px #1F1E1B;
}

@media (max-width: 640px) {
  .hero-title-card {
    padding: 1.15rem 1.25rem;
    border-radius: 1rem;
    box-shadow: 3px 3px 0px #1F1E1B;
  }
}

.hero-main-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
}

.hero-highlight-text {
  color: var(--claude-terracotta);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  display: inline-block;
  padding: 0 0.1em;
  letter-spacing: -0.01em;
}

.hero-subtitle-text {
  font-size: clamp(0.95rem, 1.8vw, 1.075rem);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  max-width: 640px;
  margin: 1.15rem auto 0;
}

/* ==========================================================================
   Section Backgrounds & Smooth Alternating Rhythms
   ========================================================================== */
.section-tools-overview {
  /* Warm bottom-up gradient reaching halfway (50%) across the cards */
  background: linear-gradient(
    0deg,
    rgba(217, 119, 87, 0.20) 0%,
    rgba(217, 119, 87, 0.10) 25%,
    rgba(217, 119, 87, 0.02) 45%,
    transparent 55%
  ), #FAF8F5 !important;
  border-top: 2px solid #1F1E1B !important;
  border-bottom: 2px solid #1F1E1B !important;
}

.section-warm-ambient {
  /* Warm bottom-up gradient reaching halfway (50%), matching tools section */
  background: linear-gradient(
    0deg,
    rgba(217, 119, 87, 0.20) 0%,
    rgba(217, 119, 87, 0.10) 25%,
    rgba(217, 119, 87, 0.02) 45%,
    transparent 55%
  ), #FAF8F5 !important;
  border-top: 2px solid #1F1E1B !important;
  border-bottom: 2px solid #1F1E1B !important;
}

.section-recipes-overview {
  /* Warm bottom-up gradient reaching halfway (50%) across recipe cards */
  background: linear-gradient(
    0deg,
    rgba(217, 119, 87, 0.20) 0%,
    rgba(217, 119, 87, 0.10) 25%,
    rgba(217, 119, 87, 0.02) 45%,
    transparent 55%
  ), #FAF8F5 !important;
  border-top: 2px solid #1F1E1B !important;
  border-bottom: 2px solid #1F1E1B !important;
}

/* ==========================================================================
   Buttons with Sharp Dark Outlines & Tactile Offset Shadows
   ========================================================================== */
.btn-primary, .btn-primary-dark, .btn-primary-bold, .btn-emerald-solid, .btn-emerald {
  background: var(--claude-terracotta) !important;
  color: #FFFFFF !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.4rem;
  border-radius: 0.65rem;
  border: 1.5px solid #1F1E1B !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  box-shadow: 3px 3px 0px #1F1E1B !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover, .btn-primary-dark:hover, .btn-primary-bold:hover, .btn-emerald-solid:hover, .btn-emerald:hover {
  background: var(--claude-terracotta-dark) !important;
  transform: translate(-1.5px, -1.5px);
  box-shadow: 4.5px 4.5px 0px #1F1E1B !important;
}

.btn-secondary, .btn-secondary-outline, .btn-secondary-bold {
  background: #FFFFFF !important;
  color: var(--text-primary) !important;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.35rem;
  border-radius: 0.65rem;
  border: 1.5px solid #1F1E1B !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  box-shadow: 3px 3px 0px #1F1E1B !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-secondary:hover, .btn-secondary-outline:hover, .btn-secondary-bold:hover {
  background: var(--bg-page-alt) !important;
  transform: translate(-1.5px, -1.5px);
  box-shadow: 4.5px 4.5px 0px #1F1E1B !important;
}

/* ==========================================================================
   Modern Editorial Cards (With Top Header Bands like Reference)
   ========================================================================== */
.modern-tool-card {
  background: var(--bg-card) !important;
  border: 1.5px solid #1F1E1B !important;
  border-radius: 0.85rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: 3.5px 3.5px 0px #1F1E1B !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-tool-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5.5px 5.5px 0px #1F1E1B !important;
}

.modern-tool-card .card-top-bar {
  background: #1E1E1C;
  color: #FFFFFF;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid #1F1E1B;
}

.modern-tool-card .card-top-bar.accent-terracotta {
  background: #D97757;
  color: #FFFFFF;
}

.modern-tool-card .card-body-content {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

/* Recipe Cards with Tactile Retro Shadows */
.recipe-card-premium {
  background: var(--bg-card) !important;
  border: 1.5px solid #1F1E1B !important;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  box-shadow: 4px 4px 0px #1F1E1B !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.recipe-card-premium:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #1F1E1B !important;
}

.recipe-card-premium .recipe-img-box {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #ECE7DF;
  border-bottom: 1.5px solid #1F1E1B;
}

.recipe-card-premium .recipe-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.recipe-card-premium:hover .recipe-img {
  transform: scale(1.03);
}

/* ==========================================================================
   Metric Stat Boxes (Sharp Dark Borders & Tactile Retro Shadows)
   ========================================================================== */
.stat-box-modern {
  background: var(--bg-card) !important;
  border: 1.5px solid #1F1E1B !important;
  border-radius: 0.85rem;
  padding: 1.35rem 1.15rem;
  text-align: center;
  box-shadow: 4px 4px 0px #1F1E1B !important;
  transition: all 0.2s ease;
}

.stat-box-modern:hover {
  transform: translate(-1.5px, -1.5px);
  box-shadow: 5.5px 5.5px 0px #1F1E1B !important;
}

.stat-box-modern .num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1;
}

.stat-box-modern .lbl {
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

/* ==========================================================================
   Inputs & Controls
   ========================================================================== */
.input-clean {
  width: 100%;
  background-color: #FFFFFF !important;
  border: 1.5px solid #1F1E1B !important;
  border-radius: 0.6rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text-primary) !important;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(31, 30, 27, 0.03);
  transition: all 0.15s ease;
}

.input-clean:focus {
  border-color: var(--claude-terracotta) !important;
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.18) !important;
}

select.input-clean {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23D97757' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 0.9rem;
  padding-right: 2.25rem;
  appearance: none;
  -webkit-appearance: none;
}

/* ==========================================================================
   Tabs & Filtering Controls
   ========================================================================== */
.tab-btn {
  padding: 0.5rem 1.05rem;
  border-radius: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text-secondary);
  background-color: #FFFFFF;
  border: 1.5px solid #1F1E1B;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 2px 2px 0px #1F1E1B;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-page-alt);
}

.tab-btn.active {
  background: var(--claude-terracotta) !important;
  color: #FFFFFF !important;
  border-color: #1F1E1B !important;
  box-shadow: 3px 3px 0px #1F1E1B !important;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Workstation & Article Containers with Sharp Dark Borders
   ========================================================================== */
.workstation-container, article.bg-white, div.bg-white {
  background: #FFFFFF !important;
  border: 1.5px solid #1F1E1B !important;
  border-radius: 1rem;
  box-shadow: 4px 4px 0px #1F1E1B !important;
  color: var(--text-primary);
}

/* Table Styling */
table {
  width: 100%;
}

thead, thead.bg-slate-50, thead.bg-slate-100, thead.bg-zinc-50, thead.bg-white\/5 {
  background: var(--bg-page-alt) !important;
  border-bottom: 1.5px solid #1F1E1B !important;
}

th {
  color: var(--text-primary) !important;
  font-family: var(--font-mono);
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}

td {
  color: var(--text-primary) !important;
  border-bottom: 1px solid #E8E3DA !important;
}

tr:hover td {
  background-color: var(--bg-page) !important;
}

/* ==========================================================================
   Section Tag
   The small labelled pill that sits above a calculator's heading. The
   renderers in js/tools.js have used this class since the first tool was
   written, but it was never actually defined anywhere - so ten tools were
   rendering an unstyled inline span. Defined here in the same warm-linen and
   terracotta palette as everything else, with no new colours.
   ========================================================================== */
.section-tag {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #C15F3D;
  background: #FBF0EB;
  border: 1px solid #F3D4C8;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}

/* ==========================================================================
   FAQ Accordions with Sharp Dark Borders
   ========================================================================== */
.faq-box {
  background: #FFFFFF !important;
  border: 1.5px solid #1F1E1B !important;
  border-radius: 0.75rem;
  margin-bottom: 0.65rem;
  overflow: hidden;
  box-shadow: 3px 3px 0px #1F1E1B;
  transition: all 0.2s ease;
}

.faq-box:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #1F1E1B;
}

.faq-box.open {
  border-color: #1F1E1B !important;
  box-shadow: 4px 4px 0px #1F1E1B;
}

.faq-header {
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--text-primary);
  user-select: none;
}

.faq-header .icon-toggle {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.35rem;
  background: var(--claude-terracotta-light);
  border: 1.5px solid #1F1E1B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--claude-terracotta-dark);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-box.open .faq-header .icon-toggle {
  transform: rotate(45deg);
  background: var(--claude-terracotta);
  color: #FFFFFF;
}

.faq-content {
  display: none;
  padding: 0 1.25rem 1.15rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-secondary);
  border-top: 1px dashed #1F1E1B;
  padding-top: 0.75rem;
}

.faq-box.open .faq-content {
  display: block;
}

/* ==========================================================================
   Site Footer (Warm Charcoal Umber)
   ========================================================================== */
.site-footer {
  background: var(--bg-dark) !important;
  color: #A8A29E;
  border-top: 2px solid #1F1E1B;
  position: relative;
  z-index: 10;
}

.site-footer a {
  color: #A8A29E;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: #FFFFFF;
}

/* Responsive Overrides */
@media (max-width: 640px) {
  .hero-wrapper {
    padding: 3.25rem 1rem 2.5rem;
  }
  .hero-main-title {
    font-size: 2rem;
  }
}
