/* ── Floating Social Bar ── */

.socbar {
  position: fixed;
  left: 22px;
  top: max(260px, 42%);
  transform: translateY(-50%) translateX(-16px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease-out, transform .5s cubic-bezier(.22,1,.36,1);
}

.socbar.socbar-visible {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: all;
}

.socbar-line {
  width: 1px;
  height: 40px;
  background: oklch(99% 0.005 88 / .14);
  flex-shrink: 0;
}

.socbar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 0;
}

.socbar-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 6px;
  color: oklch(99% 0.005 88 / .38);
  text-decoration: none;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.socbar-nav a:hover {
  color: oklch(74.9% 0.166 61);
  background: oklch(99% 0.005 88 / .06);
  transform: translateX(3px);
}

.socbar-nav svg {
  display: block;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

/* ── Mobile: horizontal pill at bottom ── */
@media (max-width: 1100px) {
  .socbar {
    left: 50%;
    top: auto;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    flex-direction: row;
    background: oklch(16% 0.055 282 / .88);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid oklch(99% 0.005 88 / .10);
    border-radius: 100px;
    padding: 0 6px;
    box-shadow: 0 8px 32px oklch(10% 0.05 282 / .5);
  }

  .socbar.socbar-visible {
    transform: translateX(-50%) translateY(0);
  }

  .socbar-line {
    width: 22px;
    height: 1px;
  }

  .socbar-nav {
    flex-direction: row;
    padding: 6px 2px;
    gap: 0;
  }

  .socbar-nav a {
    width: 54px;
    height: 54px;
    border-radius: 100px;
    color: oklch(99% 0.005 88 / .55);
  }

  .socbar-nav a:hover {
    transform: translateY(-2px);
  }

  .socbar-nav svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 400px) {
  .socbar-nav a { width: 46px; height: 46px; }
  .socbar-nav svg { width: 24px; height: 24px; }
  .socbar-line { width: 10px; }
}

@media (max-height: 500px) {
  .socbar { display: none !important; }
}

/* ── Drawer Social Section ── */
.drawer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 0 4px;
  width: 100%;
}

.drawer-social-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(22% 0.093 282 / .38);
}

.drawer-social-icons {
  display: flex;
  gap: 6px;
}

.drawer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: oklch(22% 0.093 282 / .07);
  color: oklch(22% 0.093 282 / .5);
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.drawer-social-icons a:hover {
  background: oklch(74.9% 0.166 61);
  color: oklch(99% 0.004 65);
  transform: translateY(-2px);
}

.drawer-social-icons svg {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
