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

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

:root {
  --amber: #F0900A;
  --amber-light: #F5C842;
  --amber-dark: #C4720A;
  --bg: #1A0D05;
  --bg2: #241308;
  --surface: #2E190C;
  --border: rgba(240,144,10,0.12);
  --text: #ffffff;
  --text-muted: rgba(255,255,255,0.45);
  --text-faint: rgba(255,255,255,0.18);
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
}

/* Background glow */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,144,10,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Layout */
.page {
  width: 100%;
  max-width: 480px;
  padding: 3rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Profile */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.profile-avatar {
  width: 100px;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(240,144,10,0.3));
  animation: float 4s ease-in-out infinite;
}

.profile-logo {
  width: 120px;
  height: auto;
  opacity: 0.9;
}

.profile-handle {
  font-size: 0.7rem;
  font-family: monospace;
  letter-spacing: 0.2em;
  color: var(--amber);
  opacity: 0.6;
  text-transform: uppercase;
}

.profile-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.5;
}

.profile-status {
  font-size: 0.75rem;
  color: var(--amber);
  opacity: 0.8;
  background: rgba(240,144,10,0.08);
  border: 1px solid rgba(240,144,10,0.2);
  border-radius: 999px;
  padding: 0.25rem 0.875rem;
  margin-top: 0.25rem;
}

.badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--bg);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  vertical-align: middle;
  margin-left: 0.4rem;
  line-height: 1.4;
}

/* Sections */
.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.section-label {
  font-size: 0.65rem;
  font-family: monospace;
  letter-spacing: 0.2em;
  color: var(--amber);
  opacity: 0.45;
  text-transform: uppercase;
  padding: 0 0.25rem;
}

/* Link cards */
.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240,144,10,0.3);
  background: #3D2210;
}

.link-icon {
  font-size: 1.25rem;
  width: 2rem;
  text-align: center;
  flex-shrink: 0;
}

.link-icon svg {
  width: 22px;
  height: 22px;
  fill: rgba(255,255,255,0.5);
}

.link-card:hover .link-icon svg {
  fill: rgba(255,255,255,0.8);
}

.link-text {
  flex: 1;
  min-width: 0;
}

.link-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.link-sublabel {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.link-arrow {
  color: var(--text-faint);
  font-size: 1rem;
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}

.link-card:hover .link-arrow {
  color: var(--amber);
  transform: translateX(3px);
}

/* Featured cards (bigger) */
.link-card.featured {
  padding: 1rem 1.125rem;
  border-color: rgba(240,144,10,0.2);
}

.link-card.featured .link-label {
  font-size: 1rem;
}

/* Footer */
.hub-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: center;
}

.hub-footer-links {
  display: flex;
  gap: 1.25rem;
}

.hub-footer a {
  font-size: 0.7rem;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.15s;
}

.hub-footer a:hover { color: var(--text-muted); }

.hub-copyright {
  font-size: 0.65rem;
  font-family: monospace;
  color: rgba(255,255,255,0.08);
  letter-spacing: 0.1em;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Loading */
.loading {
  color: var(--text-faint);
  font-size: 0.8rem;
  padding: 2rem;
}

/* Legal Modal */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

@media (min-width: 480px) {
  .modal-backdrop {
    align-items: center;
  }
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.modal-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}

.modal-tab:hover { color: rgba(255,255,255,0.6); }

.modal-tab.active {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  cursor: pointer;
  margin-left: auto;
  padding: 0.5rem;
  transition: color 0.15s;
  display: flex;
  align-items: center;
}

.modal-close:hover { color: #fff; }

.modal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  font-size: 0.75rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  white-space: pre-wrap;
  font-family: inherit;
}

/* Footer buttons (legal) */
.hub-footer button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.7rem;
  color: var(--text-faint);
  text-decoration: none;
  transition: color 0.15s;
  padding: 0;
}

.hub-footer button:hover { color: var(--text-muted); }
