@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap");

:root {
  color-scheme: dark;

  --bg: #121212;
  --surface: #1c1c1c;
  --surface-2: rgba(106, 124, 146, 0.1);
  --text: #E6E6E6;
  --text-muted: #a3a3a3;
  --border: rgba(230, 230, 230, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 4px 10px rgba(0, 0, 0, 0.5), 0 20px 40px rgba(0, 0, 0, 0.6);

  --accent: #06F73B;
  --youtube: #ff0000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: linear-gradient(180deg, rgba(160, 160, 160, 0.08), transparent);
  background-repeat: no-repeat;
  background-size: 100% 280px;
  color: var(--text-muted);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 460px;
  margin: 0 auto;
  padding: 40px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  zoom: 1.1;
}

.name-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.lang-select {
  position: relative;
  flex-shrink: 0;
}

.lang-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(230, 230, 230, 0.14);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  padding: 6px 10px;
  line-height: 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.lang-pill:hover {
  border-color: rgba(230, 230, 230, 0.25);
}

.lang-pill:focus-visible,
.lang-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lang-pill svg {
  flex: none;
  width: 10px;
  height: 10px;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}

.lang-pill[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 10;
  margin: 0;
  min-width: 120px;
  list-style: none;
  background: var(--surface);
  border: 1px solid rgba(230, 230, 230, 0.14);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow-hover);
}

.lang-option {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: rgba(106, 124, 146, 0.14);
}

.profile {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.avatar {
  width: 84px;
  height: auto;
  display: block;
  margin-bottom: 16px;
}

.profile h1 {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  margin: 0;
  color: var(--text);
  white-space: nowrap;
}

.profile .bio {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
}

@media (max-width: 767px) {
  .profile .bio {
    font-size: 15px;
    line-height: 26px;
  }
}

/* Link list */

.bento {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  position: relative;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: card-in 0.5s ease backwards;
  animation-delay: calc(var(--i, 0) * 70ms);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card-avatar {
  position: relative;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.card-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.platform-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  background: #fff;
  border: 2px solid var(--surface);
}

.platform-badge svg {
  width: 13px;
  height: 13px;
}

.platform-badge.instagram {
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
  color: #fff;
}

.platform-badge.youtube {
  background: var(--youtube);
  color: #fff;
}

.card-handle,
.card-stat {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.card-handle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.card-stat {
  color: var(--text-muted);
  font-size: 12.5px;
}

/* Full row cards (YouTube / Spotify) */

.card--embed {
  display: block;
  padding: 10px;
}

.card--embed iframe {
  display: block;
  width: 100%;
  border-radius: 14px;
}

.card-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Pills */

.pill {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  color: var(--bg);
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:active .pill {
  transform: scale(0.96);
}

.pill-youtube {
  background: var(--youtube);
  color: #fff;
}

.footer {
  text-align: center;
  padding: 8px 0 0;
}

.footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 340px) {
  .card-stat {
    display: none;
  }
}
