/* ==========================================================================
   GUIDE.CSS — Guide Page Styles | The Isle Cheats
   ========================================================================== */

/* ─── Guide Header ────────────────────────────────────────────────────────── */
.guide-header {
  padding: 52px 0 44px;
  border-bottom: none;
}

.guide-header-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.guide-header .guide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 20px;
}

.guide-header h1 {
  font-size: clamp(1.6rem, 1.15rem + 2.4vw, 3rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.guide-header .guide-lead {
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.08rem);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 900px;
}

/* ─── E-E-A-T Author Byline ───────────────────────────────────────────────── */
.guide-author {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-top: 32px;
}

.guide-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A855F7 0%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.guide-author-info { flex: 1; }
.guide-author-name { font-size: 0.92rem; font-weight: 700; color: var(--text-main); }
.guide-author-role { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.guide-author-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.guide-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.guide-badge-verified { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.25); color: #22c55e; }
.guide-badge-updated  { background: rgba(168,85,247,.12); border: 1px solid rgba(168,85,247,.25); color: var(--accent-primary); }

/* ─── Guide Layout ────────────────────────────────────────────────────────── */
.guide-page { padding: 0 0 80px; }

.guide-body {
  max-width: 1280px;
  margin: 48px auto 0;
  padding: 0 24px;
}

/* ─── Anti-Cheat Article (top of guide) ───────────────────────────────────── */
.guide-article {
  margin-bottom: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-color);
}

.guide-article h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 36px 0 14px;
  line-height: 1.3;
}

.guide-article h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 24px 0 10px;
  line-height: 1.4;
}

.guide-article p {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 14px;
}

.guide-article ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guide-article ul li {
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

.guide-article ul li::before {
  content: '•';
  color: var(--accent-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.guide-article .guide-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(168, 85, 247, 0.06);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 18px 0 22px;
  line-height: 1.65;
}

.guide-setup-heading {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 12px;
  line-height: 1.3;
}

.guide-setup-lead {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ─── Steps ───────────────────────────────────────────────────────────────── */
.guide-steps { margin-bottom: 64px; }

.guide-steps-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-steps-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.guide-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 24px;
  margin-bottom: 0;
  position: relative;
}

.guide-step:not(:last-child) .step-connector { display: block; }
.step-connector { display: none; }

.guide-step-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.guide-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}

.guide-step-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, rgba(168,85,247,.4), transparent);
  margin: 8px 0;
  min-height: 32px;
}

.guide-step-right { padding-bottom: 36px; }

.guide-step-right h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  margin-top: 8px;
}

.guide-step-right p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 14px;
}

.guide-step-code {
  background: rgba(0,0,0,0.45);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: #e2e8f0;
  overflow-x: auto;
  margin-top: 12px;
}

.guide-step-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(168, 85, 247, 0.06);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.guide-step-note .note-icon { flex-shrink: 0; margin-top: 0; }

/* ─── Troubleshooting Table ───────────────────────────────────────────────── */
.troubleshoot-section { margin-bottom: 64px; }

.troubleshoot-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.troubleshoot-title::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }

.troubleshoot-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.troubleshoot-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  background: rgba(168, 85, 247, 0.05);
}

.troubleshoot-table td {
  padding: 14px 16px;
  color: var(--text-body);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
  line-height: 1.6;
}

.troubleshoot-table tr:last-child td { border-bottom: none; }
.troubleshoot-table tr:hover td { background: rgba(168,85,247,.04); }

.error-code {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f87171;
  background: rgba(248,113,113,.08);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* ─── Related Resources ───────────────────────────────────────────────────── */
.guide-resources { margin-bottom: 64px; }

.guide-resources-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.guide-resources-title::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }

.guide-resources-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 820px;
  margin: 0 0 28px;
}

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

.guide-resource-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.guide-resource-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-purple);
}

.guide-resource-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(168, 85, 247, 0.06);
}

.guide-resource-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.guide-resource-card:hover .guide-resource-image img {
  transform: scale(1.05);
}

.guide-resource-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
  flex: 1;
}

.guide-resource-icon {
  /* uses shared .icon-box from theme.css when combined */
  margin-bottom: 4px;
}

.guide-resource-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
}

.guide-resource-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin: 0;
}

.guide-resource-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.guide-resource-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.guide-resource-link:hover { gap: 10px; color: var(--accent-hover); }

/* ─── Guide CTA ───────────────────────────────────────────────────────────── */
.guide-cta-box {
  background: linear-gradient(135deg, rgba(24,20,37,1) 0%, rgba(35,16,63,1) 100%);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.guide-cta-box::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(168,85,247,.2), transparent 70%);
  border-radius: 50%;
}

.guide-cta-box h3 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
}

.guide-cta-box p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (min-width: 1920px) {
  .guide-header-inner,
  .guide-author,
  .guide-content { max-width: 1280px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 1366px) {
  .guide-header { padding: 44px 0 36px; }
}

/* Tablets — resource grids collapse gracefully */
@media (max-width: 820px) {
  .guide-resources-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .guide-author { flex-direction: column; align-items: flex-start; }
  .guide-author-badges { margin-top: 8px; }
  .guide-cta-box { padding: 32px 20px; }
  .guide-cta-box h3 { font-size: clamp(1.15rem, 3vw, 1.3rem); }
}

@media (max-width: 430px) {
  .guide-resources-grid { grid-template-columns: 1fr; }
  .guide-header h1 { font-size: clamp(1.45rem, 6.5vw, 1.7rem); }
  .troubleshoot-table { font-size: 0.82rem; }
  .troubleshoot-table th,
  .troubleshoot-table td { padding: 10px 12px; }
  .guide-cta-box { padding: 28px 16px; }
}

@media (max-width: 375px) {
  .guide-header { padding: 32px 0 28px; }
  .guide-cta-box { padding: 24px 14px; }
  .troubleshoot-table th,
  .troubleshoot-table td { padding: 8px 10px; }
}
