/* ── Cookbook Tabs ──────────────────────────────────────────────────────── */
.cookbook-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.cookbook-tab {
  padding: 8px 18px;
  border: none;
  background: none;
  color: var(--fg);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}
.cookbook-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.cookbook-tab:hover:not(.active) { color: var(--primary); }

/* ── Cookbook Grid ──────────────────────────────────────────────────────── */
.cookbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ── Cookbook Card ──────────────────────────────────────────────────────── */
.cookbook-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}
.cookbook-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.cookbook-card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--border);
  overflow: hidden;
}
.cookbook-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cookbook-source-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
}

.cookbook-card-body {
  padding: 10px 12px 12px;
}
.cookbook-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Card Actions ───────────────────────────────────────────────────────── */
.cookbook-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookbook-move-select {
  flex: 1;
  font-size: 0.78rem;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  cursor: pointer;
}
.cookbook-delete-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.cookbook-delete-btn:hover { background: #e53935; color: #fff; border-color: #e53935; }

/* ── Empty State ────────────────────────────────────────────────────────── */
.cookbook-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--fg);
  opacity: 0.6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cookbook-empty p { margin-bottom: 16px; }

/* ── Auth Gate ──────────────────────────────────────────────────────────── */
.auth-gate {
  text-align: center;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.auth-gate p { margin-bottom: 16px; font-size: 1rem; }
