/* 오늘의 영어단어 & Voca 전용 스타일 */
:root {
  --primary: #FF6B00;
  --primary-hover: #E55C00;
  --primary-light: #FFF4EB;
  --navy-dark: #0F172A;
  --navy-card: #1E293B;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-400: #94A3B8;
  --slate-600: #475569;
  --slate-700: #334155;
  --white: #FFFFFF;
  --emerald: #10B981;
  --emerald-dark: #059669;
  --emerald-light: #ECFDF5;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 16px 36px -6px rgba(15, 23, 42, 0.12);
}

.page-wrapper {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  flex-grow: 1;
}

.breadcrumb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--slate-400);
  margin-bottom: 1.2rem;
  font-weight: 600;
  flex-wrap: wrap;
}
.breadcrumb-row a { color: var(--slate-600); text-decoration: none; }
.breadcrumb-row a:hover { color: var(--primary); }

.page-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  border-radius: var(--radius-lg);
  padding: 2.8rem 2.5rem;
  color: var(--white);
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.18);
}
.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.page-hero p {
  font-size: 1.02rem;
  color: var(--slate-400);
  max-width: 680px;
  line-height: 1.5;
}

.featured-voca-card {
  background: var(--white);
  border: 2px solid #10B981;
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  margin-bottom: 2.8rem;
  box-shadow: 0 15px 35px rgba(16, 185, 129, 0.08);
  position: relative;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  display: block;
}
.featured-voca-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
  border-color: #059669;
}
.featured-tag {
  position: absolute;
  top: -14px;
  left: 2rem;
  background: #10B981;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.voca-word-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}
.voca-main-word {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy-dark);
  letter-spacing: -0.5px;
}
.voca-definition {
  font-size: 1.15rem;
  font-weight: 800;
  color: #059669;
  margin-bottom: 1.2rem;
}
.voca-example-box {
  background: #FAFBFD;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}
.voca-example-eng {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.4rem;
  line-height: 1.55;
}
.voca-example-eng strong {
  color: #059669;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.voca-example-kor {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.5;
}
.featured-more-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.featured-more-cta {
  font-size: 0.82rem;
  font-weight: 800;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.archive-section {
  margin-top: 1rem;
  position: relative;
}
.archive-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.content-grid-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy-dark);
  margin-bottom: 0;
}
.archive-count-badge {
  font-size: 0.78rem;
  font-weight: 800;
  color: #059669;
  background: #ECFDF5;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.archive-search-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: 30px;
  padding: 0.35rem 0.45rem 0.35rem 1rem;
  width: 350px;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}
.archive-search-box:focus-within {
  border-color: #10B981;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}
.archive-search-box input {
  border: none;
  outline: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-dark);
  width: 100%;
  margin-left: 8px;
  background: transparent;
}
.clear-search-btn {
  background: none;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.clear-search-btn:hover { color: #10B981; }
.search-submit-btn {
  background: #10B981;
  color: #FFFFFF;
  border: none;
  border-radius: 20px;
  padding: 0.42rem 0.95rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
  margin-left: 6px;
  flex-shrink: 0;
}
.search-submit-btn:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  min-height: 220px;
}
.voca-card {
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--navy-dark);
  position: relative;
}
.voca-card:hover {
  border-color: #10B981;
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.card-top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.card-category-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 12px;
  background: #ECFDF5;
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
  display: inline-flex;
  align-items: center;
}
.card-date { font-size: 0.78rem; color: var(--slate-400); font-weight: 600; }
.card-voca-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 0.2rem;
}
.card-voca-word {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--navy-dark);
  line-height: 1.3;
}
.card-voca-mean {
  font-size: 0.94rem;
  color: #059669;
  font-weight: 800;
  margin-bottom: 0.9rem;
}
.card-example-preview {
  font-size: 0.82rem;
  color: var(--slate-600);
  background: #FAFBFD;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid #F1F5F9;
  line-height: 1.4;
  flex-grow: 1;
}

.no-results-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--slate-200);
}
.no-results-box i {
  font-size: 2.8rem;
  color: var(--slate-300);
  margin-bottom: 1rem;
}
.no-results-box h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.4rem;
}
.no-results-box p {
  font-size: 0.9rem;
  color: var(--slate-400);
  margin-bottom: 1.4rem;
}
.btn-reset-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1.4rem;
  border-radius: 20px;
  background: #10B981;
  color: var(--white);
  font-weight: 800;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-reset-search:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  color: var(--slate-700);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0 0.75rem;
  user-select: none;
  text-decoration: none;
}
.page-btn:hover {
  border-color: #10B981;
  color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.12);
}
.page-btn.active {
  background: #10B981;
  border-color: #10B981;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.page-nav-btn {
  gap: 4px;
  font-size: 0.86rem;
  padding: 0 0.85rem;
}

.voca-detail-view {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--slate-200);
  padding: 2.8rem 3rem;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08);
  margin-bottom: 3.5rem;
}
.detail-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--slate-100);
  flex-wrap: wrap;
  gap: 1rem;
}
.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--slate-600);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  padding: 0.5rem 1.1rem;
  border-radius: 10px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  transition: all 0.2s ease;
}
.btn-back-link:hover {
  background: var(--slate-200);
  color: var(--navy-dark);
  transform: translateX(-3px);
}
.detail-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: var(--white);
  border: 1.5px solid var(--slate-200);
  color: var(--slate-600);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-action-pill:hover {
  border-color: #10B981;
  color: #059669;
}

.detail-header-block {
  margin-bottom: 2.2rem;
  border-bottom: 1.5px solid var(--slate-100);
  padding-bottom: 1.8rem;
}
.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.detail-word-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.detail-word-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--navy-dark);
  letter-spacing: -0.8px;
  line-height: 1.2;
}
.detail-meaning-sub {
  font-size: 1.3rem;
  font-weight: 800;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.detail-section-card { margin-bottom: 2.2rem; }
.detail-section-title {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.1rem;
  letter-spacing: -0.3px;
}

.origin-box {
  background: #FAFBFD;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
}
.origin-formula-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ECFDF5;
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  padding: 0.5rem 1.1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #059669;
  width: fit-content;
}
.origin-story-text {
  font-size: 0.98rem;
  color: var(--slate-700);
  line-height: 1.7;
}

.examples-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.example-card {
  background: #FFFFFF;
  border: 1.5px solid var(--slate-200);
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  border-left: 4px solid #10B981;
  transition: all 0.2s ease;
}
.example-card:hover {
  border-color: #10B981;
  border-left: 4px solid #059669;
  transform: translateX(3px);
}
.example-eng-text {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.5;
  margin-bottom: 0.45rem;
}
.example-eng-text strong {
  color: #059669;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.example-kor-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: #64748B;
  line-height: 1.5;
}

.voca-raw-content {
  background: #FAFBFD;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.6rem 1.8rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--navy-dark);
}
.voca-raw-content p { margin-bottom: 0.8rem; }

.detail-bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--slate-200);
  flex-wrap: wrap;
  gap: 1rem;
}
.btn-nav-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.4rem;
  border-radius: 12px;
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  color: var(--navy-dark);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  text-decoration: none;
}
.btn-nav-step:hover {
  border-color: #10B981;
  color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.btn-nav-step.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.btn-nav-list-main {
  background: var(--navy-dark);
  color: var(--white);
  border-color: var(--navy-dark);
  padding: 0.75rem 1.8rem;
}
.btn-nav-list-main:hover {
  background: #1E293B;
  color: var(--white);
  border-color: #1E293B;
}

.copy-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy-dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (max-width: 992px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .voca-detail-view { padding: 2rem 1.5rem; }
  .detail-word-title { font-size: 2rem; }
}
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 2rem 1.4rem; }
  .page-hero h1 { font-size: 1.65rem; }
  .archive-search-box { width: 100%; }
  .archive-header-row { flex-direction: column; align-items: stretch; }
  .featured-voca-card { padding: 1.5rem 1.2rem; }
  .voca-main-word { font-size: 1.8rem; }
  .voca-detail-view { padding: 1.5rem 1.1rem; }
  .detail-word-title { font-size: 1.7rem; }
  .detail-bottom-nav { flex-direction: column; align-items: stretch; }
  .btn-nav-step { justify-content: center; width: 100%; }
}
