/* ==============================================
   Infinity Nikki Guide - Mintlify-Style CSS
   ============================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #ffffff;
  color: #0d0d0d;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #18E299;
}

ul, ol {
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.25rem;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #0d0d0d;
}

h1 {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -1.0px;
  line-height: 1.15;
}

h2 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.24px;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

p {
  color: #333333;
  margin-bottom: 1rem;
}

small, .text-small {
  font-size: 14px;
  color: #666666;
}

.text-muted {
  color: #666666;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section-lg {
  padding: 96px 0;
}

/* --- Navbar --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #0d0d0d;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo:hover {
  color: #18E299;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  background: #18E299;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #666666;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #18E299;
}

.nav-cta {
  background: #0d0d0d;
  color: #ffffff !important;
  padding: 8px 24px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.nav-cta:hover {
  opacity: 0.85;
  color: #ffffff !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #0d0d0d;
}

/* --- Hero --- */
.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(ellipse at center, rgba(24, 226, 153, 0.12) 0%, rgba(24, 226, 153, 0.04) 40%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero p {
  font-size: 20px;
  color: #666666;
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(24, 226, 153, 0.1);
  color: #0d0d0d;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 24px;
  box-shadow: 0 0 0 1px rgba(24, 226, 153, 0.2);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: #18E299;
  border-radius: 50%;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 500;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: #0d0d0d;
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.85;
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: #0d0d0d;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

.btn-secondary:hover {
  background: rgba(0,0,0,0.04);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.16);
}

.btn-green {
  background: #18E299;
  color: #0d0d0d;
}

.btn-green:hover {
  opacity: 0.85;
  color: #0d0d0d;
}

/* --- Cards --- */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 4px 24px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  color: #666666;
  margin-bottom: 16px;
}

.card-link {
  font-size: 14px;
  font-weight: 500;
  color: #0d0d0d;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-link:hover {
  color: #18E299;
}

.card-link-arrow {
  transition: transform 0.2s ease;
}

.card-link:hover .card-link-arrow {
  transform: translateX(4px);
}

.card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
  background: rgba(24, 226, 153, 0.1);
  color: #0d0d0d;
}

/* --- Grids --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  max-width: 560px;
  margin: 0 auto;
  color: #666666;
}

/* --- Updates / Timeline --- */
.update-item {
  padding: 20px 0;
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.05);
}

.update-item:last-child {
  box-shadow: none;
}

.update-date {
  font-size: 13px;
  font-weight: 500;
  color: #18E299;
  margin-bottom: 4px;
}

.update-title {
  font-size: 16px;
  font-weight: 500;
  color: #0d0d0d;
  margin-bottom: 4px;
}

.update-desc {
  font-size: 14px;
  color: #666666;
}

/* --- Footer --- */
.footer {
  background: #ffffff;
  box-shadow: 0 -1px 0 0 rgba(0,0,0,0.05);
  padding: 48px 0 32px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 14px;
  color: #666666;
  margin-top: 8px;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: #0d0d0d;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 14px;
  color: #666666;
}

.footer-col ul li a:hover {
  color: #18E299;
}

.footer-bottom {
  padding-top: 24px;
  box-shadow: 0 -1px 0 0 rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: #666666;
  margin: 0;
}

/* --- Guide Page Specific --- */
.page-header {
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(24, 226, 153, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-header h1 {
  margin-bottom: 12px;
}

.page-header p {
  font-size: 18px;
  color: #666666;
  max-width: 600px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666666;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: #666666;
}

.breadcrumb a:hover {
  color: #18E299;
}

.breadcrumb-sep {
  color: #ccc;
}

/* --- Content Sections --- */
.content-section {
  padding: 48px 0;
}

.content-section:not(:last-child) {
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.05);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* Entry card for lists (outfits, materials, bosses) */
.entry-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entry-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.entry-card-header h3 {
  margin-bottom: 0;
  flex: 1;
}

.entry-rarity {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  white-space: nowrap;
}

.rarity-5 {
  background: #FFF0D0;
  color: #B8860B;
}

.rarity-4 {
  background: #E8D5FF;
  color: #7B2FBE;
}

.rarity-3 {
  background: #D0E8FF;
  color: #1E6FA0;
}

.entry-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.entry-stat {
  font-size: 13px;
  color: #666666;
  display: flex;
  align-items: center;
  gap: 4px;
}

.entry-stat strong {
  color: #0d0d0d;
  font-weight: 600;
}

.entry-desc {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
}

.entry-location {
  font-size: 14px;
  color: #0d0d0d;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Tips Section --- */
.tip-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease;
}

.tip-card:hover {
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 4px 24px rgba(0,0,0,0.04);
}

.tip-number {
  font-size: 32px;
  font-weight: 700;
  color: #18E299;
  line-height: 1;
  min-width: 40px;
  opacity: 0.5;
}

.tip-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.tip-content p {
  font-size: 15px;
  color: #666666;
  margin-bottom: 0;
}

/* --- Boss Strategy --- */
.boss-section {
  margin-bottom: 48px;
}

.boss-section:last-child {
  margin-bottom: 0;
}

.boss-name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.boss-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.boss-tag {
  font-size: 13px;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(0,0,0,0.04);
  color: #666666;
}

.boss-tag.boss-tag-green {
  background: rgba(24, 226, 153, 0.1);
  color: #0d0d0d;
}

.boss-strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.strategy-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
}

.strategy-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.strategy-card ul {
  list-style: none;
  padding: 0;
}

.strategy-card ul li {
  font-size: 14px;
  color: #666666;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.strategy-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #18E299;
  font-weight: 700;
}

.reward-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reward-item {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(24, 226, 153, 0.1);
  color: #0d0d0d;
  font-weight: 500;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 36px;
    letter-spacing: -0.6px;
  }
  h2 {
    font-size: 26px;
    letter-spacing: -0.4px;
  }

  .section, .section-lg {
    padding: 48px 0;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .hero p {
    font-size: 18px;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .boss-strategy-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.05);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .page-header {
    padding: 48px 0 32px;
  }

  .page-header h1 {
    font-size: 32px;
  }

  .boss-name {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 28px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .entry-card-header {
    flex-direction: column;
  }
}
