@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&display=swap");

:root {
  --accent: #00e676;
  --text: #1a1a1a;
  --muted: #767676;
  --line: #e8e8e8;
  --soft: #f2f2f2;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--white);
  color: var(--text);
  font-family: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  cursor: pointer;
}

.app-shell {
  width: 100%;
  max-width: 390px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--white);
}

.app-screen {
  min-height: 100vh;
}

.home-screen {
  padding: 24px 18px 28px;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.home-header h1 {
  margin: 0;
  color: #000000;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
}

.icon-button,
.heart-button,
.arrow-button,
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  padding: 0;
}

.icon-button {
  width: 42px;
  height: 42px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 15px;
}

.search-bar input::placeholder {
  color: #9a9a9a;
}

.filter-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 0 20px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  white-space: nowrap;
}

.filter-chip {
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
}

.filter-chip.active {
  border-color: #000000;
  background: #000000;
  color: var(--white);
}

.recipe-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 10px;
}

.recipe-card {
  display: grid;
  grid-template-columns: 88px 1fr 34px;
  align-items: center;
  gap: 14px;
  min-height: 112px;
  padding: 12px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
  outline: none;
}

.recipe-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.24), var(--shadow);
}

.image-placeholder {
  background: var(--soft);
}

.card-image {
  width: 88px;
  height: 88px;
  border-radius: 16px;
}

.recipe-card-content {
  min-width: 0;
}

.recipe-card-content h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.category-label,
.time-label {
  margin: 0;
  font-size: 13px;
}

.category-label {
  color: var(--accent);
  font-weight: 700;
}

.time-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 500;
}

.card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}

.heart-button,
.arrow-button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.arrow-button {
  border: 1px solid var(--line);
}

.empty-state {
  margin: 42px 0 0;
  text-align: center;
  color: var(--muted);
}

.detail-screen {
  position: relative;
}

.back-button {
  position: absolute;
  top: 20px;
  left: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.detail-image {
  width: 100%;
  height: 286px;
  border-radius: 0 0 28px 28px;
}

.detail-content {
  padding: 24px 18px 32px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.13);
  color: #00984e;
  font-size: 13px;
  font-weight: 800;
}

.detail-content h1 {
  margin: 16px 0 18px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.info-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.info-row::-webkit-scrollbar {
  display: none;
}

.info-chip {
  padding: 0 11px;
  font-size: 12px;
  font-weight: 600;
  color: #3a3a3a;
}

.detail-content h2 {
  margin: 28px 0 14px;
  font-size: 20px;
  font-weight: 800;
}

.ingredient-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: #343434;
  font-size: 15px;
  line-height: 1.45;
}

@media (min-width: 430px) {
  body {
    background: #f7f7f7;
  }

  .app-shell {
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
  }
}
