/* ==========================================================
   ROCRAFTING - DARK GREEN THEME
========================================================== */

:root {
  --bg: #080b09;
  --bg-soft: #0d120f;
  --bg-card: #111713;
  --bg-card-hover: #151e18;

  --green: #20e56f;
  --green-dark: #0eaa4a;
  --green-soft: rgba(32, 229, 111, 0.12);
  --green-border: rgba(32, 229, 111, 0.30);

  --text: #f5f7f5;
  --text-soft: #aeb9b1;
  --text-muted: #77847b;

  --border: rgba(255, 255, 255, 0.08);

  --shadow:
    0 20px 60px rgba(0, 0, 0, 0.35);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --container-max: 1180px;
}


/* ==========================================================
   RESET / BAZĂ
========================================================== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  user-select: none;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(32, 229, 111, 0.05), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

.container {
  max-width: var(--container-max);
}


/* ==========================================================
   NAVBAR
========================================================== */

.site-navbar {
  background: rgba(8, 11, 9, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar-brand {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.navbar-brand:hover {
  color: var(--green);
}

.navbar-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.navbar .nav-link {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.2s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--green);
}


/* ==========================================================
   BUTOANE
========================================================== */

.btn {
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.3rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary-green {
  color: #061108;
  background: var(--green);
  border: 1px solid var(--green);
  box-shadow: 0 10px 30px rgba(32, 229, 111, 0.18);
}

.btn-primary-green:hover {
  color: #061108;
  background: #42f184;
  border-color: #42f184;
  box-shadow: 0 14px 34px rgba(32, 229, 111, 0.26);
}

.btn-outline-light-custom {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-outline-light-custom:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.30);
}


/* ==========================================================
   HERO
========================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  background:
    linear-gradient(
      90deg,
      rgba(8, 11, 9, 0.97) 0%,
      rgba(8, 11, 9, 0.86) 48%,
      rgba(8, 11, 9, 0.45) 100%
    ),
    url("rocrafting_banner(1).png") center / cover no-repeat;
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 50%, rgba(32, 229, 111, 0.15), transparent 26%),
    linear-gradient(to bottom, transparent 60%, var(--bg) 100%);
}

.hero-content {
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--green);
}

.hero-title {
  max-width: 900px;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-title span {
  display: block;
  color: var(--green);
}

.hero-text {
  max-width: 700px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-logo {
  width: min(500px, 90%);
  filter:
    drop-shadow(0 26px 40px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 30px rgba(32, 229, 111, 0.16));
}

.server-mini-card {
  width: min(100%, 520px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(12, 18, 14, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
}

.server-mini-card small {
  display: block;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.server-mini-card strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 1.1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  color: #d9ffe7;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}


/* ==========================================================
   BANNER
========================================================== */

.banner-strip {
  position: relative;
  z-index: 2;
  margin-top: -60px;
  padding-bottom: 40px;
}

.banner-frame {
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.banner-frame img {
  width: 100%;
  aspect-ratio: 1536 / 428;
  object-fit: cover;
}


/* ==========================================================
   SECȚIUNI
========================================================== */

.content-section {
  padding: 100px 0;
}

.section-dark-alt {
  background:
    radial-gradient(circle at 85% 15%, rgba(32, 229, 111, 0.05), transparent 25%),
    var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-heading {
  max-width: 760px;
}

.section-heading h2,
.content-section h2,
.join-card h2 {
  margin-top: 0.8rem;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-heading p,
.section-lead,
.community-panel p,
.join-card > p {
  color: var(--text-soft);
}


/* ==========================================================
   FEATURE CARDS
========================================================== */

.feature-card {
  padding: 1.6rem;
  background: linear-gradient(180deg, #121914 0%, #0e130f 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--green-border);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  border-radius: 13px;
  font-size: 1.3rem;
}

.feature-card h3,
.game-card h3,
.rule-item h3 {
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 850;
}

.feature-card p,
.game-card p,
.rule-item p {
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}


/* ==========================================================
   GAMEPLAY CARDS
========================================================== */

.game-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  background:
    linear-gradient(140deg, rgba(32, 229, 111, 0.06), transparent 45%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.game-number {
  display: block;
  margin-bottom: 2.5rem;
  color: rgba(32, 229, 111, 0.45);
  font-size: 2.5rem;
  font-weight: 950;
  line-height: 1;
}

.game-card h3 {
  font-size: 1.6rem;
}

.text-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--green);
  font-weight: 800;
}

.text-link:hover {
  color: #6cff9c;
}


/* ==========================================================
   COMMUNITY
========================================================== */

.community-panel {
  padding: clamp(2rem, 5vw, 4rem);
  background:
    linear-gradient(120deg, rgba(32, 229, 111, 0.10), transparent 55%),
    #101712;
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}


/* ==========================================================
   REGULI
========================================================== */

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.rule-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.rule-item > span {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}


/* ==========================================================
   JOIN
========================================================== */

.join-section {
  padding: 110px 0;
  background:
    radial-gradient(circle at center, rgba(32, 229, 111, 0.10), transparent 35%),
    var(--bg);
}

.join-card {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(2.2rem, 7vw, 5rem);
  background: linear-gradient(180deg, #121a14 0%, #0c110d 100%);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.join-logo {
  width: 160px;
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 16px 25px rgba(0, 0, 0, 0.4));
}

.ip-box {
  max-width: 520px;
  margin: 2rem auto;
  padding: 1.2rem;
  background: #080c09;
  border: 1px solid var(--green-border);
  border-radius: var(--radius-sm);
}

.ip-box span {
  display: block;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ip-box strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--green);
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  letter-spacing: -0.03em;
}

.join-note {
  color: var(--text-muted) !important;
  font-size: 0.9rem;
}


/* ==========================================================
   FOOTER
========================================================== */

.site-footer {
  padding: 38px 0;
  color: var(--text-muted);
  background: #060806;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.footer-brand span {
  display: block;
  color: var(--green);
  font-size: 0.85rem;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 991.98px) {
  .site-navbar {
    background: rgba(8, 11, 9, 0.96);
  }

  .navbar-collapse {
    padding: 1rem 0 0.5rem;
  }

  .hero-section {
    min-height: auto;
    background-position: 60% center;
  }

  .hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 11, 9, 0.28);
    z-index: -1;
  }

  .hero-content .min-vh-100 {
    min-height: 820px !important;
  }

  .banner-strip {
    margin-top: -40px;
  }

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

@media (max-width: 767.98px) {
  .content-section,
  .join-section {
    padding: 78px 0;
  }

  .hero-title {
    font-size: clamp(2.5rem, 12vw, 4.3rem);
  }

  .server-mini-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .banner-strip {
    margin-top: -28px;
  }

  .community-panel {
    padding: 2rem;
  }
}

@media (max-width: 575.98px) {
  .hero-content .min-vh-100 {
    min-height: 760px !important;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-title {
    letter-spacing: -0.045em;
  }

  .navbar-logo {
    width: 38px;
    height: 38px;
  }
}
