@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg-dark:       #0d0a06;
  --bg-medium:     #1a1208;
  --bg-card:       #211808;
  --bg-card-hover: #2c2010;
  --bg-panel:      #17100a;
  --border:        #4a3510;
  --border-gold:   #8b6914;
  --border-bright: #c8960c;
  --gold:          #f0c040;
  --gold-light:    #ffd878;
  --gold-dim:      #a07820;
  --accent-red:    #c0392b;
  --text:          #e8d5a8;
  --text-dim:      #8a7050;
  --text-bright:   #fff8e8;
  --shadow:        0 8px 24px rgba(0, 0, 0, 0.7);
  --radius:        10px;
  --radius-sm:     6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', Georgia, serif;
  background: var(--bg-dark);
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(100,60,0,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(80,40,0,0.10) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23362010' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-gold); border-radius: 3px; }
* { scrollbar-width: thin; scrollbar-color: var(--border-gold) var(--bg-dark); }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gold);
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-light);
}

/* ========== PARTICLES ========== */
.particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particle {
  position: absolute;
  bottom: -10px;
  width: 4px; height: 4px;
  background: var(--gold-dim);
  border-radius: 50%;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ========== NAVBAR ========== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(to bottom, #110d05, #1a1208);
  border-bottom: 2px solid var(--border-gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 1px 0 var(--gold-dim);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(240,192,64,0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-family: 'Cinzel', serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--gold);
  color: #0d0a06;
}

.btn-primary:hover {
  background: var(--gold-light);
  color: #0d0a06;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(240,192,64,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 12px 28px;
  font-size: 1rem;
  border-radius: var(--radius);
}

/* ========== HERO ========== */
.hero {
  padding: 80px 2rem 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(200,150,12,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 2px;
  margin: 0 auto 1.2rem;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(240,192,64,0.3), 0 2px 4px rgba(0,0,0,0.8);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-image {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow), 0 0 0 1px rgba(200,150,12,0.15);
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
}

.hero-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(transparent, var(--bg-dark));
}

/* ========== SECTIONS ========== */
section {
  padding: 80px 2rem;
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-gold);
  padding: 3px 10px;
  border-radius: 3px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ========== FEATURE GRID ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}

.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 0 1px rgba(200,150,12,0.2), 0 0 20px rgba(200,150,12,0.1);
}

.feature-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  filter: brightness(0.75) sepia(0.3);
  transition: filter 0.3s;
}

.feature-card:hover .feature-card-img {
  filter: brightness(0.9) sepia(0.15);
}

.feature-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.85rem;
  align-items: center;
}

.feature-icon {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
}

.feature-card h3 {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.05rem;
  margin-bottom: 0;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.feature-card p {
  grid-column: 1 / -1;
  grid-row: 2;
  color: var(--text-dim);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 0.75rem;
}

.feature-tag,
.feature-card-body .cmd {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: start;
  margin-top: 1rem;
}

.feature-tag {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 600;
  background: rgba(240,192,64,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(139,105,20,0.4);
  letter-spacing: 0.5px;
}

/* ========== HOW IT WORKS ========== */
.how-bg {
  background: var(--bg-medium);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.step {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #0d0a06;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(200,150,12,0.3);
}

.step-content h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ========== FOOTER ========== */
footer {
  border-top: 2px solid var(--border-gold);
  padding: 2.5rem 2rem;
  text-align: center;
  background: linear-gradient(to top, #110d05, var(--bg-medium));
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

footer p {
  color: var(--text-dim);
  font-size: 0.85rem;
}

footer a {
  color: var(--gold-dim);
}
footer a:hover {
  color: var(--gold);
}

/* ========== GET STARTED / RULES PAGE ========== */
.gs-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  padding: 3rem 2rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.gs-sidebar {
  position: sticky;
  top: 84px;
}

.gs-sidebar nav {
  background: transparent;
  border-bottom: none;
  position: static;
  padding: 0;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
}

.gs-sidebar-title {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  padding: 0 0.5rem;
}

.gs-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gs-nav-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: all 0.2s;
  border-left: 2px solid transparent;
}

.gs-nav-links a:hover,
.gs-nav-links a.active {
  color: var(--gold);
  background: var(--bg-card);
  border-left-color: var(--border-gold);
}

.gs-nav-links .icon {
  font-size: 1rem;
  width: 18px;
  text-align: center;
}

/* ========== GET STARTED CONTENT ========== */
.gs-content {
  min-width: 0;
}

.gs-section {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.gs-section:last-child {
  border-bottom: none;
}

.gs-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.5rem;
}

.gs-section-icon {
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gs-section h2 {
  font-size: 1.6rem;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(200,150,12,0.2);
}

.gs-section p {
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

.gs-section img {
  width: 100%;
  margin: 1.5rem 0;
  display: block;
}

/* ========== COMMAND BLOCK ========== */
.cmd-block {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.cmd-block-title {
  font-family: 'Cinzel', serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.cmd-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cmd-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.875rem;
}

.cmd {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  color: var(--gold);
  background: rgba(240,192,64,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(139,105,20,0.4);
  white-space: nowrap;
  flex-shrink: 0;
}

.cmd-desc {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ========== INFO CARDS ========== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  transition: border-color 0.2s;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  align-items: center;
  margin-bottom: 7px;
}

.info-card:hover {
  border-color: var(--gold);
}

.info-card-icon {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
}

.info-card h4 {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.info-card p {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0;
  margin-top: 0.5rem;
}

/* ========== TABLE ========== */
.gs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.gs-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.gs-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text);
  vertical-align: top;
}

.gs-table tr:nth-child(even) td {
  background: rgba(255, 200, 50, 0.03);
}

.gs-table .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-green  { background: rgba(76,175,125,0.15);  color: #4caf7d; }
.badge-gold   { background: rgba(240,192,64,0.15);  color: var(--gold); }
.badge-red    { background: rgba(192,57,43,0.15);   color: #e05742; }
.badge-gray   { background: rgba(138,112,80,0.15);  color: var(--text-dim); }

/* ========== CALLOUT ========== */
.callout {
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
}

.callout-info {
  background: rgba(200,150,12,0.07);
  border-left: 3px solid var(--border-gold);
}

.callout-warn {
  background: rgba(192,57,43,0.07);
  border-left: 3px solid var(--accent-red);
}

.callout p {
  margin-bottom: 0;
  color: var(--text);
  font-size: 0.875rem;
}

.callout-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ========== PAGE HEADER ========== */
.page-header {
  background: linear-gradient(to bottom, #110d05, var(--bg-medium));
  border-bottom: 2px solid var(--border-gold);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(200,150,12,0.3);
}

.page-header p {
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto;
}

/* ========== BACK LINK ========== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }

/* ========== MINECRAFT ICONS ========== */
img.mc-icon                       { image-rendering: pixelated; display: inline-block; vertical-align: middle; }
.feature-icon img.mc-icon         { width: 40px; height: 40px; }
.gs-section-icon img.mc-icon      { width: 26px; height: 26px; }
.gs-nav-links .icon img.mc-icon   { width: 18px; height: 18px; }
.info-card-icon img.mc-icon       { width: 32px; height: 32px; }
.callout-icon img.mc-icon         { width: 20px; height: 20px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .gs-layout {
    grid-template-columns: 1fr;
  }

  .gs-sidebar {
    position: static;
  }

  .gs-nav-links {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

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