/* ─── Interior page shared styles ──────────────────────── */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Page atmosphere */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(39, 102, 64, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 10%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
    var(--swamp-void);
  pointer-events: none;
}

main {
  padding-bottom: 80px;
  position: relative;
  z-index: 1;
}

/* ─── Page hero ─────────────────────────────────────────── */

.page-hero {
  padding-top: 52px;
  padding-bottom: 40px;
  animation: fade-up 0.6s ease both;
}

.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--phosphor);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.page-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--phosphor);
  box-shadow: 0 0 8px var(--phosphor);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--fog);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--reed);
  line-height: 1.75;
  max-width: 600px;
}

/* ─── Breadcrumb ────────────────────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--dusk);
  padding-top: 28px;
  margin-bottom: 0;
}

.breadcrumb a {
  color: var(--dusk);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.breadcrumb span {
  color: var(--swamp-muted);
}

/* ─── Section divider label ─────────────────────────────── */

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dusk);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--swamp-surface);
}

/* ─── Content section ───────────────────────────────────── */

.content-section {
  margin-bottom: 3rem;
  animation: fade-up 0.6s ease both;
}

.content-section h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fog);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

/* ─── Uses grid ─────────────────────────────────────────── */

.uses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.uses-card {
  background: var(--swamp-dark);
  border: 1px solid var(--swamp-surface);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.3s ease;
  animation: fade-up 0.6s ease both;
}

.uses-card:hover {
  border-color: var(--swamp-muted);
}

.uses-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.uses-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(93, 222, 134, 0.07);
  border: 1px solid rgba(93, 222, 134, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--phosphor);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.uses-card h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--fog);
  margin: 0;
  letter-spacing: -0.01em;
}

.uses-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.uses-list li {
  font-size: 0.9rem;
  color: var(--reed);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.uses-list li::before {
  content: '→';
  color: var(--phosphor-dim);
  flex-shrink: 0;
  margin-top: 0.05em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.uses-list a {
  color: var(--reed);
  text-decoration: none;
  transition: color 0.2s ease;
}

.uses-list a:hover {
  color: var(--phosphor);
}

/* ─── Resource items (coding-resources) ─────────────────── */

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--swamp-surface);
  border-radius: 14px;
  overflow: hidden;
}

.resource-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 20px 24px;
  background: var(--swamp-dark);
  text-decoration: none;
  transition: background 0.2s ease;
  border-bottom: 1px solid var(--swamp-surface);
}

.resource-item:last-child {
  border-bottom: none;
}

.resource-item:hover {
  background: var(--swamp-mid);
}

.resource-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--swamp-muted);
  flex-shrink: 0;
  margin-top: 6px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.resource-item:hover .resource-dot {
  background: var(--phosphor);
  box-shadow: 0 0 8px var(--phosphor);
}

.resource-body {
  flex: 1;
  min-width: 0;
}

.resource-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fog);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.resource-desc {
  font-size: 0.82rem;
  color: var(--dusk);
  line-height: 1.5;
}

.resource-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  border: 1px solid;
  flex-shrink: 0;
  margin-top: 2px;
}

.resource-badge--free {
  color: var(--phosphor);
  border-color: rgba(93, 222, 134, 0.3);
  background: rgba(93, 222, 134, 0.06);
}

.resource-badge--paid {
  color: var(--amber);
  border-color: rgba(201, 168, 76, 0.3);
  background: rgba(201, 168, 76, 0.06);
}

/* ─── Responsive ────────────────────────────────────────── */

@media (max-width: 768px) {
  .page-hero {
    padding-top: 36px;
    padding-bottom: 28px;
  }

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

  .resource-item {
    padding: 16px 18px;
  }
}
