/* ════════════════════════════════════════════════════════════
   MEA Link — template-1.css  "Obsidian"
   Dark, modern, card-based. CV-ready.
   ════════════════════════════════════════════════════════════ */

/* ── Theme tokens (dioverride oleh JS saat render) ───────── */
:root {
  --accent:     #81D4FA;
  --accent-20:  color-mix(in srgb, var(--accent) 20%, transparent);
  --accent-10:  color-mix(in srgb, var(--accent) 10%, transparent);

  --bg:         #0B111E;
  --surface:    #131C2E;
  --surface-2:  #1A2540;
  --border:     rgba(255,255,255,0.07);

  --text:       #F0F4F8;
  --text-2:     #8A9AAD;
  --text-3:     #5A6A7D;
}

/* ── Page layout ─────────────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
}

#ml-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 48px;
}

/* ── Banner ──────────────────────────────────────────────── */
.ml-banner {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 18%, var(--bg)),
    color-mix(in srgb, var(--accent) 6%, var(--bg))
  );
  position: relative;
  flex-shrink: 0;
}

.ml-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}

/* ── Profile section ─────────────────────────────────────── */
.ml-profile {
  width: 100%;
  max-width: 480px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 0.45s ease both;
}

.ml-avatar-wrap {
  margin-top: -44px;
  position: relative;
  z-index: 2;
}

.ml-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  object-fit: cover;
  background: var(--surface-2);
  display: block;
}

.ml-avatar-fallback {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.ml-name {
  margin-top: 14px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-align: center;
  color: var(--text);
}

.ml-slug {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.ml-bio {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-2);
  text-align: center;
  line-height: 1.65;
  max-width: 320px;
}

/* ── Links container ─────────────────────────────────────── */
.ml-links {
  width: 100%;
  max-width: 480px;
  padding: 24px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeUp 0.5s 0.08s ease both;
}

/* ── Group label ─────────────────────────────────────────── */
.ml-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 2px;
}

.ml-group-label span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}

.ml-group-label::before,
.ml-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Link card ───────────────────────────────────────────── */
.ml-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  text-decoration: none;
}

.ml-card:active {
  transform: scale(0.985);
  background: var(--surface-2);
}

.ml-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-10);
  border: 1px solid var(--accent-20);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1rem;
}

.ml-card-icon svg,
.ml-card-icon img {
  width: 18px;
  height: 18px;
}

.ml-card-label {
  flex: 1;
  line-height: 1.3;
}

.ml-card-arrow {
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.15s, color 0.15s;
}

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

/* ── Footer ──────────────────────────────────────────────── */
.ml-footer {
  margin-top: 40px;
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.ml-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.ml-footer a:hover {
  color: var(--text-2);
}
