@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg-dark: #0a0c14;
  --bg-card: #12152280;
  --bg-card-solid: #161a28;
  --gold: #c9a84c;
  --gold-light: #e8d48b;
  --gold-dark: #8a6d1b;
  --bronze: #b08d57;
  --text: #d4d4d8;
  --text-muted: #8888a0;
  --accent-blue: #1a2a4a;
  --border: #2a2e3e;
  --danger: #c0392b;
  --success: #27ae60;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Crimson Text', Georgia, serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(201,168,76,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(26,42,74,0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ===== HERO ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 90vh;
  padding: 60px 20px 80px;
  background:
    linear-gradient(180deg, transparent 0%, var(--bg-dark) 100%),
    linear-gradient(0deg, var(--bg-dark) 0%, transparent 30%),
    radial-gradient(ellipse at center 30%, rgba(201,168,76,0.08) 0%, transparent 70%);
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(201,168,76,0.3), 0 2px 4px rgba(0,0,0,0.8);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0a0c14;
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 6px 30px rgba(201,168,76,0.45);
  transform: translateY(-1px);
  color: #0a0c14;
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold-dark);
}
.btn-secondary:hover {
  background: rgba(201,168,76,0.1);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ===== SERVER STATUS ===== */
.server-status {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
}
.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 8px rgba(39,174,96,0.6);
  animation: pulse 2s infinite;
}
.status-dot.offline {
  background: var(--danger);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 20px;
  text-align: center;
}

.section-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
  margin: 0 auto 40px;
}

/* ===== FEATURES GRID ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== HERO LOGO ===== */
.hero-logo {
  width: clamp(320px, 55vw, 600px);
  height: auto;
  margin-bottom: 32px;
  filter: drop-shadow(0 0 40px rgba(201,168,76,0.3)) drop-shadow(0 0 80px rgba(201,168,76,0.1));
  position: relative;
  z-index: 1;
}

/* ===== VERSION TAG ===== */
.version-tag {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.version-tag strong {
  color: var(--gold);
}

/* ===== DOWNLOAD GRID ===== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}
.download-card:hover {
  border-color: var(--gold-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  color: var(--gold-light);
}

.download-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: 4px;
}

.download-platform {
  font-family: 'Cinzel', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.download-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== NEWS ===== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
  transition: border-color 0.3s;
}
.news-card:hover {
  border-color: var(--gold-dark);
}

.news-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-badge {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--accent-blue);
  color: var(--gold-light);
}
.news-badge--maintenance {
  background: #3b1a1a;
  color: #e87c7c;
}
.news-badge--patch {
  background: #1a2e1a;
  color: #7ce87c;
}
.news-badge--event {
  background: #2e2a1a;
  color: var(--gold-light);
}
.news-badge--update {
  background: var(--accent-blue);
  color: #7caae8;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news-title {
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 8px;
}

.news-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ===== FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== LOGIN PAGE ===== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 36px;
}

.login-card h1 {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 8px;
}

.login-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  color: var(--bronze);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'Crimson Text', serif;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--gold-dark);
}

.login-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.login-msg {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 1.4em;
}
.login-msg.error { color: var(--danger); }
.login-msg.success { color: var(--success); }

.login-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.login-footer a {
  color: var(--gold);
}
