/* ========== Subpage Common Styles ========== */

/* ========== Breadcrumb Navigation ========== */
.breadcrumb-section {
  padding: 16px 0;
  background: linear-gradient(to right, #f8f8fa, #fff);
  border-bottom: 1px solid #e5e5e5;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.breadcrumb__link {
  color: #b946ef;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb__link:hover {
  color: #ec4899;
}

.breadcrumb__separator {
  color: #ccc;
}

.breadcrumb__current {
  color: #666;
  font-weight: 500;
}

/* ========== Page Hero Section ========== */
.page-hero {
  padding: 60px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #ec4899 70%, #f97316 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.page-hero__content {
  text-align: center;
  color: white;
  position: relative;
  z-index: 2;
}

.page-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.page-hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin: 0 auto;
}

/* Hero variants */
.dictionary-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #b946ef 100%);
}

.copy-tool-hero {
  background: linear-gradient(135deg, #764ba2 0%, #ec4899 50%, #f97316 100%);
}

.trends-hero {
  background: linear-gradient(135deg, #6b4fa1 0%, #b946ef 50%, #ec4899 100%);
}

.fortune-hero {
  background: linear-gradient(135deg, #b946ef 0%, #ec4899 50%, #f97316 100%);
}

/* ========== Dictionary Section ========== */
.category-filter {
  padding: 40px 0;
  background: white;
}

.filter-header {
  text-align: center;
  margin-bottom: 32px;
}

.filter-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0a0e27;
}

.category-list {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.category-btn {
  padding: 10px 20px;
  border: 2px solid #e5e5e5;
  background: white;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #666;
}

.category-btn:hover {
  border-color: #b946ef;
  color: #b946ef;
}

.category-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white;
}

/* ========== Emoji Dictionary Grid ========== */
.emoji-dictionary {
  padding: 60px 0;
  background: white;
}

.emoji-dictionary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.emoji-card {
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.emoji-card:hover {
  border-color: #b946ef;
  box-shadow: 0 12px 24px rgba(185, 70, 239, 0.15);
  transform: translateY(-4px);
}

.emoji-card__emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
  text-align: center;
}

.emoji-card__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.emoji-card__name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0a0e27;
  margin: 0;
}

.emoji-card__description {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.emoji-card__en {
  font-size: 0.85rem;
  color: #999;
  font-style: italic;
  margin: 0;
}

.emoji-card__usage {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.emoji-card__label {
  font-weight: 600;
  color: #666;
  font-size: 0.85rem;
}

.emoji-card__gen {
  font-size: 0.85rem;
  color: #999;
}

.emoji-card__copy-btn {
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.emoji-card__copy-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.emoji-card__copy-btn:active {
  transform: scale(0.98);
}

.load-more-btn-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ========== Copy Tool Section ========== */
.copy-tool-section {
  padding: 60px 0;
  background: white;
}

.copy-tool-header {
  text-align: center;
  margin-bottom: 40px;
}

.copy-tool-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0a0e27;
}

.copy-tool-swiper {
  padding: 20px 0;
}

.copy-tool-card {
  background: linear-gradient(135deg, #f8f8fa 0%, #ffffff 100%);
  border: 2px solid #e5e5e5;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  cursor: pointer;
}

.copy-tool-card:hover {
  border-color: #b946ef;
  box-shadow: 0 12px 32px rgba(185, 70, 239, 0.2);
  transform: translateY(-8px);
}

.copy-tool-card__icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.copy-tool-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a0e27;
  margin-bottom: 8px;
}

.copy-tool-card__description {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.copy-tool-card__preview {
  font-size: 1.5rem;
  margin: 20px 0;
  padding: 16px;
  background: rgba(185, 70, 239, 0.1);
  border-radius: 8px;
  letter-spacing: 4px;
}

.copy-tool-card__btn {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #ec4899 70%, #f97316 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
}

.copy-tool-card__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Swiper Navigation */
.swiper-button-prev,
.swiper-button-next {
  color: #b946ef;
  top: 50%;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: #b946ef;
  color: white;
}

.swiper-pagination-bullet {
  background: #b946ef;
  opacity: 0.3;
}

.swiper-pagination-bullet-active {
  background: #b946ef;
  opacity: 1;
}

/* Copy Notification */
.copy-notification {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  z-index: 1000;
  transition: bottom 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.copy-notification.show {
  bottom: 20px;
}

/* ========== Trends Section ========== */
.trends-section {
  padding: 60px 0;
  background: white;
}

.gen-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.gen-tab {
  padding: 12px 24px;
  border: 2px solid #e5e5e5;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.gen-tab__label {
  display: block;
  font-size: 1rem;
  color: #0a0e27;
}

.gen-tab__year {
  display: block;
  font-size: 0.8rem;
  color: #999;
  font-weight: normal;
}

.gen-tab:hover {
  border-color: #b946ef;
  color: #b946ef;
}

.gen-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white;
}

.gen-tab.active .gen-tab__year {
  color: rgba(255, 255, 255, 0.8);
}

.trends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 60px;
}

.trend-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.trend-item:hover {
  border-color: #b946ef;
  box-shadow: 0 8px 16px rgba(185, 70, 239, 0.1);
}

.trend-rank {
  font-size: 1.5rem;
  font-weight: 700;
  color: #b946ef;
  min-width: 30px;
}

.trend-emoji {
  font-size: 2rem;
  flex-shrink: 0;
}

.trend-info {
  flex: 1;
}

.trend-name {
  font-size: 1rem;
  font-weight: 600;
  color: #0a0e27;
  margin: 0 0 4px 0;
}

.trend-usage {
  font-size: 0.85rem;
  color: #999;
  margin: 0;
}

.trend-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: #b946ef;
  min-width: 40px;
  text-align: right;
}

/* Generation Info Cards */
.gen-info-section {
  margin-top: 40px;
}

.gen-info-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #0a0e27;
  margin-bottom: 40px;
}

.gen-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.gen-info-card {
  background: white;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.gen-info-card:hover {
  border-color: #b946ef;
  box-shadow: 0 12px 24px rgba(185, 70, 239, 0.15);
}

.gen-info-card__gen {
  font-size: 1.125rem;
  font-weight: 700;
  color: #b946ef;
  margin-bottom: 12px;
}

.gen-info-card__desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.gen-info-card__emojis {
  font-size: 1.5rem;
  letter-spacing: 4px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

/* ========== Fortune Section ========== */
.fortune-section {
  padding: 60px 0;
  background: white;
}

.fortune-intro {
  text-align: center;
  margin-bottom: 40px;
}

.fortune-intro__text {
  font-size: 1.125rem;
  color: #666;
  line-height: 1.8;
}

.emotion-selector {
  margin-bottom: 60px;
}

.emotion-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.emotion-btn {
  padding: 20px;
  background: white;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.emotion-btn:hover {
  border-color: #b946ef;
  transform: scale(1.05);
}

.emotion-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white;
}

.emotion-btn__emoji {
  font-size: 2.5rem;
}

.emotion-btn__label {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Fortune Result */
.fortune-result {
  background: linear-gradient(135deg, #f8f8fa 0%, #ffffff 100%);
  border: 2px solid #e5e5e5;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  transition: all 0.3s ease;
}

.fortune-result.hidden {
  display: none;
}

.fortune-result__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.fortune-result__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a0e27;
  margin: 0;
}

.fortune-result__close {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #ccc;
  transition: color 0.3s ease;
}

.fortune-result__close:hover {
  color: #b946ef;
}

.fortune-result__emoji {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 20px;
}

.fortune-result__message {
  text-align: center;
  margin-bottom: 24px;
}

.fortune-result__emotion-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #b946ef;
  margin: 0 0 12px 0;
}

.fortune-result__quote {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  font-style: italic;
  margin: 0;
}

.fortune-result__details {
  background: white;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  display: grid;
  gap: 12px;
}

.fortune-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fortune-detail__label {
  font-weight: 600;
  color: #666;
  font-size: 0.9rem;
}

.fortune-detail__value {
  color: #b946ef;
  font-weight: 700;
}

.fortune-result__advice {
  background: rgba(185, 70, 239, 0.1);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.fortune-result__advice-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #b946ef;
  margin: 0 0 8px 0;
}

.fortune-result__advice-text {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

#retryBtn {
  width: 100%;
}

/* Fortune FAQ */
.fortune-faq {
  margin-top: 80px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.fortune-faq__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #0a0e27;
  margin-bottom: 40px;
}

.faq-items {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: white;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: #b946ef;
  box-shadow: 0 4px 12px rgba(185, 70, 239, 0.1);
}

.faq-item__q {
  font-size: 1rem;
  font-weight: 700;
  color: #0a0e27;
  margin: 0 0 8px 0;
}

.faq-item__a {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
  .page-hero__title {
    font-size: 1.75rem;
  }

  .page-hero__subtitle {
    font-size: 1rem;
  }

  .emoji-dictionary__grid {
    grid-template-columns: 1fr;
  }

  .emoji-card {
    padding: 16px;
  }

  .copy-tool-card {
    padding: 20px;
  }

  .copy-tool-card__title {
    font-size: 1.25rem;
  }

  .trends-grid {
    grid-template-columns: 1fr;
  }

  .gen-tabs {
    gap: 8px;
  }

  .gen-tab {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .emotion-buttons {
    grid-template-columns: repeat(4, 1fr);
  }

  .emotion-btn {
    padding: 12px;
  }

  .emotion-btn__emoji {
    font-size: 2rem;
  }

  .emotion-btn__label {
    font-size: 0.75rem;
  }

  .fortune-result {
    padding: 24px;
  }

  .category-list {
    gap: 8px;
  }

  .category-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

/* ========== Dictionary Page Hero ========== */
.dict-hero {
  background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 40%, #7c3aed 70%, #a855f7 100%);
  padding: 80px 20px 60px;
  text-align: center;
}

.dict-hero h1,
.dict-hero p,
.dict-hero * {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* ========== Category Filter Section ========== */
.category-filter {
  padding: 40px 0;
  background: white;
}

.filter-header {
  text-align: center;
  margin-bottom: 32px;
}

.filter-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0a0e27;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.cat-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid #d1d5db;
  background: white;
  color: #374151;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-btn:hover {
  border-color: #a855f7;
  color: #7c3aed;
}

.cat-btn.active {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  border-color: transparent;
}

.dict-search-wrap {
  max-width: 480px;
  margin: 0 auto 0;
  padding: 0 20px;
}

#dict-search {
  width: 100%;
  padding: 12px 20px;
  border-radius: 50px;
  border: 2px solid #e5e7eb;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  font-weight: 500;
}

#dict-search:focus {
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* ========== Emoji Dictionary Grid ========== */
.emoji-dictionary {
  padding: 60px 0;
  background: white;
}

.emoji-dict-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.dict-card {
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
  cursor: pointer;
}

.dict-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
  border-color: #a855f7;
}

.dict-card__emoji {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 16px;
  display: block;
}

.dict-card__name-ko {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
  line-height: 1.3;
}

.dict-card__name-en {
  font-size: 0.85rem;
  color: #9ca3af;
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.3;
}

.dict-card__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
  background: #f3e8ff;
  color: #7c3aed;
  margin-bottom: 16px;
  width: fit-content;
}

.dict-card__copy-btn {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: auto;
  transition: all 0.2s ease;
}

.dict-card__copy-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.dict-card__copy-btn:active {
  transform: translateY(0);
}

/* ========== Dictionary Responsive ========== */
@media (max-width: 1024px) {
  .emoji-dict-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .emoji-dict-grid {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    gap: 6px;
  }

  .cat-btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .dict-card {
    padding: 20px;
  }

  .dict-card__emoji {
    font-size: 2.5rem;
    margin-bottom: 12px;
  }

  .dict-card__name-ko {
    font-size: 1rem;
  }

  .dict-card__name-en {
    font-size: 0.8rem;
  }
}
