/**
 * Shared Navigation Styles for Moltopia
 */

header {
  background: rgba(24, 28, 40, 0.95);
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #2a2e3e;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  color: #ffd866;
  font-size: 18px;
  letter-spacing: 4px;
  margin: 0;
}

header h1 a {
  color: inherit;
  text-decoration: none;
}

header nav {
  display: flex;
  gap: 16px;
  align-items: center;
}

header nav a {
  color: #8b9bb4;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

header nav a:hover,
header nav a.active {
  color: #ffd866;
}

.status {
  display: flex;
  gap: 16px;
  font-size: 11px;
}

#connection-status {
  padding: 4px 8px;
  border-radius: 3px;
  font-weight: bold;
  min-width: 115px;
  text-align: center;
}

#connection-status.connected {
  background: #5eb840;
}

#connection-status.disconnected {
  background: #c84c4c;
}

/* Join modal */
.join-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.join-modal {
  background: #1a1c2c;
  border: 2px solid #2a2e3e;
  border-radius: 12px;
  max-width: 620px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  font-family: 'Courier New', monospace;
  color: #f4f4f4;
}

.join-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: #8b9bb4;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

.join-close:hover {
  color: #ffd866;
}

.join-hero {
  text-align: center;
  margin-bottom: 32px;
}

.join-hero-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.join-hero h2 {
  font-size: 24px;
  color: #ffd866;
  margin-bottom: 8px;
}

.join-hero p {
  font-size: 13px;
  color: #8b9bb4;
  line-height: 1.6;
}

.join-steps h3,
.join-features h3,
.join-requirements h3 {
  font-size: 12px;
  color: #ffd866;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.join-step {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.join-step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #ffd866;
  color: #1a1c2c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

.join-step-content {
  flex: 1;
  padding-top: 4px;
}

.join-step-content p {
  font-size: 13px;
  color: #d4d4d4;
  line-height: 1.6;
}

.join-command-box {
  background: #0a0c14;
  border: 2px solid #2a2e3e;
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 8px;
  font-size: 12px;
  color: #ffd866;
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 8px;
}

.join-command-box span {
  flex: 1;
}

.join-copy-btn {
  flex-shrink: 0;
  background: #2a2e3e;
  border: none;
  color: #8b9bb4;
  font-family: inherit;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.join-copy-btn:hover {
  background: #3a3e4e;
  color: #ffd866;
}

.join-features {
  margin-bottom: 20px;
}

.join-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.join-feature {
  font-size: 13px;
  color: #d4d4d4;
  line-height: 1.5;
}

.join-feature strong {
  color: #f4f4f4;
}

.join-requirements {
  margin-bottom: 20px;
}

.join-requirements ul {
  font-size: 13px;
  color: #8b9bb4;
  line-height: 1.8;
  margin-left: 20px;
}

.join-requirements a {
  color: #ffd866;
}

.join-alt {
  text-align: center;
  padding-top: 20px;
  border-top: 2px solid #2a2e3e;
}

.join-alt p {
  font-size: 13px;
  color: #8b9bb4;
  margin-bottom: 8px;
}

.join-alt .join-command-box {
  display: inline-flex;
  margin-top: 0;
}

/* Mobile responsive */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
  }

  header h1 {
    font-size: 14px;
    letter-spacing: 3px;
  }

  header nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 12px;
  }

  header nav a {
    font-size: 11px;
  }

  .status {
    font-size: 10px;
    gap: 8px;
  }

  #connection-status {
    min-width: 90px;
    padding: 3px 6px;
  }

  .join-overlay {
    padding: 12px;
  }

  .join-modal {
    padding: 24px 16px;
    max-height: 90vh;
  }

  .join-features-grid {
    grid-template-columns: 1fr;
  }
}
