@import url('satoshi.css');

:root {
  /* Core colors */
  --color-bg: #031016;
  --color-text: #ffffff;
  --color-muted: #aaaaaa;
  --color-accent: #00eaff;
  --color-accent-2: #01baee;
  --color-accent-dark: #090979;

  /* Glass system */
  --glass-bg: rgba(0, 0, 0, 0.4);
  --glass-bg-soft: rgba(0, 0, 0, 0.3);
  --glass-blur: 25px;
  --glass-blur-soft: 10px;
  --glass-radius: 22px;
  --glass-shadow: 0 8px 32px rgba(0, 234, 255, 0.12);

  /* Borders */
  --border-gradient: linear-gradient(45deg, var(--color-accent-dark), var(--color-accent-2));
  --border-width: 5px;
  --border-soft: 1px solid rgba(255, 255, 255, 0.03);

  /* Component sizing */
  --avatar-size: 120px;
  --widget-radius: 15px;
  --card-radius: 8px;
  --panel-radius: 12px;
  --account-radius: 10px;

  /* Effects */
  --bg-video-blur: 2px;
  --locked-filter: blur(8px) grayscale(1) brightness(0.5);
  --cursor-line-color: rgba(0, 234, 255, 0.4);
  --cursor-dot-color: #00eaff;
  --cursor-dot-blur: 8px;
}

html {
  background: var(--color-bg);
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--color-text);
}

* {
  font-family: Satoshi-Medium, sans-serif;
  cursor: url('cursor.png'), auto;
}

.container {
  position: relative;
  display: flex;
  justify-content: center;
  flex-direction: row;
  color: var(--color-text);
  background: var(--glass-bg);
  border-radius: var(--glass-radius);
  letter-spacing: 1.5px;
  -webkit-backdrop-filter: blur(var(--glass-blur-soft));
  backdrop-filter: blur(var(--glass-blur));
}

.container::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--glass-radius);
  border: var(--border-width) solid transparent;
  background: var(--border-gradient) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}

.bg-video {
  position: fixed;
  top: -2vh;
  left: -2vw;
  width: 104vw;
  height: 104vh;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: blur(var(--bg-video-blur));
}

.element {
  width: 50%;
  padding: 20px;
  z-index: 100;
}

.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

body.locked .container,
body.locked .bg-video,
body.locked audio {
  filter: var(--locked-filter);
}

.name {
  animation: glow 1s ease-in-out infinite alternate;
  color: var(--color-text);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-top: -10px;
}

.alias {
  font-family: Satoshi-MediumItalic, sans-serif;
  font-size: 0.8rem;
  color: #ffffff71;
  margin-top: -10px;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 40px var(--color-accent), 0 0 50px var(--color-accent), 0 0 60px var(--color-accent);
  }

  to {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 40px var(--color-accent), 0 0 50px var(--color-accent), 0 0 60px var(--color-accent), 0 0 65px var(--color-accent);
  }
}

.avatar {
  display: block;
  margin: 20px auto;
  border-radius: 50%;
  width: var(--avatar-size);
  height: var(--avatar-size);
  object-fit: cover;
}

#cursor-line {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10001;
}

.rightside {
  display: flex;
  flex-direction: row;
  width: 50%;
}

.column {
  width: 50%;
  padding: 10px;
}

.account {
  background: var(--color-bg);
  border-radius: var(--account-radius);
  width: 100%;
  display: flex;
  margin-bottom: 8px;
  padding: 5px;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(.22, 1.61, .36, 1), box-shadow 0.18s cubic-bezier(.22, 1.61, .36, 1);
  will-change: transform, box-shadow;
}

.account,
.account:visited,
.account:active,
.account:hover {
  text-decoration: none !important;
  color: var(--color-text);
}

.account:hover,
.account:focus {
  transform: scale(1.07) perspective(400px) rotateY(-6deg) rotateX(2deg);
  box-shadow: 0 8px 32px 0 rgba(0, 234, 255, 0.18), 0 2px 8px 0 rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.acctext {
  padding-left: 10px;
  color: var(--color-text);
  text-decoration: none !important;
}

.accicon {
  color: var(--color-text);
  height: 24px;
  width: 24px;
  fill: var(--color-text);
}

.account .acctext:visited,
.account .acctext:active,
.account .acctext:hover {
  color: var(--color-text);
  text-decoration: none !important;
}

#lanyard-widget {
  position: absolute;
  right: -128px;
  top: 110%;
  transform: translateY(-50%) rotate(-15deg);
  width: 280px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--glass-bg);
  border-radius: var(--glass-radius);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--glass-shadow);
  border: var(--border-soft);
  font-family: Satoshi-Medium, sans-serif !important;
}

#lanyard-widget div {
  font-family: Satoshi-Medium, sans-serif !important;
}

@media (max-width: 700px) {
  #lanyard-widget {
    position: fixed;
    right: 12px;
    top: auto;
    bottom: 12px;
    transform: none;
    width: 90vw;
  }
}

.lanyard-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lanyard-top-meta {
  flex: 1;
}

.lanyard-status-text {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 12px;
}

.lanyard-activity-content {
  width: 100%;
  font-size: 11px;
  line-height: 1.4;
}

.lanyard-avatar-wrap {
  position: relative;
  width: 48px;
  height: 48px;
}

.lanyard-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.lanyard-status-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  bottom: -2px;
  right: -2px;
  border: 2px solid rgba(0, 0, 0, 0.6);
  background: #43b581;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

.lanyard-username {
  font-weight: 700;
  color: var(--color-text);
  font-size: 13px;
}

.lanyard-container {
  background: var(--glass-bg-soft);
  border-radius: var(--panel-radius);
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(0, 234, 255, 0.2);
  max-width: 300px;
}

.activity-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-accent);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #43b581;
  animation: pulse 2s infinite;
}

.status-indicator.offline {
  background-color: #747f8d;
}

.status-indicator.idle {
  background-color: #faa61a;
}

.status-indicator.dnd {
  background-color: #f04747;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.activity-details {
  font-size: 11px;
  line-height: 1.6;
}

.activity-item {
  background: rgba(0, 234, 255, 0.05);
  padding: 8px;
  border-radius: var(--card-radius);
  margin-bottom: 8px;
  border-left: 2px solid var(--color-accent);
}

.activity-name {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 3px;
}

.activity-type {
  color: var(--color-accent);
  font-size: 10px;
  text-transform: uppercase;
}

.spotify-activity {
  background: rgba(29, 185, 84, 0.1) !important;
  border-left-color: #1db954 !important;
}

.spotify-activity .activity-type {
  color: #1db954 !important;
}

.lanyard-card {
  background: rgba(0, 234, 255, 0.1);
  padding: 6px;
  border-radius: calc(var(--glass-radius) /2);
  margin-bottom: 6px;
  border-left: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.lanyard-card-spotify {
  background: rgba(29, 185, 84, 0.2);
  border-left-color: #1db954;
}

.lanyard-card-listening {
  background: rgba(255, 255, 255, 0.12);
  border-left-color: #ffffff;
}

.lanyard-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.lanyard-card-link:hover .lanyard-card,
.lanyard-card-link:focus-visible .lanyard-card {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.lanyard-card-cover {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.lanyard-card-body {
  min-width: 0;
}

.lanyard-inline-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.lanyard-inline-link:hover,
.lanyard-inline-link:focus-visible {
  text-decoration: underline;
}

.lanyard-card-title {
  color: var(--color-accent);
}

.lanyard-card-spotify .lanyard-card-title {
  color: #1db954;
}

.lanyard-card-listening .lanyard-card-title {
  color: #ffffff;
}

.lanyard-muted {
  color: var(--color-muted);
}

.lanyard-window {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 320px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--widget-radius);
  padding: 16px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 8px 32px rgba(0, 234, 255, 0.15);
  z-index: 1000;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.lanyard-window::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--widget-radius);
  padding: 2px;
  background: var(--border-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.lanyard-window-content {
  position: relative;
  z-index: 1;
}

.lanyard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 234, 255, 0.2);
}

.lanyard-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-accent);
}

.lanyard-close {
  cursor: pointer;
  font-size: 14px;
  color: #aaa;
  transition: color 0.2s;
}

.lanyard-close:hover {
  color: var(--color-text);
}
