
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --bg-image: url("./assets/images/background.gif");
  --text: #d9ceff;
  --text-muted: #a695d4;
  --glass-strong: rgba(163, 119, 245, 0.36);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  margin-top: 8px;
  color: var(--text);
  font-family: 'JetBrains Mono', 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
  /* Use original font for Discord-related sections */
  .discord-presence, .discord-meta, .discord-avatar, .discord-name, .discord-state, .discord-activity, .custom-server-widget, .server-widget-card, .server-widget-head, .server-widget-title, .server-widget-subtitle, .server-widget-label, .server-widget-join, .server-widget-copy, .server-widget-actions, .server-widget-section, .server-widget-channels, .server-widget-members {
    font-family: 'Poppins', Arial, sans-serif !important;
  }
  background-image:
    radial-gradient(circle at 50% 25%, rgba(72, 30, 126, 0.28), rgba(0, 0, 0, 0) 45%),
    linear-gradient(rgba(0, 0, 0, 0.84), rgba(2, 1, 5, 0.94)),
    var(--bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 0;
}

.profile-layout {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  display: grid;
  gap: 16px;
}

.profile-card {
  position: relative;
  padding: 60px 22px 16px;
  border-radius: 38px;
  text-align: center;
  background: linear-gradient(180deg, rgba(10, 7, 18, 0.86), rgba(34, 18, 56, 0.48));
  border: 1px solid rgba(128, 86, 194, 0.3);
  backdrop-filter: blur(20px);


/* Responsive styles for mobile */
@media (max-width: 600px) {
  body {
    padding: 8px;
    margin-top: 0;
    font-size: 15px;
  }
  .profile-layout {
    width: 100%;
    gap: 10px;
  }
  .profile-card, .server-widget-card {
    padding: 32px 8px 10px;
    border-radius: 18px;
  }
  .pfp {
    width: 90px !important;
    height: 90px !important;
  }
  .icon-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .status-card {
    font-size: 14px;
  }
  .server-widget-head, .server-widget-title {
    font-size: 1.1em;
  }
  .discord-meta p {
    font-size: 13px;
  }
}
  box-shadow:
    0 22px 45px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(75, 36, 133, 0.34),
    inset 0 0 0 1px rgba(173, 129, 255, 0.07);
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pfp {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  margin: -116px auto 8px;
  display: block;
  object-fit: cover;
  background: rgba(9, 6, 16, 0.98);
  border: 1px solid rgba(144, 100, 225, 0.34);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 22px rgba(91, 41, 163, 0.42);
}

.username {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.05em;
  color: #e9dcff;
  text-shadow: 0 0 14px rgba(123, 72, 205, 0.55);
}

.icon-row {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  opacity: 0.9;
}

.icon-pill {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(35, 18, 57, 0.74);
  border: 1px solid rgba(149, 102, 231, 0.34);
  filter: drop-shadow(0 0 0.2rem rgba(136, 84, 220, 0.7));
}

.handle,
.location {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--text);
}

.location {
  margin-top: 6px;
  color: var(--text-muted);
}

.status-card {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(24, 12, 39, 0.74), rgba(17, 10, 28, 0.68));
  border: 1px solid rgba(146, 102, 226, 0.26);
  backdrop-filter: blur(4px);
  text-align: left;
}

.discord-presence {
  display: flex;
  align-items: center;
  gap: 12px;
}

.discord-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(149, 105, 231, 0.35);
  background: rgba(18, 9, 30, 0.9);
}

.discord-meta {
  min-width: 0;
  flex: 1;
}

.discord-name,
.discord-state,
.discord-activity {
  margin: 0;
  line-height: 1.25;
}

.discord-name {
  font-size: 14px;
  font-weight: 600;
  color: #f0e6ff;
}

.discord-state {
  margin-top: 2px;
  font-size: 12px;
  color: #c3abfa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discord-activity {
  margin-top: 2px;
  font-size: 12px;
  color: #a695d4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discord-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
  box-shadow: 0 0 10px currentColor;
}

.discord-dot.online {
  color: #34d399;
  background: #34d399;
}

.discord-dot.idle {
  color: #fbbf24;
  background: #fbbf24;
}

.discord-dot.dnd {
  color: #f87171;
  background: #f87171;
}

.discord-dot.offline {
  color: #6b7280;
  background: #6b7280;
}

.social-row {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  background: rgba(27, 15, 43, 0.78);
  border: 1px solid var(--glass-strong);
  border-radius: 999px;
  padding: 8px 12px;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #f3e8ff;
  font-weight: 700;
  background: rgba(51, 26, 83, 0.78);
  border: 1px solid rgba(154, 109, 237, 0.34);
  box-shadow: inset 0 0 10px rgba(137, 85, 225, 0.15);
  transition: transform 180ms ease, opacity 180ms ease;
}

.social-row a:hover {
  transform: scale(1.08);
  opacity: 0.95;
}

.server-card {
  border-radius: 30px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #f2e8ff;
  background: linear-gradient(180deg, rgba(16, 9, 27, 0.92), rgba(34, 17, 56, 0.6));
  border: 1px solid rgba(139, 97, 219, 0.34);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 20px rgba(89, 44, 156, 0.3);
  transition: transform 220ms ease, opacity 220ms ease;
}

.server-card:hover {
  transform: translateY(-1px) scale(1.01);
  opacity: 0.96;
}

.server-card .left,
.server-card .right {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(53, 28, 86, 0.82);
  border: 1px solid rgba(149, 105, 231, 0.35);
  flex-shrink: 0;
}

.server-card .label {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.server-card:hover .right {
  transform: translateX(4px);
}

.server-widget-card {
  border-radius: 24px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(16, 9, 27, 0.9), rgba(34, 17, 56, 0.56));
  border: 1px solid rgba(139, 97, 219, 0.34);
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 20px rgba(89, 44, 156, 0.3);
}

.custom-server-widget {
  padding: 14px;
  max-height: 350px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(149, 105, 231, 0.5) rgba(20, 11, 32, 0.6);
}

.custom-server-widget::-webkit-scrollbar {
  width: 8px;
}

.custom-server-widget::-webkit-scrollbar-track {
  background: rgba(20, 11, 32, 0.6);
  border-radius: 999px;
}

.custom-server-widget::-webkit-scrollbar-thumb {
  background: rgba(149, 105, 231, 0.5);
  border-radius: 999px;
}

.server-widget-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.server-widget-title,
.server-widget-subtitle,
.server-widget-label {
  margin: 0;
}

.server-widget-title {
  font-size: 15px;
  font-weight: 600;
  color: #f0e6ff;
}

.server-widget-subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: #bba1f4;
}

.server-widget-join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #f7eeff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(149, 105, 231, 0.35);
  background: rgba(51, 26, 83, 0.78);
}

.server-widget-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.server-widget-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #eadfff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(149, 105, 231, 0.28);
  background: rgba(31, 16, 51, 0.8);
}

.server-widget-copy {
  cursor: pointer;
}

.server-widget-copy:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.server-widget-section {
  margin-top: 12px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(149, 105, 231, 0.2);
  background: rgba(20, 11, 32, 0.72);
}

.server-widget-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a695d4;
  margin-bottom: 8px;
}

.server-widget-channels,
.server-widget-members {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.server-widget-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 11px;
  border: 1px solid rgba(149, 105, 231, 0.16);
  background: rgba(35, 18, 57, 0.52);
}

.server-widget-item .name {
  color: #eadfff;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-member-info {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.server-member-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.server-member-activity {
  color: #ac93e2;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.server-widget-item .meta {
  color: #ac93e2;
  font-size: 11px;
  margin-left: auto;
}

.server-channel-block {
  display: grid;
  gap: 6px;
}

.voice-members {
  list-style: none;
  margin: 0;
  padding: 0 6px 0 10px;
  display: grid;
  gap: 6px;
}

.voice-member-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.voice-member-item .server-member-info {
  flex: 1;
}

.voice-member-item .name {
  color: #cdb5ff;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-member-item.empty {
  color: #9f87d5;
  font-size: 11px;
  font-style: italic;
}

.server-member-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(149, 105, 231, 0.28);
}

.server-member-status {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-left: auto;
}

.server-member-status.online {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
}

.server-member-status.idle {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.8);
}

.server-member-status.dnd {
  background: #f87171;
  box-shadow: 0 0 8px rgba(248, 113, 113, 0.8);
}

.server-member-status.offline {
  background: #6b7280;
}

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) scale(0.92);
  transform-origin: bottom;
  white-space: nowrap;
  font-size: 11px;
  color: #f1e9ff;
  background: rgba(18, 9, 30, 0.95);
  border: 1px solid rgba(143, 99, 224, 0.42);
  border-radius: 10px;
  padding: 6px 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
  z-index: 20;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

@media (max-width: 420px) {
  .username {
    font-size: 30px;
  }

  .handle,
  .location {
    font-size: 16px;
  }

  .status-card p {
    font-size: 26px;
  }

  .server-card .label {
    font-size: 14px;
  }

  .server-widget-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .server-widget-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
