/* ===== BASE ===== */
body {
  margin: 0;
  height: 100vh;
  background: radial-gradient(circle at top, #0b1020, #000);
  color: #e6e9f0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: 0.2px;
}

.container {
  text-align: center;
  perspective: 900px;
}

/* ===== AVATAR + RING ===== */
.avatar-wrapper {
  position: relative;
  width: 128px;
  height: 128px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

#avatar {
  width: 110px;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 30px rgba(120,140,255,.6);
}

#avatar-ring {
  position: absolute;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.9;
  z-index: 1;
  animation: ringRotate 18s linear infinite;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

/* ===== STATUS COLORS ===== */
.online  { --accent:#00ff88; }
.idle    { --accent:#ffaa00; }
.dnd     { --accent:#ff4444; }
.offline { --accent:#777777; }

.online #avatar-ring  { background: conic-gradient(#00ff88,#00cfff,#00ff88); }
.idle #avatar-ring    { background: conic-gradient(#ffd000,#ffaa00,#ffd000); }
.dnd #avatar-ring     { background: conic-gradient(#ff3b3b,#ff0066,#ff3b3b); }
.offline #avatar-ring { background: conic-gradient(#555,#777,#555); }

/* ===== NAME ===== */
h1 {
  margin: 14px 0 6px;
  font-size: 1.8rem;
  font-weight: 600;
}

/* ===== PRESENCE CARD ===== */
.card {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,.08),
    rgba(255,255,255,.03)
  );
  backdrop-filter: blur(10px);
  box-shadow: 0 0 35px color-mix(in srgb, var(--accent), transparent 40%);
}

/* ===== TEXT ===== */
.status-line {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.9;
}

#activity {
  margin-top: 6px;
  font-size: 0.95rem;
  opacity: 0.85;
}

#last-online {
  margin-top: 4px;
  font-size: 0.8rem;
  opacity: 0.55;
}

/* ===== SPOTIFY (FIXED) ===== */
#spotify {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

/* kleines Cover */
#spotify-cover {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0,0,0,.5);
}

/* Text + Progress */
.spotify-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

#spotify-title {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#spotify-artist {
  font-size: 0.75rem;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Live Progress Bar */
.spotify-progress {
  margin-top: 6px;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 4px;
  overflow: hidden;
}

#spotify-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#1db954,#1ed760);
  transition: width 0.4s linear;
}

/* ===== DISCORD BUTTON ===== */
.discord-button {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;

  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent), transparent 65%),
    color-mix(in srgb, var(--accent), transparent 80%)
  );

  border: 1px solid color-mix(in srgb, var(--accent), transparent 40%);
  backdrop-filter: blur(10px);

  transition: transform .2s ease, box-shadow .3s ease;
}

.discord-button:hover {
  box-shadow: 0 10px 30px
    color-mix(in srgb, var(--accent), transparent 40%);
}

.discord-icon {
  font-size: 1.6rem;
}

.discord-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.discord-text small {
  font-size: 0.75rem;
  opacity: 0.7;
}

#c-list p {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
}

/* ===== COMMENTS ===== */
.comments-card {
  margin-top: 22px;
  text-align: left;
}

.comments-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  opacity: .9;
}

.comment-form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.comment-form input,
.comment-form textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: 12px;
  padding: 10px;
  font-size: .85rem;
  outline: none;
}

.comment-form input {
  width: 110px;
}

.comment-form textarea {
  flex: 1;
  resize: none;
  height: 40px;
}

.comment-form button {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent), transparent 20%),
    color-mix(in srgb, var(--accent), transparent 40%)
  );
  border: none;
  color: #fff;
  padding: 0 14px;
  border-radius: 12px;
  cursor: pointer;
  font-size: .85rem;
}

.comment-form button:hover {
  opacity: .9;
}

/* ===== COMMENT LIST ===== */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comment {
  background: rgba(255,255,255,.05);
  padding: 10px 12px;
  border-radius: 14px;
  font-size: .85rem;
}

.comment strong {
  font-weight: 600;
  opacity: .9;
}

.comment time {
  display: block;
  font-size: .7rem;
  opacity: .45;
  margin-top: 2px;
}
