/* link/styles.css — standalone link-in-bio page for Haaratelier by Eddy */

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

:root {
  --link-bg: var(--ha-bg, #FAF7F2);
  --link-surface: #FFFFFF;
  --link-text: var(--ha-text, #2B2723);
  --link-muted: var(--ha-text-muted, #6B645C);
  --link-border: var(--ha-border, rgba(43, 39, 35, 0.12));
  --link-accent: var(--ha-accent, #B9986A);
  --link-accent-hover: var(--ha-accent-hover, #A68555);
}

[data-theme="dark"] {
  --link-bg: #1B1815;
  --link-surface: #26211C;
  --link-text: #EDE8E1;
  --link-muted: #A89F93;
  --link-border: rgba(237, 232, 225, 0.14);
  --link-accent: #C9A87C;
  --link-accent-hover: #D6B78D;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ha-font-body, 'Jost', system-ui, sans-serif);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--link-text);
  background-color: var(--link-bg);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 48px 20px 56px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 200ms ease, color 200ms ease;
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--link-border);
  background: var(--link-surface);
  color: var(--link-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms ease, border-color 200ms ease;
}

.theme-toggle:hover { color: var(--link-accent); border-color: var(--link-accent); }

#themeIconMoon { display: block; }
#themeIconSun { display: none; }
[data-theme="dark"] #themeIconMoon { display: none; }
[data-theme="dark"] #themeIconSun { display: block; }

.card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lang-select-wrapper {
  position: absolute;
  top: -32px;
  right: 0;
}

.lang-select {
  font-family: var(--ha-font-body, 'Jost', system-ui, sans-serif);
  font-size: 0.8rem;
  color: var(--link-muted);
  background: var(--link-surface);
  border: 1px solid var(--link-border);
  border-radius: var(--ha-radius, 8px);
  padding: 6px 10px;
  cursor: pointer;
  outline: none;
}

.lang-select:focus { border-color: var(--link-accent); }

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--link-surface);
  border: 1px solid var(--link-border);
}

.avatar-fallback {
  display: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--link-surface);
  border: 1px solid var(--link-border);
  align-items: center;
  justify-content: center;
  font-family: var(--ha-font-display, Georgia, serif);
  font-size: 2rem;
  color: var(--link-accent);
}

.name {
  margin-top: 20px;
  font-family: var(--ha-font-display, 'Cormorant Garamond', Georgia, serif);
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.name-sub { color: var(--link-accent); }

.tagline {
  margin-top: 8px;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--link-muted);
  text-align: center;
  max-width: 360px;
}

.links {
  margin-top: 32px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--link-surface);
  border: 1px solid var(--link-border);
  border-radius: 12px;
  color: var(--link-text);
  text-decoration: none;
  font-weight: 500;
  transition: border-color 200ms ease, transform 150ms ease, box-shadow 200ms ease;
}

.link-item:hover {
  border-color: var(--link-accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.link-item:active { transform: translateY(0); }

.link-item i {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--link-accent);
}

.link-item .label { flex: 1; font-size: 0.98rem; }

.link-item .hint {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--link-muted);
  text-align: right;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.footer {
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--link-muted);
  text-align: center;
}

.footer a { color: inherit; text-decoration: none; }
.footer a:hover { color: var(--link-accent); }
