/* layout.css — 전체 레이아웃 (Phase 1 재작성) */

body {
  font-family: var(--font-family);
  background: var(--bg-cream);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* ===== 화면 컨테이너 ===== */
.screen {
  display: none;           /* 기본 숨김, router.js가 제어 */
  min-height: calc(100vh - var(--header-height));
}
.screen-center {
  /* profile, register 같은 중앙 정렬 화면 */
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ===== .app-container (단어장 화면용) ===== */
.app-container {
  display: flex;
  min-height: calc(100vh - var(--header-height));
  max-width: 1400px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: 0;
  overflow: hidden;
  position: relative;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

/* ===== .main-wrapper, .content-area ===== */
.main-wrapper {
  flex-grow: 1;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  padding-bottom: 90px;
}
.content-area {
  padding: 40px 48px;
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
}
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-secondary);
  background: var(--bg-cream);
  border-radius: var(--radius-lg);
  font-weight: 600;
}

/* ===== 안내 배너 (Phase 3에서 제거 예정) ===== */
@keyframes attentionFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
#grid-container[style*="display: block"]::before {
  content: "✨ 아이가 누가 시키지 않아도, 먼저 말하는 단어를 체크해주세요. 이번주 타겟을 추출해드릴게요! 👇";
  display: block;
  background: var(--bg-info-light);
  color: var(--text-primary);
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 36px;
  border: 2px solid #FFDA70;
  text-align: center;
  box-shadow: 0 8px 24px rgba(255, 218, 112, 0.3);
  animation: attentionFloat 2.5s ease-in-out infinite;
}

/* ===== 플로팅바 ===== */
.floating-bar {
  position: fixed;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 480px;
  background: #4A403A;
  padding: 18px 32px;
  box-shadow: 0 20px 40px rgba(74, 64, 58, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-sizing: border-box;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.floating-bar.visible {
  bottom: 40px;
  opacity: 1;
  pointer-events: auto;
}
.floating-bar-progress {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #F0EBE5;
}
.floating-bar-actions {
  display: flex;
  gap: 12px;
}
.btn-float {
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-family);
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.btn-float:hover { transform: scale(1.05); }
.btn-float:active { transform: scale(0.95); }

/* CTA 버튼 — 주황 */
.btn-print-target {
  background: var(--accent);
  color: var(--bg-white);
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.4);
}
.btn-print-target:hover {
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.6);
  filter: brightness(1.05);
}

/* === 공용 안내 박스 === */
.info-box-red {
  background: #FFF0F0;
  border: 1.5px solid #FFAAAA;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.info-box-red p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

