/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #1b2230;
  --muted: #6b7484;
  --border: #e2e6ee;
  --accent: #2f6df6;
  --accent-dark: #1b4fd0;
  --header-bg: #16202f;
  --header-text: #f7f9fc;
  --error-bg: #fdecec;
  --error-text: #a3232b;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(22, 32, 47, 0.07);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 24px 16px;
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.header__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.header__subtitle {
  margin: 6px 0 0;
  color: rgba(247, 249, 252, 0.72);
  font-size: 15px;
}

.main {
  flex: 1 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px 32px;
}

.search {
  position: relative;
  margin-bottom: 24px;
}

.search__label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.search__input {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  outline: none;
}

.search__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 109, 246, 0.18);
}

.search__status {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.suggestions {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(22, 32, 47, 0.14);
}

.suggestions__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.suggestions__item:hover {
  background: rgba(47, 109, 246, 0.08);
}

.suggestions__name {
  font-weight: 600;
}

.suggestions__country {
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 16px;
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card__title {
  margin: 0;
  font-size: 19px;
  font-weight: 650;
}

.card__country {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.card__remove {
  flex: none;
  width: 30px;
  height: 30px;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.card__remove:hover {
  color: var(--error-text);
  border-color: var(--error-text);
}

.card__temp {
  margin: 12px 0 0;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card__description {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.card__details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  gap: 8px;
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
}

.card__detail dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.card__detail dd {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
}

.card__updated {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.card__placeholder {
  margin: 16px 0 0;
  color: var(--muted);
}

.empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.alert {
  margin: 0 0 16px;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 10px;
}

.alert--error {
  color: var(--error-text);
  background: var(--error-bg);
  border: 1px solid rgba(163, 35, 43, 0.18);
}

.footer {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 0;
}

@media (min-width: 640px) {
  .header {
    padding: 32px 24px;
  }

  .header__title {
    font-size: 34px;
  }

  .main {
    padding: 24px 24px 40px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

