/* ---------- Floating Social Bar ---------- */
.social-bar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #b71c1c;
  padding: 12px 8px;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  z-index: 999;
}

/* ---------- ปุ่มแต่ละอัน ---------- */
.social-btn {
  position: relative;
  width: 42px;
  height: 42px;
  background: #e53935;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: visible;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ---------- ยืดเฉพาะปุ่มที่ hover ---------- */
.social-btn::after {
  content: attr(data-label);       /* ✅ ใช้ data-label แสดงชื่อ */
  position: absolute;
  right: 50px;                     /* เริ่มซ่อนอยู่ข้างหลัง */
  background: #e53935;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 42px;
  height: 42px;
  padding: 0 16px;
  border-radius: 20px 0 0 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.35s ease;
  pointer-events: none;
}

/* ✅ เฉพาะตอน hover → สไลด์ชื่อออกทางซ้ายสวย ๆ */
.social-btn:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- เอฟเฟกต์ไอคอน ---------- */
.social-btn i {
  font-size: 20px;
  transition: transform 0.3s ease;
}
.social-btn:hover i {
  transform: scale(1.2);
}

/* ---------- สีเฉพาะแพลตฟอร์ม ---------- */
.social-btn.discord:hover { background: #5865F2; }
.social-btn.facebook:hover { background: #1877f2; }
.social-btn.youtube:hover { background: #ff0000; }
.social-btn.tiktok:hover { background: #000; }
