:root {
  --primary: #c0392b;
  --bg: #f7f4f1;
  --card-bg: #ffffff;
  --text: #2c2c2c;
  --text-muted: #777;
  --border: #e0dbd5;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Heebo', 'Arial Hebrew', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* Header */
.site-header {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}
.site-title { font-size: 2rem; font-weight: 700; }
.site-subtitle { margin-top: 0.4rem; opacity: 0.85; font-size: 1rem; }

/* Layout */
.main-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Category tabs */
.category-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.tab {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s;
}
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab.active { background: var(--primary); border-color: var(--primary); color: white; }

/* Status */
.status-message {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

/* Grid */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Card */
.recipe-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-image {
  width: 100%;
  height: 180px;
  background: #f0ece8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.card-image svg { width: 72px; height: 72px; opacity: 0.3; }

.card-body {
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-meta { margin-bottom: 0.5rem; }
.category-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #fdecea;
  color: var(--primary);
}
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.card-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card footer */
.card-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.submitter { font-size: 0.8rem; color: var(--text-muted); }
.stars { color: #e67e22; font-size: 1rem; }
.votes-count { font-size: 0.8rem; color: var(--text-muted); margin-right: 0.25rem; }

.fb-link {
  font-size: 0.8rem;
  color: #1877f2;
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border: 1px solid #1877f2;
  border-radius: 999px;
  transition: all 0.15s;
  white-space: nowrap;
}
.fb-link:hover { background: #1877f2; color: white; }

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}
