/* ===== Madluna Global Styles ===== */
/* Moon-themed dark design */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;700&display=swap');

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: #1a2035;
  --text-primary: #e8e8ed;
  --text-secondary: #9ca3af;
  --accent: #c9a84c;
  --accent-glow: rgba(201, 168, 76, 0.15);
  --accent-hover: #dab85c;
  --border: #1e293b;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

a:hover {
  color: var(--accent-hover);
}

/* ===== Layout ===== */

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */

nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

nav .nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav .nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: var(--text-primary);
}

/* ===== Hero Section ===== */

.hero {
  text-align: center;
  padding: 120px 0 80px;
  position: relative;
}

.hero .moon {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle at 35% 35%, #f5e6b8, #c9a84c, #8a6914);
  border-radius: 50%;
  margin: 0 auto 32px;
  box-shadow: 0 0 60px rgba(201, 168, 76, 0.3), 0 0 120px rgba(201, 168, 76, 0.1);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.hero .tagline {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== Section Styles ===== */

.section {
  padding: 60px 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 32px;
}

/* ===== Cards ===== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.card-link {
  display: block;
  color: inherit;
}

.card-link:hover {
  color: inherit;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.card .arrow {
  color: var(--accent);
  font-size: 1.2rem;
  float: right;
  margin-top: -28px;
}

/* ===== Status Indicators ===== */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-badge.online {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-badge.offline {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.checking {
  background: rgba(201, 168, 76, 0.1);
  color: var(--accent);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.online .status-dot {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== Server Info ===== */

.server-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin: 24px 0;
}

.server-info .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.server-info .info-row:last-child {
  border-bottom: none;
}

.server-info .label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.server-info .value {
  font-weight: 500;
  font-size: 0.95rem;
}

.copy-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
}

.copy-btn:hover {
  border-color: var(--accent);
}

/* ===== Footer ===== */

footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ===== Responsive ===== */

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero {
    padding: 80px 0 60px;
  }

  nav .nav-links {
    gap: 16px;
  }

  .server-info .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
