/* ThreeCountiesRP - shared stylesheet */

:root {
  --black: #05070a;
  --panel: #0c1114;
  --teal: #13a3a1;
  --teal-bright: #2fe9df;
  --white: #f4fbfa;
  --grey: #9db3b2;
  --header-h: 66px;
  --wip-h: 40px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
  font-family: 'Rajdhani', Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}

h1, h2, h3, .brand {
  font-family: 'Orbitron', Arial, Helvetica, sans-serif;
  letter-spacing: 1px;
}

a { color: var(--teal-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Fixed top stack: WIP banner + nav, scrolls with the page ---- */
.top-stack {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.wip-banner {
  height: var(--wip-h);
  background: #c00;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.site-nav {
  height: var(--header-h);
  background: rgba(5, 7, 10, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--teal);
  box-shadow: 0 0 18px rgba(19, 163, 161, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-group img {
  height: 38px;
  width: 38px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  box-shadow: 0 0 10px rgba(47, 233, 223, 0.6);
  object-fit: cover;
}

.brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
}

.brand span { color: var(--teal-bright); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  color: var(--grey);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal-bright);
  text-decoration: none;
}

.btn-discord {
  background: var(--teal);
  color: #041413 !important;
  padding: 9px 16px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  box-shadow: 0 0 14px rgba(19, 163, 161, 0.6);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-discord:hover {
  box-shadow: 0 0 22px rgba(47, 233, 223, 0.9);
  transform: translateY(-1px);
  text-decoration: none;
}

.nav-toggle { display: none; }

/* push all page content below the fixed banner+nav */
main {
  padding-top: calc(var(--wip-h) + var(--header-h));
}

/* ---- Shared page furniture ---- */
.page-hero {
  padding: 60px 24px 40px;
  text-align: center;
  border-bottom: 1px solid rgba(19, 163, 161, 0.35);
}

.page-hero h1 {
  font-size: 2rem;
  color: var(--white);
  margin: 0 0 10px;
  text-shadow: 0 0 16px rgba(47, 233, 223, 0.5);
}

.page-hero p {
  color: var(--grey);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 46px 24px;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(19, 163, 161, 0.4);
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 0 20px rgba(19, 163, 161, 0.12);
}

.card h2, .card h3 { color: var(--teal-bright); margin-top: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 760px) {
  .card-grid { grid-template-columns: 1fr; }
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  margin: 36px 0;
}

footer {
  text-align: center;
  padding: 30px 20px 50px;
  color: var(--grey);
  font-size: 0.85rem;
  border-top: 1px solid rgba(19, 163, 161, 0.25);
}

.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

.btn-outline {
  border: 1px solid var(--teal);
  color: var(--teal-bright) !important;
  padding: 10px 18px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.btn-outline:hover {
  background: rgba(19, 163, 161, 0.15);
  text-decoration: none;
}

.rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rules-list li {
  border-left: 3px solid var(--teal);
  padding: 10px 16px;
  margin-bottom: 12px;
  background: rgba(19, 163, 161, 0.06);
}

.rules-list li strong { color: var(--teal-bright); }

.placeholder-note {
  font-size: 0.85rem;
  color: var(--grey);
  border: 1px dashed rgba(157, 179, 178, 0.5);
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
}

table.server-info {
  width: 100%;
  border-collapse: collapse;
}

table.server-info td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(19, 163, 161, 0.25);
}

table.server-info td:first-child {
  color: var(--grey);
  width: 40%;
}

/* ---- Landing gate ---- */
.gate-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.gate-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(47, 233, 223, 0.55);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gate-logo:hover {
  box-shadow: 0 0 46px rgba(47, 233, 223, 0.9);
  transform: scale(1.02);
}

.gate-hint {
  margin-top: 22px;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
}

.gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.gate-overlay.open { display: flex; }

.gate-box {
  background: var(--panel);
  border: 1px solid var(--teal);
  box-shadow: 0 0 34px rgba(19, 163, 161, 0.5);
  border-radius: 10px;
  padding: 32px 30px;
  width: 320px;
  text-align: center;
  position: relative;
}

.gate-box h2 {
  margin: 0 0 6px;
  color: var(--white);
}

.gate-box p {
  color: var(--grey);
  font-size: 0.9rem;
  margin: 0 0 18px;
}

.gate-box input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  background: #000;
  border: 1px solid var(--teal);
  color: var(--white);
  border-radius: 4px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  margin-bottom: 14px;
}

.gate-box input[type="password"]:focus {
  outline: none;
  box-shadow: 0 0 10px rgba(47, 233, 223, 0.7);
}

.gate-close {
  position: absolute;
  top: 10px;
  right: 14px;
  color: var(--grey);
  cursor: pointer;
  font-size: 1.1rem;
  background: none;
  border: none;
}

.gate-close:hover { color: var(--teal-bright); }

#gate-error {
  display: none;
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.shake { animation: shake 0.5s; }
