﻿/* NexCraft page – extra styles (from PHP inline) */
.nexcraft-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}
.nexcraft-hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .nexcraft-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}
.nexcraft-hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.3rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.05;
  color: #f9fafb;
  text-shadow: 2px 2px 0 #000000, 4px 4px 0 #0369A1;
}
.nexcraft-hero-sub {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 34rem;
}
.nexcraft-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.45);
  color: #BAE6FD;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.nexcraft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}
@media (max-width: 800px) {
  .nexcraft-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.nexcraft-card {
  background: linear-gradient(145deg, rgba(15,23,42,0.96), rgba(7,89,133,0.85));
  border-radius: 18px;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(14, 165, 233, 0.45);
  box-shadow: 0 18px 45px rgba(7, 89, 133, 0.7);
  position: relative;
  overflow: hidden;
}
.nexcraft-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image: linear-gradient(90deg, rgba(14,165,233,0.10) 1px, transparent 1px), linear-gradient(180deg, rgba(14,165,233,0.10) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.18;
}
.nexcraft-card-inner {
  position: relative;
  z-index: 1;
}
.nexcraft-card h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.7rem;
}
.nexcraft-card p {
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.7;
}
.nexcraft-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.nexcraft-btn {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 2px solid #0EA5E9;
  background: #0C4A6E;
  color: #E0F2FE;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 10px 0 #082F49;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, background 0.15s, border-color 0.15s;
}
.nexcraft-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 0 #082F49;
  background: #0284C7;
  border-color: #BAE6FD;
}
.nexcraft-btn:active {
  transform: translateY(1px);
  box-shadow: 0 6px 0 #082F49;
}
.nexcraft-hero-logo {
  position: relative;
  width: 100%;
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.nexcraft-hero-logo img {
  width: 100%;
  max-width: 300px;
  height: auto;
  animation: logo-float 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 132, 255, 0.3));
}
@keyframes logo-float {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 20px 40px rgba(14, 165, 233, 0.3)); }
  50% { transform: translateY(-12px) scale(1.03); filter: drop-shadow(0 30px 50px rgba(14, 165, 233, 0.45)); }
}
.nexcraft-section-title {
  margin: 3.5rem 0 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.nexcraft-placeholder-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
@media (max-width: 1000px) {
  .nexcraft-placeholder-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .nexcraft-placeholder-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
.nexcraft-placeholder-card {
  background: rgba(15,23,42,0.96);
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.28);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 12px 32px rgba(15,23,42,0.9);
}
.nexcraft-placeholder-card h3 {
  font-size: 1rem;
  margin-bottom: 0.55rem;
}
.nexcraft-placeholder-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.nexcraft-small-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.nexcraft-small-btn {
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.95);
  color: #e5e7eb;
  text-decoration: none;
}
.nexcraft-small-btn:hover {
  background: rgba(14,165,233,0.35);
  border-color: rgba(186,230,253,0.9);
}

/* Discord widget (discord.com/widget) */
.discord-widget-section {
  margin-bottom: 2.5rem;
  text-align: center;
}
.discord-widget-section .nexcraft-section-title {
  margin-bottom: 0.45rem;
}
.nexcraft-widget-lead {
  margin: 0 auto 1.2rem;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.discord-widget-frame {
  max-width: 420px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.45);
  box-shadow: 0 18px 45px rgba(7, 89, 133, 0.55);
  background: rgba(15, 23, 42, 0.75);
}
.discord-widget-frame iframe {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 500px;
  margin: 0 auto;
  border: 0;
  vertical-align: bottom;
}

/* Countdown Section */
.countdown-section {
  margin: 2.5rem 0;
  text-align: center;
}
.countdown-section h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #BAE6FD;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}
#countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.time-unit {
  background: linear-gradient(145deg, rgba(15,23,42,0.96), rgba(7,89,133,0.85));
  border-radius: 18px;
  padding: 1.5rem;
  border: 2px solid rgba(14, 165, 233, 0.45);
  box-shadow: 0 18px 45px rgba(7, 89, 133, 0.7);
  min-width: 100px;
  position: relative;
  overflow: hidden;
  animation: countdown-pulse 2s ease-in-out infinite;
}
.time-unit::before {
  content: "";
  position: absolute;
  inset: -40%;
  background-image: linear-gradient(90deg, rgba(14,165,233,0.10) 1px, transparent 1px), linear-gradient(180deg, rgba(14,165,233,0.10) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.18;
}
.time-unit .number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #E0F2FE;
  text-shadow: 0 0 20px rgba(14, 165, 233, 0.8), 0 0 40px rgba(14, 165, 233, 0.4);
  transition: text-shadow 0.5s ease, color 0.5s ease;
}
.time-unit .label {
  font-size: 0.8rem;
  color: #BAE6FD;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
}
.released, .error, .coming-soon {
  font-size: 1.5rem;
  color: #10B981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
.error {
  color: #EF4444;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}
.coming-soon {
  color: #F59E0B;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}
@keyframes countdown-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 18px 45px rgba(7, 89, 133, 0.7); }
  50% { transform: scale(1.02); box-shadow: 0 20px 50px rgba(7, 89, 133, 0.8); }
}
@keyframes number-glow {
  0% { text-shadow: 0 0 20px rgba(14, 165, 233, 0.8), 0 0 40px rgba(14, 165, 233, 0.4); }
  100% { text-shadow: 0 0 30px rgba(14, 165, 233, 1), 0 0 60px rgba(14, 165, 233, 0.6); }
}
@media (max-width: 600px) {
  #countdown-timer {
    gap: 0.5rem;
  }
  .time-unit {
    min-width: 80px;
    padding: 1rem;
  }
  .time-unit .number {
    font-size: 2rem;
  }
}

/* Modes Slider */
.modes-slider {
  margin: 2.5rem 0;
}
.slider-container {
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(15,23,42,0.96), rgba(7,89,133,0.85));
  border: 1px solid rgba(14, 165, 233, 0.45);
  box-shadow: 0 18px 45px rgba(7, 89, 133, 0.7);
}
.slide-header {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 2rem 0;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.mode-btn {
  background: rgba(15,23,42,0.96);
  border: 1px solid rgba(148,163,184,0.4);
  color: #e5e7eb;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}
.mode-btn:hover {
  background: rgba(14,165,233,0.35);
  border-color: rgba(186,230,253,0.9);
}
.mode-btn.active {
  background: #0EA5E9;
  border-color: #BAE6FD;
  color: #E0F2FE;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}
.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}
.mode-slide {
  min-width: 100%;
  padding: 1rem 2rem 2rem;
  box-sizing: border-box;
  position: relative;
}
.mode-slide h3 {
  font-size: 1.5rem;
  color: #BAE6FD;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: relative;
  z-index: 1;
}
.mode-slide p {
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
@media (max-width: 800px) {
  .slide-header {
    gap: 0.5rem;
  }
  .mode-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  .mode-slide {
    padding: 1.5rem;
  }
}
