/* ============================================================
   SOCIAL SIDEBAR (sağ taraf dikey ikonlar - HaarLab stili)
   ============================================================ */
.social-sidebar {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 9999;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  box-shadow: -4px 0 20px rgba(12,28,61,.15);
}
.ssb-btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  transition: width .2s, opacity .2s;
  position: relative;
}
.ssb-btn:hover { opacity: .88; width: 54px; }
.ssb-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.ssb-wa    { background: #25D366; }
.ssb-ig    { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.ssb-tt    { background: #010101; }
.ssb-phone { background: #0c1c3d; }

/* Tooltip etiketleri */
.ssb-btn::before {
  content: attr(aria-label);
  position: absolute;
  right: 56px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.ssb-btn:hover::before { opacity: 1; }

/* ============================================================
   FLOATING WHATSAPP + CHAT (sol alt köşe)
   ============================================================ */
.floating-contact {
  position: fixed;
  left: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9998;
  align-items: flex-start;
}
.float-badge {
  background: rgba(12,28,61,.85);
  color: #fff;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  display: none;
  max-width: 240px;
  line-height: 1.3;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.float-btn.wa-float {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 0 18px 0 14px;
  height: 52px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
  transition: transform .15s, box-shadow .15s;
}
.float-btn.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37,211,102,.4);
}
.float-btn.chat {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #c9a84c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(201,168,76,.35);
  color: #fff;
  user-select: none;
}

/* ============================================================
   MINI CHAT
   ============================================================ */
.mini-chat {
  position: fixed;
  left: 18px;
  bottom: 86px;
  width: min(340px, calc(100vw - 36px));
  background: #fff;
  border-radius: 16px;
  display: none;
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
  overflow: hidden;
  z-index: 99999;
}
.mini-chat .chat-header {
  background: #0c1c3d;
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}
.mini-chat .chat-header button {
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
}
.mini-chat .chat-body { padding: 14px; }
.mini-chat .q { font-weight: 700; margin: 0 0 10px; color: #111; }
.mini-chat .hint { margin: 8px 0 0; font-size: 11px; color: #888; }
.mini-chat input, .mini-chat select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
}
.mini-chat input:focus, .mini-chat select:focus { border-color: #c9a84c; }
.mini-chat .actions { display: flex; gap: 10px; margin-top: 12px; }
.mini-chat .btn { flex: 1; padding: 11px; border-radius: 10px; border: none; cursor: pointer; font-weight: 700; font-size: 14px; }
.mini-chat .btn.primary { background: #c9a84c; color: #fff; }
.mini-chat .btn.ghost { background: #f3f4f6; color: #111; }
.mini-chat .progress { height: 5px; background: #f3f4f6; border-radius: 999px; overflow: hidden; margin: 8px 0 0; }
.mini-chat .progress > span { display: block; height: 100%; width: 0%; background: #c9a84c; transition: width .25s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@supports (padding: max(0px)) {
  .floating-contact { bottom: calc(18px + env(safe-area-inset-bottom)); }
  .mini-chat         { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

@media (max-width: 480px) {
  .ssb-btn { width: 44px; height: 44px; }
  .float-btn.wa-float span { display: none; }
  .float-btn.wa-float { padding: 0 14px; min-width: unset; width: 52px; border-radius: 50%; justify-content: center; }
}
