/* Genel */
body {
  margin: 0;
  padding: 0;
  background: transparent;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  color: #fff;
}

.card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255,255,255,.05);
  border: 2px solid rgba(255,255,255,.1);
  padding: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0,0,0,.6);
  max-width: 680px;
  width: 100%;
  flex-wrap: wrap;
}

.avatar-container {
  position: relative;
}

.avatar {
  position: relative;
  }
.avatar:hover {
  transform: scale(1.1);
}

/* Durum noktası */
.status-dot {
position: relative;
  top: -6px;
  left: 20px;
  width: 16px;
  height: 16px;
  background: #747f8d;
  border: 3px solid #0d0d0d;
  border-radius: 50%;
  transition: filter .2s ease;
  z-index: 3;
}
.status-online { background:#23a55a }
.status-idle { background:#f0b232 }
.status-dnd { background:#f23f43 }
.status-offline { background:#747f8d }

.info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.username {
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.badge { width: 20px; height: 20px; }

.button {
  background: #5865F2;
  color: #fff;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  width: fit-content;
  transition: .2s;
}
.button:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

/* Spotify — çerçeveli */
.activity.spotify {
  display: flex;
  gap: 1px;
  background: #141414;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 5px;
  margin-top: 1px;
}
.activity.spotify .cover {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}
.activity.spotify .track .song { font-weight: 600; }
.activity.spotify .track .artist { font-size: 13px; color: #ccc; }
.activity.spotify .track .status { font-size: 12px; color: #9aa0a6; }

/* Aktiviteler (YouTube, oyun vs.) */
.activities {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.activity {
  background: #141414;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 10px;
}
.activity .title { font-weight: 600; }
.activity .meta { font-size: 12px; color: #bbb; }

/* Hover efektleri */
.username:hover,
.badge:hover {
  filter: brightness(1.2);
}


/* ---- Typewriter subtitle ---- */
.typewriter{
  margin-top: 2px;
  font-size: 14px;
  color: #e5e7eb; /* #ddd */
  min-height: 1.4em; /* keep area stable before typing */
  letter-spacing: .2px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.typewriter .cursor{
  display: inline-block;
  animation: blink 1s step-end infinite;
  opacity: .9;
}
@keyframes blink{
  0%,100%{ opacity: 0; }
  50%{ opacity: 1; }
}


/* ---- Avatar & status text separation ---- */
.avatar-container{ display:flex; flex-direction:column; align-items:center; padding-bottom:22px; }
.status-text{ font-size:14px; color:#e5e7eb; margin-top:18px; text-align:center; line-height:1.3; position:relative; z-index:1; }
/* ---- Spotify track layout (more breathing room) ---- */
#spotify .track{ display:flex; flex-direction:column; gap:6px; }
#spotify .track .song{ font-weight:700; font-size:16px; margin-top:2px; }
#spotify .track .artist{ color:#cbd5e1; font-size:13px; }
#spotify .track .time{ font-size:12px; color:#9aa0a6; margin-top:4px; display:none; }
#spotify .track .progress{ position:relative; height:6px; margin-top:4px; background:#1f2937; border-radius:9999px; overflow:hidden; margin-top:4px; display:none; }
#spotify .track .progress .bar{ height:100%; background:#00c853; width:0%; transition:width .2s linear; }
/* ---- Generic activity progress (YouTube/Netflix etc. when timestamps exist) ---- */
.activity .time{ font-size:12px; color:#9aa0a6; margin-top:4px; display:none; }
.activity .progress{ position:relative; height:6px; background:#1f2937; border-radius:9999px; overflow:hidden; margin-top:6px; display:none; }
.activity .progress .bar{ height:100%; background:#8b5cf6; width:0%; transition:width .2s linear; }
.activity.with-progress .time, .activity.with-progress .progress{ display:block; }

/* Brand overrides */
.activity.youtube .title .icon{ color:#ff0033; }
.activity.youtube .progress .bar{ background:#ff0033; }
.activity.netflix .title .icon{ color:#e50914; }
.activity.netflix .progress .bar{ background:#e50914; }


/* === Discord avatar decoration & banner === */
.avatar-container { position: relative; }
.avatar-decoration{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;  /* 72px avatar + border payı */
  display: none;              /* Lanyard varsa JS görünür yapar */
  pointer-events: none;
  z-index: 0;
}
#card-banner{
  display:none;
  width:100%; height:80px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin-bottom: 10px;
}


/* Ensure decoration centers to avatar, not container padding */
.avatar-wrap{
  position: relative;
  width: 72px;
  height: 72px;
}
.avatar-wrap .avatar{ width: 72px; height: 72px; border-radius: 50%; }
.avatar-wrap .avatar-decoration{
  filter: drop-shadow(0 0 6px rgba(0,0,0,.55));
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  display: none; /* shown when decoration exists */
  pointer-events: none;
  z-index: 2;
}


/* === Strong override to force decoration visibility === */
.avatar-wrap .avatar-decoration {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 96px !important;
  height: 96px !important;
  filter: drop-shadow(0 0 6px rgba(0,0,0,.55)) !important;
  display: block !important;
  pointer-events: none !important;
  z-index: 2 !important;
}
.avatar {
  position: relative !important;
  }

/* --- Unified track layout for Spotify/YouTube/Netflix --- */
.activity .track{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.activity .track .song{
  font-weight:700;
  font-size:16px;
  margin-top:2px;
}
.activity .track .artist{
  color:#cbd5e1;
  font-size:13px;
}
.activity .track .time{
  font-size:12px;
  color:#9aa0a6;
  margin-top:4px;
  display:none;
}
.activity .track .progress{
  position:relative;
  height:6px;
  margin-top:4px;
  background:#1f2937;
  border-radius:9999px;
  overflow:hidden;
  display:none;
}
.activity .track .progress .bar{
  height:100%;
  background:#8b5cf6;
  width:0%;
  transition:width .2s linear;
}
.activity.with-progress .track .time,
.activity.with-progress .track .progress{
  display:block;
}

/* --- v14: Unified vertical track layout --- */
.activity .track{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:4px !important;
}
.activity .track .song{
  font-weight:600;
  font-size:15px;
}
.activity .track .artist{
  font-size:13px;
  color:#ccc;
}
.activity .track .time{
  font-size:12px;
  color:#aaa;
}
.activity .track .progress{
  width:100%;
  height:5px;
  background:#2e2e2e;
  border-radius:5px;
  overflow:hidden;
}
.activity .track .progress .bar{
  height:100%;
  background:#1db954; /* default Spotify green */
  width:0%;
}
/* YouTube specific bar color */
.activity.youtube .track .progress .bar{
  background:#ff0000;
}
/* Netflix specific bar color */
.activity.netflix .track .progress .bar{
  background:#e50914;
}
/* --- Activity kartı aralıkları (title, meta, time) --- */
.activity{
  display: flex;
  flex-direction: column;
  row-gap: 6px; /* tüm alt elemanlar arasında 6px boşluk */
}

.activity .title{
  margin-bottom: 6px;
}

.activity .meta{
  margin-bottom: 6px;
}

.activity .time{
  display: flex;
  flex-direction: row;
  gap: 4px;
  margin-top: 6px;
}

/* embed-tweak */
body{padding-top:0 !important;}
.card{margin-top:0 !important;}

/* embed-tight-bottom */
html, body { margin:0 !important; padding:0 !important; background: transparent !important; }
.card { margin: 0 !important; padding-bottom: 0 !important; }
#card-banner { margin-bottom: 0 !important; padding-bottom: 0 !important; }
/* embed-blend */
.card {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* ===== Abdullah special embed tweaks ===== */

/* Hide Spotify card completely */
#spotify{
  display:none !important;
}

/* Provider badges & hide default leading icon */
.activity .title > svg:first-child,
.activity .title > img:first-child,
.activity .title > span:first-child { 
  display:none !important; 
}

.activity .title{ 
  position:relative; 
  padding-left:22px; 
}

.activity.youtube .title::before,
.activity.netflix .title::before{
  content:"";
  position:absolute;
  left:0; 
  top:50%;
  transform:translateY(-50%);
  width:16px; 
  height:16px;
  background-size:contain; 
  background-repeat:no-repeat;
  filter: drop-shadow(0 0 2px rgba(0,0,0,.6));
}

.activity.youtube .title::before{
  background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><rect rx="4" ry="4" width="24" height="24" fill="%23FF0000"/><polygon points="10,8 16,12 10,16" fill="white"/></svg>');
}

.activity.netflix .title::before{
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><rect width='256' height='256' fill='black' fill-opacity='0'/><path d='M52 0h40l72 192V0h40v256h-40L92 64v192H52V0z' fill='%23E50914'/></svg>");
}
