/* =====================================================
   ROOT + RESET
===================================================== */

:root {
  --bg: #f7f7f7;
  --card: #ffffff;
  --text: #111;
  --muted: #666;
  --accent: #ff6b35;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont;
  background: var(--bg);
  color: var(--text);
}

/* =====================================================
   LAYOUT
===================================================== */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

.site-header,
.site-footer {
  background: #fff;
  border-color: #ddd;
}

.site-header {
  border-bottom: 1px solid #ddd;
}

.site-footer {
  border-top: 1px solid #ddd;
  margin-top: 40px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
}

/* =====================================================
   GLOBAL LINKS (NO UNDERLINES ANYWHERE)
===================================================== */

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: var(--accent);
}

/* =====================================================
   CARDS
===================================================== */

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
  margin-bottom: 16px;
}

/* =====================================================
   HERO
===================================================== */

.hero {
  margin-bottom: 30px;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

/* =====================================================
   SEARCH + SUGGESTIONS
===================================================== */

#ingredient-search,
input,
textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 2px solid #ddd;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.suggestions {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  margin-bottom: 14px;
  overflow: hidden;
}

.suggestion {
  padding: 10px 14px;
  cursor: pointer;
}

.suggestion:hover {
  background: #f5f7fa;
}

#ingredientSuggestions {
  max-height: 200px;
  overflow-y: auto;
}

/* =====================================================
   PILLS
===================================================== */

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.pill {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.95rem;
  cursor: pointer;
  white-space: nowrap;
}

.pill-outline {
  border: 2px solid var(--accent);
  background: #fff;
  color: var(--accent);
}

.pill-outline:hover {
  background: var(--accent);
  color: #fff;
}

.pill-filled {
  background: var(--accent);
  color: #fff;
}

/* =====================================================
   CTA BUTTON
===================================================== */

.cta-btn {
  width: 100%;
  padding: 16px;
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 6px 0 rgba(0,0,0,0.15);
  cursor: pointer;
}

.cta-btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

/* =====================================================
   SUBTLE TEXT
===================================================== */

.subtle {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* =====================================================
   MATCH SECTIONS
===================================================== */

.match-exact {
  background: #e9f8ef;
  border: 1px solid #cfeedd;
}

.match-close {
  background: var(--card);
}

/* =====================================================
   RECIPE GRID + BUBBLES
===================================================== */

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.recipe-bubble {
  color: inherit;
}

.recipe-bubble-inner {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  height: 100%;
}

.recipe-bubble-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.recipe-bubble h3 {
  margin: 0;
  font-size: 1rem;
}

/* =====================================================
   IMAGES
===================================================== */

.recipe-image {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  background: #f1f1f1;
  margin-bottom: 10px;
  object-fit: cover;
}

/* =====================================================
   ADMIN
===================================================== */

.action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-table tbody tr:hover {
  background: #f7f7f7;
}

.admin-search-btn {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  line-height: 1;
}
