/* Guides page — dark utility theme */

.view-walk {
  background: #060a14;
}

.view-walk .tt-main {
  background: #060a14;
}

.view-walk .path-crumb ol {
  color: #64748b;
}

.view-walk .path-crumb ol li[aria-hidden="true"] {
  color: #334155;
}

.view-walk .path-crumb ol span[aria-current="page"] {
  color: #f1f5f9;
  font-weight: 500;
}

/* Body copy */
.guide-body {
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.guide-body--sm {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.guide-body a,
.guide-step__text a {
  color: #60a5fa;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.guide-body a:hover,
.guide-step__text a:hover {
  color: #93c5fd;
}

/* Table of contents */
.guides-toc {
  background: #0b1120;
  border-bottom: 1px solid rgba(59, 130, 246, 0.12);
}

.guides-toc-inner h2 {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 1.25rem;
}

.guides-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.625rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.guides-toc-grid a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 0.375rem;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.guides-toc-grid a::before {
  content: "";
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
  transition: transform 0.2s ease;
}

.guides-toc-grid a:hover {
  color: #f1f5f9;
  border-color: rgba(59, 130, 246, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.15);
}

.guides-toc-grid a:hover::before {
  transform: scale(1.25);
}

/* Section blocks */
.guides-section {
  position: relative;
}

.guides-section-alt {
  background: linear-gradient(180deg, #0b1120 0%, #0f172a 50%, #0b1120 100%);
}

.guides-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f1f5f9;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #3b82f6, transparent) 1;
}

/* Main feature card */
.guide-card-main {
  position: relative;
  overflow: hidden;
  background: #0f172a !important;
  border: 1px solid rgba(59, 130, 246, 0.14) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}

.guide-card-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #38bdf8, #3b82f6);
  background-size: 200% 100%;
  animation: guide-shimmer 4s ease infinite;
}

@keyframes guide-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.guide-card-main:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.28) !important;
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.15) !important;
}

.guide-card-main .flow-img {
  border-radius: 0.375rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.guide-card-main:hover .flow-img {
  transform: scale(1.01);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.2);
}

/* Steps */
.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide-step {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.125rem;
  background: #0b1120;
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 0.375rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.guide-step:hover {
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
  transform: translateX(3px);
}

html[dir="rtl"] .guide-step:hover {
  transform: translateX(-3px);
}

.guide-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 800;
  font-family: "JetBrains Mono", monospace;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 0.25rem;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.35);
}

.guide-step__title,
.guide-step h3 {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #f1f5f9;
  margin: 0 0 0.35rem;
}

.guide-step__text,
.guide-step p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0;
}

/* Info pair cards */
.guide-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.guide-info-card {
  position: relative;
  padding: 1.25rem;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 0.375rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.guide-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, transparent);
  opacity: 0.7;
}

.guide-info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.guide-info-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.75rem;
  padding-left: 0.625rem;
  border-left: 2px solid #3b82f6;
}

html[dir="rtl"] .guide-info-card h3 {
  padding-left: 0;
  padding-right: 0.625rem;
  border-left: none;
  border-right: 2px solid #3b82f6;
}

.guide-info-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  color: #94a3b8;
  line-height: 1.65;
}

.guide-info-card li {
  margin-bottom: 0.4rem;
}

.guide-info-card strong {
  color: #7dd3fc;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
}

/* Callouts */
.guide-callout {
  padding: 1.25rem 1.125rem;
  border-radius: 0.375rem;
  position: relative;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.guide-callout::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, rgba(245, 158, 11, 0.15));
}

.guide-callout-warning {
  border-color: rgba(245, 158, 11, 0.25);
}

.guide-callout-warning::after {
  content: "!";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.875rem;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 0.25rem;
}

html[dir="rtl"] .guide-callout-warning::after {
  right: auto;
  left: 1rem;
}

.guide-callout h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
  padding-right: 2.5rem;
}

html[dir="rtl"] .guide-callout h3 {
  padding-right: 0;
  padding-left: 2.5rem;
}

.guide-callout p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0;
}

/* Troubleshooting fix cards */
.guide-fix-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guide-fix-card {
  padding: 1.125rem 1.25rem 1.125rem 1.375rem;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 0.375rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
}

.guide-fix-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: rgba(100, 116, 139, 0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.guide-fix-card:hover {
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.guide-fix-card:hover::before {
  background: linear-gradient(180deg, #3b82f6, #38bdf8);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

html[dir="rtl"] .guide-fix-card {
  padding-left: 1.25rem;
  padding-right: 1.375rem;
}

html[dir="rtl"] .guide-fix-card::before {
  left: auto;
  right: 0;
  border-radius: 2px 0 0 2px;
}

.guide-fix-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}

.guide-fix-card p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0 0 0.5rem;
}

.guide-fix-solution {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #7dd3fc !important;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 0.25rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.guide-fix-solution::before {
  content: "✓";
  flex-shrink: 0;
  font-weight: 800;
  color: #34d399;
}

/* Antivirus / large content card */
.guide-card-panel {
  padding: 1.5rem;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 0.375rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.guide-card-panel:hover {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.1);
}

.guide-card-panel h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.75rem;
}

.guide-card-panel ol {
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
  color: #94a3b8;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.guide-card-panel ol li {
  margin-bottom: 0.35rem;
}

.guide-card-panel ol li::marker {
  color: #60a5fa;
}

/* Tip cards grid */
.guide-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}

.guide-tip-card {
  position: relative;
  padding: 1.25rem;
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 0.375rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.guide-tip-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, transparent);
  opacity: 0.6;
  transition: opacity 0.25s ease;
}

.guide-tip-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}

.guide-tip-card:hover::before {
  opacity: 1;
}

.guide-tip-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}

.guide-tip-card p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .guide-card-main::before {
    animation: none !important;
  }

  .guide-step:hover,
  .guide-info-card:hover,
  .guide-fix-card:hover,
  .guide-tip-card:hover,
  .guide-card-main:hover {
    transform: none;
  }
}
