/* 1일1쓰레드 챌린지 — 공용 스타일 (diggingclub.vercel.app 톤 그대로) */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "system-ui", sans-serif;
  background: #FFF7EB;
  color: #1A1A1A;
}
a { color: #EE2C2D; text-decoration: none; }

.banner {
  background: #1A1A1A; color: #fff; text-align: center;
  font-size: 13px; font-weight: 700; padding: 10px 0;
}
header.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px; border-bottom: 1px solid rgba(26,26,26,0.08);
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand img { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; }
.brand span { font-weight: 800; font-size: 16px; color: #1A1A1A; }
nav.tabs { display: flex; gap: 4px; }
.tab {
  padding: 9px 18px; border-radius: 100px; font-size: 14px; font-weight: 700;
  color: #6B6B6B; cursor: pointer; border: none; background: none; font-family: inherit;
}
.tab.active { background: #1A1A1A; color: #fff; }
.tab.disabled { cursor: default; opacity: 0.45; }
.day-chip {
  background: #FDE8E7; color: #EE2C2D; border-radius: 100px;
  padding: 7px 14px; font-size: 13px; font-weight: 700; white-space: nowrap;
}

.hamburger-btn {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  color: #1A1A1A; align-items: center; justify-content: center; flex-shrink: 0;
}
.tabs-mobile { display: none; flex-direction: column; gap: 2px; background: #fff; padding: 10px 16px 14px; border-bottom: 1px solid rgba(26,26,26,0.08); }
.tabs-mobile.open { display: flex; }
.tabs-mobile .tab { text-align: left; padding: 12px 10px; border-radius: 10px; }

/* 좁은 화면(모바일)에서는 탭 메뉴를 통째로 숨기고 햄버거 버튼 + 드롭다운으로 대체해요.
   (예전엔 display:contents로 데스크톱 마크업을 그대로 재배치했는데 iOS Safari에서
   flex order가 깨져서 완전히 별도 마크업(.tabs-mobile)으로 바꿨어요.) */
@media (max-width: 720px) {
  header.topbar { padding: 14px 16px; }
  nav.tabs { display: none; }
  .hamburger-btn { display: flex; }
  .brand span { font-size: 14px; white-space: nowrap; }
  .day-chip { font-size: 12px; padding: 6px 11px; }
}

.btn {
  border: none; border-radius: 100px; padding: 14px 26px; font-size: 14px;
  font-weight: 700; cursor: pointer; font-family: inherit;
}
.btn-primary { background: #EE2C2D; color: #fff; }
.btn-primary:hover { background: #D01F20; }
.btn-primary:disabled { background: #E7B9B8; cursor: not-allowed; }
.btn-secondary { background: #fff; color: #1A1A1A; border: 1.5px solid rgba(26,26,26,0.12); }
.btn-secondary:hover { border-color: rgba(26,26,26,0.3); }
.btn-secondary:disabled { background: #F3F1EC; color: #B8B4AA; border-color: rgba(26,26,26,0.06); cursor: not-allowed; }

.badge-soon {
  display: inline-block; background: #FFF3D6; color: #9A6B00; border-radius: 100px;
  padding: 2px 9px; font-size: 11px; font-weight: 700; margin-left: 8px; vertical-align: middle;
}

.card {
  background: #fff; border: 1px solid rgba(26,26,26,0.08); border-radius: 20px;
  padding: 28px; box-shadow: 0 2px 10px rgba(26,26,26,0.05);
}

.field-label { font-size: 13px; font-weight: 700; color: #1A1A1A; margin-bottom: 6px; display: block; }
.field-help { font-size: 12px; color: #9A9A9A; font-weight: 500; margin-top: 6px; }
.input {
  width: 100%; border: 1.5px solid rgba(26,26,26,0.12); border-radius: 12px;
  padding: 13px 14px; font-size: 14px; font-family: inherit; color: #1A1A1A;
}
.input:focus { outline: none; border-color: #EE2C2D; }
textarea.input { resize: vertical; font-family: inherit; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: #1A1A1A; color: #fff; padding: 13px 22px; border-radius: 100px;
  font-size: 13px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.toast.error { background: #EE2C2D; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
