/* =========================================
   Arab Throne — Home Page Styles
   ========================================= */

/* ─── Canvas / Particle Layer ───────────── */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── Hero Section ──────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

/* ── Background image layer (parallax moves this) ── */
.hero-bg {
  position: absolute;
  inset: -8%;          /* extra space so parallax never shows edges */
  z-index: 0;
  pointer-events: none;

  background-image: url('../assets/background.avif');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  /* Force GPU layer — no filter here so transform is free */
  will-change: transform;
  transform: translate3d(0, 0, 0);
  brightness: 0.5;
}

/* ── Blur + darken overlay — stays FIXED, no transform needed ── */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  /* blur is applied only on this static layer, not the moving one */
  backdrop-filter: blur(3px) brightness(0.48) saturate(1.1);
  -webkit-backdrop-filter: blur(3px) brightness(0.48) saturate(1.1);
  background: rgba(10,10,10,0.30);  /* extra darkness */
  pointer-events: none;
  z-index: 1;
}

/* ── Cinematic vignette overlay ── */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(10,10,10,0.60) 0%,
      rgba(10,10,10,0.05) 35%,
      rgba(10,10,10,0.05) 65%,
      rgba(10,10,10,0.80) 100%),
    radial-gradient(ellipse 80% 60% at 50% 50%,
      rgba(232,184,75,0.05) 0%,
      transparent 70%);
  pointer-events: none;
  z-index: 2;
}

/* Keep the gold radial glow + grid on TOP of the image */
.hero-radial-1 {
  position: absolute;
  width: 900px;
  height: 900px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  background: radial-gradient(circle, rgba(232,184,75,0.08) 0%, transparent 65%);
  z-index: 1;
}

.hero-radial-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  top: 60%;
  left: 20%;
  background: radial-gradient(circle, rgba(192,57,43,0.06) 0%, transparent 65%);
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,184,75,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,184,75,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 850px;
  margin: 0 auto;
}

/* Crown decoration */
.hero-crown {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(232,184,75,0.5));
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.25rem;
  border-radius: 100px;
  background: rgba(232,184,75,0.08);
  border: 1px solid rgba(232,184,75,0.3);
  color: var(--accent-gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
  animation: pulse-gold 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-title-line1 {
  display: inline;
  color: var(--text-primary);
}

.hero-title-line2 {
  display: inline;
  background: linear-gradient(135deg, var(--accent-gold-2) 0%, var(--accent-gold) 40%, var(--accent-red-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 100%;
  animation: fadeInUp 0.7s ease 0.4s both, shimmer 4s linear infinite;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.7s ease 0.6s both;
}

/* ─── Connect Widget (3-card IP selector) ─ */
.connect-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.7s ease 0.75s both;
  flex-wrap: wrap;
  row-gap: 0.75rem;
}

/* Separator "or" */
.connect-sep {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
  padding: 0 0.75rem;
  user-select: none;
}

/* Each card */
.connect-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-lg);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.7);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-width: 170px;
}

.connect-card:hover {
  transform: translateY(-3px);
}

/* Card header row */
.connect-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Badge pill */
.connect-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Port tag */
.connect-port-tag {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}

/* IP + Copy row */
.connect-card-body {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.connect-ip {
  font-family: 'Courier New', monospace;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  flex: 1;
}

/* Copy button */
.connect-copy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.connect-copy-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  transform: scale(1.1);
}

.connect-copy-btn.copied {
  background: rgba(46,204,113,0.15);
  border-color: rgba(46,204,113,0.4);
  color: #2ecc71;
}

/* Hint text */
.connect-card-hint {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.03em;
}

/* ── Bedrock card ── blue accent */
.connect-bedrock {
  border-color: rgba(52,152,219,0.25);
}
.connect-bedrock:hover {
  border-color: rgba(52,152,219,0.5);
  box-shadow: 0 8px 28px rgba(52,152,219,0.12);
}
.bedrock-badge {
  background: rgba(52,152,219,0.15);
  color: #5dade2;
  border: 1px solid rgba(52,152,219,0.25);
}

/* ── Cracked card ── orange accent */
.connect-cracked {
  border-color: rgba(230,126,34,0.25);
}
.connect-cracked:hover {
  border-color: rgba(230,126,34,0.5);
  box-shadow: 0 8px 28px rgba(230,126,34,0.12);
}
.cracked-badge {
  background: rgba(230,126,34,0.15);
  color: #e67e22;
  border: 1px solid rgba(230,126,34,0.25);
}

/* ── Premium card ── gold accent */
.connect-premium {
  border-color: rgba(232,184,75,0.3);
}
.connect-premium:hover {
  border-color: rgba(232,184,75,0.55);
  box-shadow: 0 8px 28px rgba(232,184,75,0.15);
}
.premium-badge {
  background: rgba(232,184,75,0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(232,184,75,0.3);
}

/* Responsive: stack vertically on mobile */
@media (max-width: 640px) {
  .connect-widget {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0 0.5rem;
  }
  .connect-sep { text-align: center; }
  .connect-card { min-width: unset; }
}


/* Status indicator */
.hero-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeInUp 0.7s ease 0.8s both;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  animation: pulse-green 2s ease-in-out infinite;
}

.status-dot.offline { background: #e74c3c; animation: none; }

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,204,113,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(46,204,113,0); }
}

.hero-player-count {
  color: var(--accent-gold);
  font-weight: 700;
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.9s both;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1.5s both;
  z-index: 2;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid rgba(232,184,75,0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.scroll-dot {
  width: 3px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 2px;
  animation: scroll-down 2s ease-in-out infinite;
}

@keyframes scroll-down {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ─── Stats Bar ─────────────────────────── */
.stats-bar {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0 2.5rem;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 36px;
  background: var(--border);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-gold-2), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 600px) {
  .stats-inner { flex-wrap: wrap; gap: 1.5rem; }
  .stat-item { padding: 0 1.5rem; }
  .stat-item::after { display: none; }
}

/* ─── Game Modes Section ────────────────── */
.game-modes {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 900px) {
  .modes-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}

.mode-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  group: true;
  transition: var(--transition-slow);
}

.mode-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 40px rgba(232,184,75,0.1);
}

.mode-card-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.mode-card:hover .mode-card-bg { transform: scale(1.08); }

.mode-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
  transition: var(--transition);
}

.mode-card:hover .mode-card-overlay {
  background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 60%, rgba(232,184,75,0.05) 100%);
}

.mode-card-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: var(--transition);
  pointer-events: none;
}

.mode-card:hover .mode-card-border {
  border-color: rgba(232,184,75,0.4);
  box-shadow: inset 0 0 30px rgba(232,184,75,0.05);
}

.mode-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.75rem;
  z-index: 2;
}

.mode-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  display: block;
  transition: transform 0.3s ease;
}

.mode-card:hover .mode-icon { transform: scale(1.15) rotate(-5deg); }

.mode-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.mode-badge.online { background: rgba(46,204,113,0.2); color: #2ecc71; border: 1px solid rgba(46,204,113,0.3); }
.mode-badge.coming { background: rgba(232,184,75,0.15); color: var(--accent-gold); border: 1px solid rgba(232,184,75,0.3); }

.mode-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.mode-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.mode-card:hover .mode-desc {
  max-height: 80px;
  opacity: 1;
}

.mode-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-gold);
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition);
}

.mode-card:hover .mode-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─── Features / Why Us Section ─────────── */
.features-section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--glow-card);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(232,184,75,0.08);
  border: 1px solid rgba(232,184,75,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: rgba(232,184,75,0.15);
  border-color: rgba(232,184,75,0.35);
  transform: scale(1.1);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── CTA Banner ────────────────────────── */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
  text-align: center;
}

.cta-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,184,75,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,184,75,0.02), transparent 50%, rgba(192,57,43,0.02));
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta-title span {
  background: linear-gradient(135deg, var(--accent-gold-2), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-desc {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
