:root {
  --primary: #f8a5b8;
  --primary-light: #ffcad4;
  --primary-dark: #e8899c;
  --secondary: #c9a0dc;
  --secondary-light: #dfc4eb;
  --secondary-dark: #a87bc5;
  --accent: #7bc8f6;
  --accent-light: #a5ddfb;
  --accent-dark: #5ab0e8;
  --success: #8ed16c;
  --gold: #f5d76e;
  --warning: #ff8fab;

  --bg-main: #fff9f5;
  --bg-cream: #fff5f8;
  --bg-gradient: linear-gradient(135deg, #fff9f5 0%, #fff0f5 50%, #f8f0ff 100%);

  --text-dark: #5d4e60;
  --text-medium: #9b8a9e;
  --text-light: #beb3c0;
  --card-bg: #ffffff;
  --border: #f0e6eb;
  --shadow: rgba(201, 160, 220, 0.15);

  --love-color: #f8a5b8;
  --like-color: #8ed16c;
  --neutral-color: #f5d76e;
  --dislike-color: #9b8a9e;
}

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

body {
  font-family: "Quicksand", sans-serif;
  background: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.7;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-gradient);
  background-image: var(--bg-gradient),
    radial-gradient(
      circle at 20% 30%,
      rgba(201, 160, 220, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(248, 165, 184, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: -1;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 249, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 4px 16px rgba(93, 78, 96, 0.12);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo svg {
  width: 36px;
  height: 36px;
}
.logo-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a {
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 9999px;
  transition: all 0.15s ease;
}
.nav a:hover {
  color: var(--primary);
  background: rgba(248, 165, 184, 0.1);
}
.nav a.active {
  color: var(--secondary-dark);
}
.nav-cta {
  color: white !important;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: white !important;
}
.nav-cta:hover {
  color: black !important;
}
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-menu-toggle span {
  width: 24px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 3px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(255, 249, 245, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  z-index: 999;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
}
.mobile-nav.active {
  display: block;
}
/* Force hide mobile-nav on desktop */
@media (min-width: 901px) {
  .mobile-nav {
    display: none !important;
  }
}
.mobile-nav a {
  display: block;
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.breadcrumb {
  max-width: 1000px;
  margin: 0 auto;
  padding: 5rem 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
}
.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}
.breadcrumb span {
  margin: 0 0.5rem;
}

.main-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 4rem;
}

.article-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.article-header h1 {
  font-family: "Fredoka", sans-serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-medium);
  flex-wrap: wrap;
}

.quick-answer {
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--secondary-light) 100%
  );
  border-radius: 20px;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  color: var(--text-dark);
}
.quick-answer h2 {
  font-family: "Fredoka", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.quick-answer p {
  font-weight: 500;
}

.gift-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 10px var(--shadow);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.legend-dot.love {
  background: var(--love-color);
}
.legend-dot.like {
  background: var(--like-color);
}
.legend-dot.neutral {
  background: var(--neutral-color);
}
.legend-dot.dislike {
  background: var(--dislike-color);
}

.content-section {
  margin-bottom: 3rem;
}
.content-section h2 {
  font-family: "Fredoka", sans-serif;
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.content-section h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 1.2rem;
  color: var(--text-dark);
  margin: 1.5rem 0 0.75rem;
}
.content-section p {
  margin-bottom: 1rem;
}

.npc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.npc-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 25px var(--shadow);
  transition: all 0.3s ease;
}

.npc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 35px rgba(201, 160, 220, 0.25);
}

.npc-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.npc-card.mentor .npc-header {
  background: linear-gradient(135deg, #f0fff0 0%, #e8f5e8 100%);
}
.npc-card.shopkeeper .npc-header {
  background: linear-gradient(135deg, #fffbf0 0%, #fff5e0 100%);
}
.npc-card.townsfolk .npc-header {
  background: linear-gradient(135deg, #f0f8ff 0%, #e8f0ff 100%);
}

.npc-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.npc-info h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 1.2rem;
  color: var(--text-dark);
  margin: 0;
}
.npc-role {
  font-size: 0.85rem;
  color: var(--text-medium);
}

.npc-content {
  padding: 1.25rem 1.5rem;
}

.gift-category {
  margin-bottom: 1rem;
}
.gift-category:last-child {
  margin-bottom: 0;
}

.gift-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.gift-label.love {
  color: #e8899c;
}
.gift-label.like {
  color: #5a9e3f;
}
.gift-label.dislike {
  color: var(--text-medium);
}

.gift-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.gift-tag {
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 15px;
  font-weight: 500;
}

.gift-tag.love {
  background: rgba(248, 165, 184, 0.2);
  color: var(--primary-dark);
}

.gift-tag.like {
  background: rgba(142, 209, 108, 0.2);
  color: #5a9e3f;
}

.gift-tag.dislike {
  background: rgba(155, 138, 158, 0.15);
  color: var(--text-medium);
}

.npc-link {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
}
.npc-link:hover {
  text-decoration: underline;
}

.gift-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
}

.gift-table th,
.gift-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.gift-table th {
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--secondary-light) 100%
  );
  font-weight: 600;
  color: var(--text-dark);
}

.gift-table tr:last-child td {
  border-bottom: none;
}
.gift-table tr:hover {
  background: rgba(248, 165, 184, 0.05);
}

.info-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 4px 20px var(--shadow);
}

.info-card.tip {
  border-left: 4px solid var(--success);
  background: linear-gradient(135deg, #f0fff0 0%, #f8fff8 100%);
}
.info-card.important {
  border-left: 4px solid var(--gold);
  background: linear-gradient(135deg, #fffef0 0%, #fffff8 100%);
}
.info-card.love {
  border-left: 4px solid var(--primary);
  background: linear-gradient(135deg, #fff0f5 0%, #fff8fa 100%);
}
.info-card h4 {
  font-family: "Fredoka", sans-serif;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px var(--shadow);
}
.faq-question {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.faq-answer {
  color: var(--text-medium);
  padding-left: 1rem;
}

.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.related-links a {
  display: block;
  background: var(--card-bg);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  box-shadow: 0 2px 10px var(--shadow);
  transition: all 0.2s ease;
}

.related-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow);
}

.footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2rem;
}
.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.footer-section h4 {
  font-family: "Fredoka", sans-serif;
  margin-bottom: 1rem;
  color: var(--primary-light);
}
.footer-section a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.3rem 0;
  transition: color 0.15s;
}
.footer-section a:hover {
  color: white;
}
.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}
.footer-legal a:hover {
  color: white;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  .npc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .article-header h1 {
    font-size: 1.8rem;
  }
  .gift-legend {
    flex-direction: column;
    gap: 0.75rem;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
