/* =========================================
   FireSmp — Minecraft Server Website
   White Card Minimalist Style
   ========================================= */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'BigShoulders';
  src: url('../_shared/fonts/BigShoulders-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'BigShoulders';
  src: url('../_shared/fonts/BigShoulders-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'WorkSans';
  src: url('../_shared/fonts/WorkSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrainsMono';
  src: url('../_shared/fonts/JetBrainsMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrainsMono';
  src: url('../_shared/fonts/JetBrainsMono-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

/* ---------- CSS Variables ---------- */
:root {
  --bg: #f0f2f5;
  --bg2: #ffffff;
  --ink: #1a1a2e;
  --muted: #636e72;
  --rule: #e8e8e8;
  --accent: #4a9e5b;
  --accent2: #e17055;
  --accent-light: rgba(74, 158, 91, 0.08);
  --accent-hover: #3d8a4e;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 64px;
  --max-width: 1100px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
  font-family: 'WorkSans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ---------- Container ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'BigShoulders', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent);
}
.nav-logo-icon { font-size: 1.5rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: var(--transition);
  position: relative;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-light);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%;
  transform: translateX(-50%);
  width: 20px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- Mobile Nav Toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---------- Section ---------- */
.section {
  padding: 80px 0;
}
.section-alt {
  background: var(--bg2);
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-title {
  font-family: 'BigShoulders', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Card ---------- */
.card {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/background.png') center center / cover no-repeat;
  opacity: 0.25;
  mix-blend-mode: overlay;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(74, 158, 91, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(74, 158, 91, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(225, 112, 85, 0.2) 0%, transparent 50%);
}
.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 40px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-family: 'BigShoulders', sans-serif;
  font-weight: 700;
  font-size: clamp(3.5rem, 10vw, 6rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-shadow: 0 2px 40px rgba(74, 158, 91, 0.3);
}
.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  letter-spacing: 4px;
}
.hero-server-info {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
}
.hero-info-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-info-value {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  font-family: 'JetBrainsMono', monospace;
}
.hero-copy-btn {
  position: absolute;
  right: -32px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
  padding: 4px;
}
.hero-copy-btn:hover { opacity: 1; }
.hero-online {
  display: flex;
  align-items: center;
  gap: 8px;
}
.online-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse-dot 2s infinite;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 158, 91, 0.35);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  padding: 32px 24px;
  text-align: center;
}
.feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--accent-light);
  color: var(--icon-color);
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
}
.feature-title {
  font-family: 'BigShoulders', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Rules ---------- */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.rule-card {
  padding: 28px 24px;
  position: relative;
}
.rule-number {
  font-family: 'BigShoulders', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: 12px; right: 16px;
  line-height: 1;
}
.rule-title {
  font-family: 'BigShoulders', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.rule-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- Screenshots ---------- */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.screenshot-card {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
}
.screenshot-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.screenshot-card:hover img {
  transform: scale(1.05);
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  padding: 32px 20px;
  text-align: center;
}
.team-avatar {
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--avatar-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'BigShoulders', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.team-name {
  font-family: 'BigShoulders', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.team-role {
  display: inline-block;
  padding: 3px 12px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.team-desc {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: 'BigShoulders', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.social-link:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.footer-heading {
  font-family: 'BigShoulders', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 16px;
}
.footer-links ul li {
  margin-bottom: 10px;
}
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}
.footer-status {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-status-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
}
.footer-status-value {
  color: rgba(255,255,255,0.8);
  font-family: 'JetBrainsMono', monospace;
  font-size: 0.82rem;
}
.footer-online-status {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 12px 24px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 9999;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Page Hero (sub-pages) ---------- */
.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 30% 40%, rgba(74, 158, 91, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(225, 112, 85, 0.2) 0%, transparent 50%);
}
.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero-title {
  font-family: 'BigShoulders', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 8px;
}
.page-hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Quick Links (Home) ---------- */
.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quick-link-card {
  padding: 28px 20px;
  text-align: center;
  display: block;
  text-decoration: none;
  color: var(--ink);
}
.quick-link-card:hover {
  transform: translateY(-4px);
}
.quick-link-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  line-height: 1;
}
.quick-link-card h3 {
  font-family: 'BigShoulders', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.quick-link-card p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Stats (Home) ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-card {
  padding: 28px 16px;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: 'BigShoulders', sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- CTA Card (features) ---------- */
.cta-card {
  padding: 48px 32px;
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-color: rgba(255,255,255,0.08);
}
.cta-title {
  font-family: 'BigShoulders', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 8px;
}
.cta-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-outline-dark {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.25);
}
.btn-outline-dark:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* ---------- Punishment Levels (rules) ---------- */
.punishment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}
.punishment-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
}
.punishment-level {
  flex-shrink: 0;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  background: var(--level-color);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
}
.punishment-info h3 {
  font-family: 'BigShoulders', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.punishment-info p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Join Team (team) ---------- */
.join-team-card {
  padding: 40px 32px;
  max-width: 600px;
  margin: 0 auto;
}
.join-team-content h3 {
  font-family: 'BigShoulders', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  text-align: center;
  margin-bottom: 24px;
}
.join-team-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.join-team-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.join-team-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}
.join-team-list li strong {
  display: block;
  font-family: 'BigShoulders', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 2px;
}
.join-team-list li p {
  font-size: 0.88rem;
  color: var(--muted);
}
.join-team-footer {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .screenshots-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quick-links-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    border-bottom: 1px solid var(--rule);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  .nav-links a.active::after { display: none; }

  .section { padding: 56px 0; }
  .section-title { font-size: 1.8rem; }
  .hero-server-info { gap: 20px; }
  .hero-info-value { font-size: 1rem; }

  .features-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .screenshots-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .quick-links-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero-title { font-size: 2.2rem; }
  .punishment-item { flex-direction: column; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}