/* ── MMORealms.gg ── Page-Specific Styles ───────────────────────── */

/* ═══════════════════════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 64px; /* navbar offset */
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    rgba(10, 15, 20, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-accent);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero h1 span {
  color: var(--primary-accent);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   Feature Cards
   ═══════════════════════════════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-cyan);
  border-color: rgba(0, 212, 255, 0.25);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--primary-accent);
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   3D Card Tilt (for interactive feature showcases)
   ═══════════════════════════════════════════════════════════════ */
.tilt-card {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.tilt-card-inner {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

.tilt-card-content {
  transform: translateZ(40px);
}

.tilt-card-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.03) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  transform: translateZ(1px);
}

/* ═══════════════════════════════════════════════════════════════
   Install Page — Download Cards
   ═══════════════════════════════════════════════════════════════ */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.download-trio {
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .download-trio {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .download-trio {
    grid-template-columns: 1fr;
  }
}

.download-card {
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow var(--transition-medium), border-color var(--transition-medium);
}

.download-card:hover {
  box-shadow: var(--glow-cyan);
  border-color: rgba(0, 212, 255, 0.25);
}

.download-card.recommended {
  border-color: rgba(0, 212, 255, 0.4);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.15);
  position: relative;
}

.download-card.recommended:hover {
  box-shadow: var(--glow-cyan), 0 0 30px rgba(0, 212, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.5);
}

.recommended-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(0, 212, 255, 0.12);
  color: var(--primary-accent);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: 2px;
  margin-bottom: 0.75rem;
}

.download-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: var(--radius-sm);
  font-size: 1.75rem;
}

.download-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.download-card p {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.download-card .btn {
  margin-top: auto;
}

/* Platform badge styling */
.platform-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.platform-windows {
  background: rgba(0, 164, 239, 0.12);
  color: #00a4ef;
  border: 1px solid rgba(0, 164, 239, 0.2);
}

.platform-linux {
  background: rgba(255, 165, 0, 0.12);
  color: #ffa500;
  border: 1px solid rgba(255, 165, 0, 0.2);
}

.platform-macos {
  background: rgba(180, 180, 180, 0.12);
  color: #d4d4d4;
  border: 1px solid rgba(180, 180, 180, 0.2);
}

/* Install Guide Steps */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  position: relative;
}

.step:not(:last-child) {
  border-bottom: 1px solid rgba(0, 212, 255, 0.06);
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-accent);
}

.step-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.9375rem;
}

/* Existing users note */
.existing-users-note {
  text-align: center;
  margin-top: 2.5rem;
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: var(--radius-sm);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.existing-users-text {
  margin: 0 auto 0.75rem;
  font-size: 0.9375rem;
}

.ip-copy-row {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.ip-display {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary-accent);
  padding: 0.375rem 0.875rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 4px;
  color: var(--primary-accent);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-copy:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: var(--glow-cyan);
}

.btn-copy.copied {
  background: rgba(124, 228, 124, 0.12);
  border-color: rgba(124, 228, 124, 0.3);
  color: var(--secondary-accent);
}

/* ═══════════════════════════════════════════════════════════════
   Vote Page — Vote Cards
   ═══════════════════════════════════════════════════════════════ */
.vote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.vote-card {
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 2rem;
  text-align: center;
  transition: box-shadow var(--transition-medium), transform var(--transition-medium);
}

.vote-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-cyan);
}

.vote-site-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vote-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.vote-card p {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.vote-reward {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.15);
  border-radius: 2px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warning-gold);
  margin-bottom: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════
   Redirect Pages (Wiki / Store)
   ═══════════════════════════════════════════════════════════════ */
.redirect-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.redirect-card {
  background: var(--surface);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 100%;
}

.redirect-card .logo-glow {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-accent);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.redirect-card h2 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.redirect-card p {
  margin-bottom: 2rem;
}

.redirect-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1.5rem;
  border: 2px solid rgba(0, 212, 255, 0.2);
  border-top-color: var(--primary-accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════
   Community / Social Section
   ═══════════════════════════════════════════════════════════════ */
.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.social-link:hover {
  color: var(--primary-accent);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: var(--glow-cyan);
}

/* ═══════════════════════════════════════════════════════════════
   Installation Guide Pages (Modrinth / CurseForge)
   ═══════════════════════════════════════════════════════════════ */

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.breadcrumb-separator {
  color: rgba(143, 163, 179, 0.4);
}

/* Guide header */
.guide-header {
  margin-bottom: 3rem;
}

.guide-header h1 {
  margin-bottom: 0.75rem;
}

.guide-header p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  max-width: 65ch;
}

/* Guide step sections */
.guide-step {
  margin-bottom: 4rem;
}

.guide-step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.guide-step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d32f2f;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.guide-step-title {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  font-weight: 700;
  text-transform: none;
  letter-spacing: normal;
  margin: 0;
}

.guide-step p {
  font-size: clamp(0.9375rem, 1.5vw, 1rem);
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 70ch;
  margin-bottom: 1rem;
}

.guide-step ol,
.guide-step ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.guide-step ol li,
.guide-step ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: clamp(0.9375rem, 1.5vw, 1rem);
  color: var(--text-muted);
  line-height: 1.7;
}

.guide-step ol li::before {
  content: attr(data-step) '.';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--text-primary);
}

.guide-step ul li::before {
  content: '';
  position: absolute;
  left: 0.25rem;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: var(--primary-accent);
  border-radius: 50%;
}

.guide-step strong {
  color: var(--text-primary);
  font-weight: 600;
}

.guide-step a {
  color: #ff6b6b;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.guide-step a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Screenshot placeholder */
.guide-screenshot {
  background: var(--surface);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1.5rem 0;
}

.guide-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.guide-screenshot-caption {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid rgba(0, 212, 255, 0.06);
}

/* Guide CTA section at bottom */
.guide-cta-section {
  text-align: center;
  padding: 3rem 1.5rem;
  margin-top: 2rem;
}

.guide-cta-section h2 {
  margin-bottom: 1rem;
}

.guide-cta-section p {
  margin: 0 auto 1.5rem;
  max-width: 60ch;
}

.guide-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Guide content max width */
.guide-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Centered step variant */
.guide-step-centered {
  text-align: center;
}

.guide-step-centered .guide-step-header {
  justify-content: center;
}

.guide-step-centered p {
  margin-left: auto;
  margin-right: auto;
}

.guide-step-centered ol,
.guide-step-centered ul {
  display: inline-block;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

/* Centered step variant */
.guide-step-centered {
  text-align: center;
}

.guide-step-centered .guide-step-header {
  justify-content: center;
}

.guide-step-centered p {
  margin-left: auto;
  margin-right: auto;
}

.guide-step-centered ol,
.guide-step-centered ul {
  display: inline-block;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

/* Centered step variant */
.guide-step-centered {
  text-align: center;
}

.guide-step-centered .guide-step-header {
  justify-content: center;
}

.guide-step-centered p {
  margin-left: auto;
  margin-right: auto;
}

.guide-step-centered ol,
.guide-step-centered ul {
  display: inline-block;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

/* Centered step variant */
.guide-step-centered {
  text-align: center;
}

.guide-step-centered .guide-step-header {
  justify-content: center;
}

.guide-step-centered p {
  margin-left: auto;
  margin-right: auto;
}

.guide-step-centered ol,
.guide-step-centered ul {
  display: inline-block;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

/* ── Mobile Adjustments ── */
@media (max-width: 768px) {
  .guide-step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .guide-step-header {
    gap: 0.75rem;
  }

  .guide-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .guide-cta-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   ── Mobile Adjustments ──
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 8rem 0 4rem;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hero-stat-value {
    font-size: 1.5rem;
  }

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

  .feature-card {
    padding: 1.5rem;
  }

  .download-card,
  .vote-card {
    padding: 1.5rem;
  }

  .redirect-card {
    padding: 2rem 1.5rem;
  }

  .step {
    gap: 1rem;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }
}
