/* ==========================================================================
   DRX.BOT Website - Features Catalog & Detailed How-To Guides Stylesheet
   ========================================================================== */

/* --- Features Catalog Page --- */
.features-wrapper {
  font-family: 'Inter', sans-serif;
  padding: 6.5rem 0 5rem;
  min-height: calc(100vh - 300px);
  background: radial-gradient(circle at top center, rgba(251, 191, 36, 0.05) 0%, transparent 70%);
  color: var(--text-primary);
}

.features-wrapper .page-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}

.features-wrapper .page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: var(--cta);
  box-shadow: 0 0 15px var(--cta);
}

.features-wrapper .page-title {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: 1px;
  margin-bottom: 1rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.features-wrapper .page-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto;
}

.feature-jump-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 3rem;
}

.feature-jump-links a {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.feature-jump-links a:hover,
.feature-jump-links a:focus-visible {
  color: var(--secondary);
  border-color: var(--secondary);
}

.feature-section {
  margin-bottom: 3.5rem;
}

.section-title {
  scroll-margin-top: 96px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.5rem;
  color: var(--secondary);
  margin: 0 0 1.25rem;
}

.section-title::before {
  content: '//';
  color: var(--cta);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}

.feature-card {
  scroll-margin-top: 96px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.35rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.feature-card:hover,
.feature-card:focus-visible {
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.feature-card:target {
  border-color: var(--secondary);
  box-shadow: var(--neon-glow);
}

.feature-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature-card-icon {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  font-size: 1.3rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid var(--glass-border);
}

.feature-kicker {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.08);
}

.feature-card h3 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.2rem;
  margin: 0.35rem 0 0;
  color: var(--text-primary);
}

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

.feature-card-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0.2rem 0 0;
}

.feature-card-badges li {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.feature-card-link {
  margin-top: 0.35rem;
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 600;
}

.feature-cta {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.feature-cta h2 {
  font-family: 'Chakra Petch', sans-serif;
  margin: 0 0 0.75rem;
  color: var(--secondary);
}

.feature-cta p {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

/* --- Detailed Feature How-To Layout (.howto-shell) --- */
.howto {
  padding: 6.5rem 0 5rem;
  background: radial-gradient(circle at top center, rgba(251, 191, 36, 0.05) 0%, transparent 70%);
}

.howto-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.howto-side {
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  padding: 1.25rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  font-size: 0.9rem;
}

.howto-side-home {
  display: block;
  color: var(--secondary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.howto-side-cat {
  margin: 1rem 0 0.35rem;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.howto-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.howto-side li a {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.38rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  line-height: 1.35;
}

.howto-side li a span {
  width: 1.2em;
  text-align: center;
  flex: none;
}

.howto-side li a:hover {
  color: var(--secondary);
  background: rgba(251, 191, 36, 0.06);
  text-shadow: none;
}

.howto-side li a[aria-current="page"] {
  color: var(--secondary);
  background: rgba(251, 191, 36, 0.12);
  font-weight: 600;
}

.howto-main {
  min-width: 0;
  max-width: 820px;
  font-size: 1.06rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.howto-crumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.howto-crumbs a {
  color: var(--text-secondary);
}

.howto-hero {
  padding-bottom: 1.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.howto-icon {
  display: inline-grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 14px;
  font-size: 1.6rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid var(--glass-border);
  margin-bottom: 1rem;
}

.howto-hero h1 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.howto-intro {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0;
}

.howto-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1.1rem 0 0;
}

.howto-badges li {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.08);
}

.howto-block {
  margin-top: 2.5rem;
}

.howto-block h2 {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.45rem;
  color: var(--secondary);
  margin: 0 0 1rem;
}

.howto-block ul,
.howto-block ol {
  padding-left: 1.4rem;
  color: var(--text-secondary);
  margin: 0;
}

.howto-block li {
  margin-bottom: 0.55rem;
}

.howto-path {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0 !important;
  margin: 0 0 0.9rem !important;
}

.howto-path li {
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.howto-path li + li::before {
  content: '›';
  margin: 0 0.55rem 0 -0.25rem;
  color: var(--secondary);
}

.howto-where p {
  color: var(--text-secondary);
  margin: 0;
}

.howto-steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0 !important;
}

.howto-steps li {
  counter-increment: step;
  position: relative;
  padding: 0.85rem 1rem 0.85rem 3.4rem;
  margin-bottom: 0.7rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  color: var(--text-primary);
}

.howto-steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 0.85rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-gradient);
  color: #111;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
}

.howto-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.howto-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.howto-table th,
.howto-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--glass-border);
}

.howto-table tbody tr:last-child th,
.howto-table tbody tr:last-child td {
  border-bottom: 0;
}

.howto-table thead th {
  background: rgba(31, 41, 55, 0.6);
  color: var(--secondary);
  font-weight: 600;
}

.howto-table tbody th {
  width: 34%;
  color: var(--text-primary);
  font-weight: 600;
}

.howto-table td {
  color: var(--text-secondary);
}

.howto-tips {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--secondary);
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.05);
}

.howto-tips h2 {
  font-size: 1.2rem;
}

.howto-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
}

.howto-related a {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.65rem;
  padding: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.howto-related a:hover {
  border-color: var(--secondary);
}

.howto-related span {
  grid-row: span 2;
  font-size: 1.3rem;
}

.howto-related small {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.howto-cta {
  margin-top: 3rem;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.howto-cta p {
  flex: 1 1 260px;
  margin: 0;
  color: var(--text-secondary);
}

.howto-cta-link {
  color: var(--secondary);
}

@media (max-width: 900px) {
  .howto {
    padding-top: 6rem;
  }
  .howto-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }
  .howto-side {
    position: static;
    max-height: none;
    order: 2;
  }
  .howto-main {
    order: 1;
  }
  .howto-table tbody th {
    width: 38%;
  }
}

@media (max-width: 768px) {
  .features-wrapper {
    padding: 5.5rem 0 3rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}
