/* ========== CONTENT PAGES (inner pages) ========== */

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1000;
  margin-top: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown-menu a:hover {
  background: rgba(74, 155, 217, 0.1);
  color: var(--accent);
}

/* Page Hero */
.page-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(74, 155, 217, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-hero .hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .separator {
  color: var(--text-secondary);
  opacity: 0.5;
}

.breadcrumb .current {
  color: var(--accent);
}

/* Content Body */
.content-section {
  padding: 80px 0;
}

.content-section--alt {
  background: var(--dark-surface);
}

.content-body {
  max-width: 800px;
  margin: 0 auto;
}

.content-body h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
}

.content-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
}

.content-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.content-body ul,
.content-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.content-body li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.content-body li::marker {
  color: var(--accent);
}

.content-body strong {
  color: #fff;
  font-weight: 600;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  padding: 32px 24px;
  border-radius: 16px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: rgba(74, 155, 217, 0.3);
  transform: translateY(-4px);
}

.feature-card .feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 0;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  counter-reset: step;
}

.process-step {
  text-align: center;
  padding: 32px 16px;
  position: relative;
  counter-increment: step;
}

.process-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-green));
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}

.process-step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Tech Stack */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tech-tag {
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color 0.3s, color 0.3s;
}

.tech-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Article Layout */
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.article-meta .tag {
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(74, 155, 217, 0.15);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.8rem;
}

.article-meta .date,
.article-meta .reading-time {
  color: var(--text-secondary);
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
}

.article-body h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 48px;
  margin-bottom: 20px;
}

.article-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.article-body ul,
.article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.article-body li::marker {
  color: var(--accent);
}

.article-body strong {
  color: #fff;
  font-weight: 600;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Related Section */
.related-section {
  padding: 80px 0;
  background: var(--dark-surface);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 140px 0 60px;
  }
  .page-hero h1 {
    font-size: 2rem;
  }
  .content-section {
    padding: 60px 0;
  }
  .content-body h2,
  .article-body h2 {
    font-size: 1.6rem;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    background: transparent;
    border: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
    min-width: auto;
  }
  .nav-dropdown-menu a {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
  .dropdown-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .page-hero h1 {
    font-size: 1.7rem;
  }
  .breadcrumb {
    font-size: 0.75rem;
  }
}
