/* Bob's Craft — inspirado em Bobs Praianos, tema Minecraft */
:root {
  --bg: #0a0f0a;
  --bg-elevated: #111811;
  --bg-card: #152015;
  --bg-card-hover: #1b2a1b;
  --border: rgba(148, 163, 184, 0.12);
  --border-accent: rgba(85, 197, 85, 0.45);
  --green: #55c555;
  --green-hover: #6fd86f;
  --green-dim: rgba(85, 197, 85, 0.14);
  --grass: #7cba3d;
  --dirt: #8b6914;
  --slate: #94a3b8;
  --slate-light: #cbd5e1;
  --text: #f1f5f9;
  --gold: #fbbf24;
  --discord: #5865f2;
  --radius: 12px;
  --radius-lg: 16px;
  --container: 1180px;
  --header-h: 64px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(85, 197, 85, 0.14), transparent),
    radial-gradient(ellipse 40% 30% at 100% 0%, rgba(124, 186, 61, 0.08), transparent),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 32px,
      rgba(85, 197, 85, 0.03) 32px,
      rgba(85, 197, 85, 0.03) 33px
    );
  z-index: 0;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 15, 10, 0.88);
  backdrop-filter: blur(16px);
}

.header-row {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--grass), #4a8f2a);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  box-shadow: 0 0 20px rgba(85, 197, 85, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.logo__img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  filter: drop-shadow(0 0 10px rgba(85, 197, 85, 0.35));
}

.logo__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__brand strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo__brand span {
  font-size: 0.65rem;
  color: var(--slate);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  cursor: pointer;
  font-size: 1.1rem;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  padding: 0 0.25rem;
}

.nav-main__link {
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav-main__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-main__link--active {
  color: var(--text);
  background: var(--green-dim);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.8125rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  font-family: inherit;
}

.btn--nav-primary {
  padding: 0.45rem 0.9rem;
  background: var(--green);
  color: #0a120a;
  box-shadow: 0 0 20px rgba(85, 197, 85, 0.35);
}

.btn--nav-primary:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  padding: 0.45rem 0.75rem;
  background: transparent;
  color: var(--slate-light);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.btn--lg {
  padding: 0.75rem 1.35rem;
  font-size: 0.9rem;
  border-radius: 10px;
}

.btn--primary {
  background: var(--green);
  color: #0a120a;
  box-shadow: 0 4px 24px rgba(85, 197, 85, 0.4);
}

.btn--primary:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
}

.btn__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.btn--with-icon {
  width: 100%;
}

.site-main {
  position: relative;
  z-index: 1;
}

.hero-panel {
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-hover);
  background: var(--green-dim);
  border: 1px solid var(--border-accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero-title .accent {
  color: var(--green);
  text-shadow: 0 0 40px rgba(85, 197, 85, 0.35);
}

.hero-lead {
  color: var(--slate-light);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: radial-gradient(circle at center, rgba(85, 197, 85, 0.08), var(--bg-card));
  box-shadow: var(--shadow-lg);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.5rem 4.5rem;
}

.hero-visual--banner {
  padding: 0 0 4.25rem;
  min-height: 0;
  background: var(--bg-card);
}

.site-banner {
  position: relative;
  z-index: 1;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.site-banner__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

@media (min-width: 900px) {
  .site-banner__img {
    max-height: 520px;
  }
}

.hero-visual__banner {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 16 / 9;
  max-height: min(52vw, 360px);
}

.hero-visual__logo {
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 40px rgba(85, 197, 85, 0.25));
}

.hero-visual__scene,
.hero-visual__blocks {
  display: none;
}

.hero-visual__label {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: rgba(10, 15, 10, 0.82);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-visual__ip {
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
  color: var(--green-hover);
}

.server-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--slate-light);
}

.server-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.section {
  padding: 3rem 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--slate);
  max-width: 36rem;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.mode-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s;
  background: radial-gradient(circle at top right, var(--glow, rgba(85, 197, 85, 0.15)), transparent 60%);
}

.mode-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow);
}

.mode-card:hover::before {
  opacity: 1;
}

.mode-card__icon {
  font-size: 2rem;
  line-height: 1;
}

.mode-card__tag {
  display: inline-block;
  width: fit-content;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(255, 255, 255, 0.06);
  color: var(--slate-light);
}

.mode-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.mode-card p {
  color: var(--slate);
  font-size: 0.875rem;
  flex: 1;
}

.mode-card__cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-hover);
}

.mode-card--soon {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
}

.mode-card__tag--soon {
  background: rgba(251, 191, 36, 0.15);
  color: var(--gold);
}

.hero-meta {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--slate);
}

.server-pill__dot--offline {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.server-pill--offline {
  border-color: rgba(239, 68, 68, 0.35);
}

.ranking-note {
  color: var(--slate);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.mode-card--bedwars { --glow: rgba(239, 68, 68, 0.18); }
.mode-card--rankup { --glow: rgba(251, 191, 36, 0.18); }
.mode-card--skywars { --glow: rgba(99, 102, 241, 0.18); }
.mode-card--murder { --glow: rgba(244, 63, 94, 0.18); }
.mode-card--zombie { --glow: rgba(34, 197, 94, 0.18); }
.mode-card--modpack { --glow: rgba(22, 163, 74, 0.22); }
.mode-card--ranking { --glow: rgba(56, 189, 248, 0.18); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.info-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.info-card strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--green-hover);
}

.info-card span {
  color: var(--slate);
  font-size: 0.875rem;
}

.page-hero {
  padding: 0 0 1.5rem;
  border-bottom: 1px solid var(--border);
}

.page-hero .container {
  padding-top: 2rem;
}

.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
}

.page-hero p {
  color: var(--slate);
  margin-top: 0.5rem;
}

.mode-map-section {
  margin: 0 auto 2rem;
}

.mode-map-section__head {
  margin-bottom: 1rem;
}

.mode-map-section__head h2 {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.mode-map-section__head p {
  color: var(--slate-light);
  font-size: 0.95rem;
}

.mode-map-embed {
  width: 100%;
  height: min(72vh, 760px);
  min-height: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.mode-map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.mode-detail {
  padding: 2rem 0 3rem;
}

.mode-detail__layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .mode-detail__layout {
    grid-template-columns: 1fr 320px;
  }
}

.mode-detail__content {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.mode-detail__content h2 {
  font-size: 1.35rem;
  margin: 1.5rem 0 0.75rem;
}

.mode-detail__content h2:first-child {
  margin-top: 0;
}

.mode-detail__content ul {
  margin-left: 1.25rem;
  color: var(--slate-light);
}

.mode-detail__content li {
  margin-bottom: 0.35rem;
}

.mode-detail__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mode-detail__badge {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  text-align: center;
}

.mode-detail__badge-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.ranking-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.ranking-table th,
.ranking-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.ranking-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate);
  background: var(--bg-elevated);
}

.ranking-table tr:last-child td {
  border-bottom: none;
}

.ranking-table .pos {
  font-weight: 800;
  color: var(--gold);
}

.ranking-table .pos--1 { color: #fde047; }
.ranking-table .pos--2 { color: #cbd5e1; }
.ranking-table .pos--3 { color: #d97706; }

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-grid h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-bottom: 0.75rem;
}

.footer-grid a {
  display: block;
  color: var(--slate-light);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 0.35rem;
}

.footer-grid a:hover {
  color: var(--green-hover);
}

.footer-bottom {
  color: var(--slate);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    background: rgba(10, 15, 10, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .nav-main.is-open {
    display: flex;
  }

  .header-actions .btn--ghost {
    display: none;
  }
}
