@import url('https://fonts.googleapis.com/css2?family=Elms+Sans:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --bg: #0b1020;
  --surface: rgba(15, 23, 42, 0.95);
  --surface-strong: rgba(10, 15, 27, 0.98);
  --accent: #8f7df2;
  --accent-strong: #ff8cb2;
  --text: #ffffff;
  --muted: #b8c3ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Elms Sans', sans-serif;
  background: rgba(0, 0, 0, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  color: var(--text);
}

hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0;
}

.profile-name h1, .comment-header h1 {
  font-size: 1.5rem;
  margin: 0;
  line-height: 1;
}

.profile-name h1:hover, .comment-header h1:hover {
  cursor: pointer;
  text-decoration: underline;
}
.profile-name p, .profile-bio p, .comment-header p {
  font-size: 1rem;
  margin: 0;
  line-height: 1;
}

.comment-header p {
  font-size: 0.75rem;
  color: var(--muted);
}

.textarea {
  width: 100%;
  padding: 4px;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-family: 'Elms Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  resize: none;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.textarea:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
}

.textarea:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(143, 125, 242, 0.25);
}

.textarea::placeholder {
  color: rgba(184, 195, 255, 0.7);
  opacity: 1;
  font-weight: 500;
}

.textarea::-webkit-scrollbar {
  width: 6px;
}

.textarea::-webkit-scrollbar-track {
  background: transparent;
}

.textarea::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.textarea::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: blur(2px);
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 4px;
}

.profile-section {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 360px;
  border-radius: 8px;
  border: 4px solid rgba(0, 0, 0, 0);
  overflow: hidden;
}

.comment-section {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 360px;
  border-radius: 8px;
  border: 4px solid rgba(0, 0, 0, 0);
  overflow: hidden;
}

.comment {
  position: relative;
  display: flex;
  gap: 12px;
  width: 100%;
  height: fit-content;
  padding: 12px;
  transition: background 0.15s ease-in-out, backdrop-filter 0.15s ease-in-out;
}

.comment:hover {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
}

.comment-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  height: fit-content;
}

.comment-avatar-wrap {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.comment-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.comment-avatar-decoration {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
}

.comment-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.comment-box {
  display: flex;
  align-items: center;
  gap: 4px;
}

.comments {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.comments::-webkit-scrollbar {
  width: 6px;
}

.comments::-webkit-scrollbar-track {
  background: transparent;
}

.comments::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.comments::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.comment-entry {
  display: flex;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  transition: background 0.15s ease-in-out, backdrop-filter 0.15s ease-in-out;
}

.comment-entry:hover {
  background: var(--bio-hover);
  backdrop-filter: blur(12px);
}

.comment-entry-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  flex-shrink: 0;
}

.comment-entry-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.comment-entry-decoration {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
}

.comment-entry-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.comment-entry-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-entry-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.comment-entry-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.comment-meta-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.15s ease-in-out;
}

.comment-meta-delete:hover {
  color: #f23f43;
}

.comment-meta-delete:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.comment-meta-delete .comment-action-icon path {
  transition: fill 0.15s ease-in-out;
}

.comment-meta-delete:hover .comment-action-icon path {
  fill: #f23f43;
}

.comment-deleted-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.15);
  padding: 2px 6px;
  border-radius: 999px;
  text-transform: uppercase;
}

.comment-entry-meta .comment-entry-name {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  line-height: 1;
}

.comment-owner-crown {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-left: 4px;
}

.comment-owner-crown path {
  fill: #f5c451;
}

.comment-action-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.comment-action-icon path {
  fill: rgba(255, 255, 255, 0.85);
}

.comment-entry-text.comment-deleted {
  color: var(--muted);
  opacity: 0.75;
}

.comment-entry-meta .comment-entry-time {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
  line-height: 1;
}

.comment-entry-text {
  font-size: 0.92rem;
  margin: 0;
  line-height: 1.35;
  word-break: break-word;
}

.comment.comment-locked {
  user-select: none;
}
.comment.comment-locked:hover {
  background: transparent !important;
  backdrop-filter: none !important;
}

.comment-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
  border-radius: 8px; 
}

.overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  text-align: center;
}

.overlay-content p {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.discord-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #5865f2;
  color: #ffffff;
  text-decoration: none;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 600;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  transition: background-color 0.15s ease-in-out;
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.discord-login-btn:hover {
  background-color: #4752c4;
}

.discord-login-btn:active {
  background-color: #3c45a5;
}

.discord-login-btn img{
  width: 18px;
  height: 18px;
}

.comment-box button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  padding: 0;
  background-color: #5865f2;
  height: 32px;
  width: 32px;
  border-radius: 8px;
  transition: background-color 0.15s ease-in-out;
  flex-shrink: 0;
}

.comment-box button img {
  margin: 0;
  padding: 0;
}

.comment-box button:hover {
  background-color: #4752c4;
}

.comment-box button:active {
  background-color: #3c45a5;
}

#profile-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 140px;
  background-color: transparent;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  pointer-events: none;
}

/* Avatar'ı taşıyan ana kutu */
.avatar-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin-top: -60px;
  margin-left: 28px;
  align-self: flex-start;
  z-index: 3;
}
/* Ana Profil Resmi */
.main-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  outline: 4px solid rgba(0, 0, 0, 0);
}

.status-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 4;
}

.status-online { background-color: #23a55a; }
.status-idle { background-color: #f0b232; }
.status-dnd { background-color: #f23f43; }
.status-offline { background-color: #80848e; }

.border-online { 
    border-color: #23a55a !important;
    outline-color: #23a55a !important;
}
.border-idle { 
    border-color: #f0b232 !important; 
    outline-color: #f0b232 !important; 
}
.border-dnd { 
    border-color: #f23f43 !important; 
    outline-color: #f23f43 !important; 
}
.border-offline { 
    border-color: #80848e !important; 
    outline-color: #80848e !important; 
}

/* Avatar Dekorasyonu (Çerçeve) */
.avatar-decoration {
  position: absolute;
  top: -10%; 
  left: -10%;
  width: 120%; 
  height: 120%;
  pointer-events: none;
  z-index: 2;
}

.profile-body {
  display: flex;
  flex-direction: column;
  margin: 12px 28px;
  gap: 16px;
  z-index: 2;
}

.profile-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 0;
}

.profile-bio {
  font-size: 1rem;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 12px;
  transition: background-color 0.15s ease-in-out;
}

.profile-bio:hover {
  background-color: var(--bio-hover);
}

.social-links {
  display: flex;
  margin-top: auto; /* Sosyal bağlantıları profile-body'nun altına yapıştırır */
  flex-direction: row;
  gap: 12px;

}

.discord-btn {
  width: 100%;
  /* Renk ve Arkaplan */
  background-color: #5865f2;
  color: #ffffff;
  
  /* Boyutlandırma ve Hizalama */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px; /* Biraz daha daralttık Discord tarzı için */
  gap: 8px; /* İkon ile yazı arası boşluk */
  
  /* Font Ayarları */
  font-family: 'gg sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px; /* Discord butonları genelde 14px civarıdır */
  font-weight: 500;
  text-decoration: none;
  
  /* Kenar Yumuşatma */
  border-radius: 8px; 
  
  /* Geçiş Efekti */
  transition: background-color 0.15s ease-in-out;
  cursor: pointer;
  border: none;
}

/* SVG İkon Ayarı */
.discord-btn img {
  width: 24px;  /* İkon boyutu */
  height: auto;
  fill: currentColor; /* İkon rengi her zaman butonun yazı rengiyle (beyaz) aynı olur */
  display: block;
}
.discord-btn p {
  margin: 0;
}

/* Hover (Üzerine Gelince) Efekti */
.discord-btn:hover {
  background-color: #4752c4;
}

/* Active (Tıklayınca) Efekti */
.discord-btn:active {
  background-color: #3c45a5;
}

/* Spotify Buton Özel Ayarları */
.spotify-btn {
  width: 100%;
  /* Renk ve Arkaplan */
  background-color: #1DB954;
  color: #ffffff;
  
  /* Boyutlandırma ve Hizalama */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px; /* Biraz daha daralttık Discord tarzı için */
  gap: 8px; /* İkon ile yazı arası boşluk */
  
  /* Font Ayarları */
  font-family: 'gg sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px; /* Discord butonları genelde 14px civarıdır */
  font-weight: 500;
  text-decoration: none;
  
  /* Kenar Yumuşatma */
  border-radius: 8px; 
  
  /* Geçiş Efekti */
  transition: background-color 0.15s ease-in-out;
  cursor: pointer;
  border: none;
}

.spotify-btn img {
  width: 24px;  /* İkon boyutu */
  height: auto;
  fill: currentColor; /* İkon rengi her zaman butonun yazı rengiyle (beyaz) aynı olur */
  display: block;
}

.spotify-btn p {
  margin: 0;
}

/* Hover (Üzerine Gelince) - Klasik Spotify Yeşili */
.spotify-btn:hover {
  background-color: #1ED760;
}

/* Active (Tıklayınca) */
.spotify-btn:active {
  background-color: #169C46;
}

.spotify-status {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.1); /* Görseldeki tona yakınlaştırdım */
  backdrop-filter: blur(12px);
  border-radius: 8px;
  padding: 8px;
  width: auto;
  box-sizing: border-box;
  transition: background-color 0.15s ease-in-out;
}

/* Kartın üzerine gelince hafifçe parla ve yüksel */
.spotify-status:hover {
  background: var(--bio-hover);
}

.spotify-cover {
  position: relative;
  flex-shrink: 0; /* Resmin ezilmesini önler */
}

.spotify-cover img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* Küçük dönen Spotify logosu */
.spotify-icon {
  position: absolute;
  bottom: -5px;
  right: -5px;
  width: 22px;
  height: 22px;
  background: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotify-info {
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Taşmaları önler */
}

.track-name {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* Çok uzun şarkı isimlerini keser */
}

.artist-name {
  color: #b3b3b3;
  font-size: 0.875rem;
  margin-top: 2px;
}

/* Animasyonlu Ses Dalgası */
.playing-animation {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
  margin-top: 8px;
}

.bar {
  width: 4px;
  background-color: #1DB954;
  border-radius: 2px;
  animation: spotify-bounce 1s ease-in-out infinite;
}

.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.4s; }

@keyframes spotify-bounce {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}
