/* ── SOCIAL GRID ── */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

/* ── SOCIAL LINK CARD ── */
.social-link {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.social-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.social-icon img {
  width: 90%;
  height: auto;
}

.linkedin-svg{
  border-radius: 50%;
}

.social-name {
  font-size: 14px;
  font-weight: 500;
}

.social-handle {
  font-size: 12px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
}

/* ── SOCIAL RTL ── */
[dir="rtl"] .social-link {
  flex-direction: row-reverse;
}


/* ─────────────────────────────
   PREMIUM SOCIAL CARDS
───────────────────────────── */

.social-grid {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));

  gap: 14px;
}

/* ── SOCIAL CARD ── */

.social-link {
  position: relative;

  display: flex;
  align-items: center;
  gap: 14px;

  padding: 1.3rem 1.4rem;

  text-decoration: none;

  color: var(--text);

  border-radius: 20px;

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.015)
    );

  border: 1px solid rgba(255,255,255,0.06);

  backdrop-filter: blur(12px);

  overflow: hidden;

  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
}

/* hover lift */

.social-link:hover {
  transform:
    translateY(-10px)
    scale(1.03)
    rotateX(6deg);

  border-color: rgba(124,92,255,0.25);

  background:
    linear-gradient(
      180deg,
      rgba(124,92,255,0.08),
      rgba(255,255,255,0.02)
    );

  box-shadow:
    0 18px 40px rgba(0,0,0,0.24),
    0 0 28px rgba(124,92,255,0.08);
}

/* animated neon border */

.social-link::before {
  content: "";

  position: absolute;

  inset: -2px;

  border-radius: inherit;

  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    rgba(124,92,255,0.9) 310deg,
    rgba(0,212,255,0.9) 330deg,
    transparent 360deg
  );

  opacity: 0;

  z-index: 0;

  animation: socialRotate 3s linear infinite;

  transition: opacity 0.35s ease;
}

/* reveal border */

.social-link:hover::before {
  opacity: 1;
}

/* inner layer */

.social-link::after {
  content: "";

  position: absolute;

  inset: 1px;

  border-radius: inherit;

  background: var(--card);

  z-index: 1;
}

/* keep content above */

.social-link > * {
  position: relative;
  z-index: 2;
}

/* rotating border */

@keyframes socialRotate {
  to {
    transform: rotate(360deg);
  }
}

/* ─────────────────────────────
   SOCIAL ICON
───────────────────────────── */

.social-icon {
  position: relative;

  width: 42px;
  height: 42px;

  border-radius: 12px;

  background: var(--tag-bg);

  border: 1px solid var(--border);

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  overflow: hidden;

  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* floating icon */

.social-link:hover .social-icon {
  transform:
    translateY(-4px)
    rotate(-8deg)
    scale(1.08);

  border-color: rgba(124,92,255,0.35);

  box-shadow:
    0 0 18px rgba(124,92,255,0.18);
}

/* icon image */

.social-icon img {
  width: 88%;
  height: auto;

  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}

/* icon hover */

.social-link:hover .social-icon img {
  transform: scale(1.08);

  filter:
    drop-shadow(0 0 10px rgba(124,92,255,0.3))
    drop-shadow(0 0 18px rgba(0,212,255,0.15));
}

/* ─────────────────────────────
   TEXT EFFECTS
───────────────────────────── */

.social-name {
  font-size: 14px;
  font-weight: 600;

  transition:
    transform 0.35s ease,
    color 0.35s ease;
}

/* title hover */

.social-link:hover .social-name {
  transform: translateX(4px);

  color: white;
}

/* handle */

.social-handle {
  font-size: 12px;

  color: var(--muted);

  font-family: "DM Mono", monospace;

  transition:
    transform 0.35s ease,
    color 0.35s ease;
}

/* handle hover */

.social-link:hover .social-handle {
  transform: translateX(3px);

  color: var(--accent2);
}

/* ─────────────────────────────
   SHINE SWEEP
───────────────────────────── */

.social-link .social-icon::before {
  content: "";

  position: absolute;

  top: -120%;
  left: -120%;

  width: 60%;
  height: 300%;

  transform: rotate(25deg);

  background: linear-gradient(
    to right,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );

  opacity: 0;
}

/* trigger shine */

.social-link:hover .social-icon::before {
  opacity: 1;

  animation: socialShine 0.9s ease;
}

/* shine movement */

@keyframes socialShine {
  from {
    left: -120%;
  }

  to {
    left: 180%;
  }
}

[dir="rtl"] .social-link {
  flex-direction: row-reverse;
}