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

:root {
  --pink: #ffd6e8;
  --pink-deep: #ff9ec4;
  --lavender: #e3d9ff;
  --mint: #d3f7e9;
  --sky: #d8ecff;
  --peach: #ffe4d6;
  --yellow: #fff4c9;
  --text-main: #4a3f4d;
  --text-sub: #8a7f8c;
  --card-bg: #ffffff;
  --bg: #fbf7fb;
  --radius: 24px;
  --shadow: 0 8px 24px rgba(190, 160, 200, 0.18);
}

body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR",
    "Malgun Gothic", sans-serif;
  background: linear-gradient(160deg, #fdf6fb 0%, #f3f1fd 45%, #eef7f6 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 16px 60px;
}

.app {
  width: 100%;
  max-width: 480px;
}

/* ---------- Weather Card ---------- */
.weather-card {
  background: linear-gradient(135deg, var(--pink) 0%, var(--lavender) 100%);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.weather-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.weather-card::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.date {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  opacity: 0.75;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.weather-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 4px;
  position: relative;
  z-index: 1;
}

.weather-emoji {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.08));
}

.temp {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-main);
}

.weather-desc {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  opacity: 0.8;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.weather-sub {
  display: flex;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.sub-item {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  border-radius: 14px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 70px;
}

.sub-label {
  font-size: 11px;
  color: var(--text-sub);
  font-weight: 600;
}

.sub-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

/* ---------- Section ---------- */
.section-title {
  margin-top: 32px;
  font-size: 20px;
  font-weight: 800;
}

.section-sub {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 4px;
  margin-bottom: 18px;
}

/* ---------- Cards ---------- */
.cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.outfit-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.outfit-card:active {
  transform: scale(0.98);
}

.outfit-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.outfit-body {
  flex: 1;
}

.outfit-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
  color: var(--text-main);
}

.outfit-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.4;
}

.outfit-title .piece {
  color: var(--text-main);
}

.outfit-title .divider {
  color: var(--text-sub);
  font-weight: 500;
  margin: 0 4px;
}

.outfit-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.55;
}

/* card color themes */
.theme-pink .outfit-icon { background: var(--pink); }
.theme-pink .outfit-tag { background: var(--pink); }

.theme-mint .outfit-icon { background: var(--mint); }
.theme-mint .outfit-tag { background: var(--mint); }

.theme-sky .outfit-icon { background: var(--sky); }
.theme-sky .outfit-tag { background: var(--sky); }

.theme-peach .outfit-icon { background: var(--peach); }
.theme-peach .outfit-tag { background: var(--peach); }

.theme-lavender .outfit-icon { background: var(--lavender); }
.theme-lavender .outfit-tag { background: var(--lavender); }

.theme-yellow .outfit-icon { background: var(--yellow); }
.theme-yellow .outfit-tag { background: var(--yellow); }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  margin-top: 36px;
  font-size: 12px;
  color: var(--text-sub);
}

/* ---------- Responsive ---------- */
@media (min-width: 560px) {
  .cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .outfit-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 360px) {
  .temp { font-size: 40px; }
  .weather-emoji { font-size: 40px; }
  .sub-item { min-width: 60px; padding: 6px 10px; }
}
