/* =========================================================
   Kaboly — Social page (extends style.css + careers.css)
   ========================================================= */
:root {
  --ig: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF);
  --fb: #1877F2;
  --tt: #111111;
  --sc: #FFFC00;
}

.hero--social { padding-bottom: clamp(100px, 11vw, 140px); }
.social-hero { position: relative; text-align: center; }
.social-hero .crumbs { justify-content: center; }
.social-hero .hero__lead { margin-inline: auto; }

.pchips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.pchip {
  display: flex; align-items: center; gap: 12px; min-width: 190px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 18px;
  padding: 12px 18px; color: #fff; transition: background .2s, transform .2s;
}
.pchip:hover { background: rgba(255,255,255,.2); transform: translateY(-3px); }
.pchip > svg { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: #fff; color: var(--red); flex-shrink: 0; }
.pchip span { display: flex; flex-direction: column; line-height: 1.25; text-align: start; }
.pchip strong { font-family: var(--font-display); font-size: 1.25rem; direction: ltr; unicode-bidi: plaintext; }
.pchip small { opacity: .8; font-size: .82rem; }

/* ---------- Sticky tabs ---------- */
.ptabs {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.ptabs__inner { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.ptabs__inner::-webkit-scrollbar { display: none; }
.ptab {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: .5em 1.1em; border-radius: 999px; font-weight: 700; color: var(--espresso);
  border: 1.5px solid var(--line); background: #fff; transition: all .2s;
}
.ptab svg { width: 18px; height: 18px; }
.ptab:hover { border-color: var(--red); color: var(--red); }
.ptab.is-active { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Feed sections ---------- */
.feed { padding: clamp(48px, 7vw, 84px) 0; scroll-margin-top: calc(var(--header-h) + 60px); }
.feed:nth-of-type(even) { background: var(--cream); }
.feed__head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.feed__badge { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: #fff; flex-shrink: 0; box-shadow: var(--shadow); }
.feed__badge svg { width: 30px; height: 30px; }
.feed--instagram .feed__badge { background: var(--ig); }
.feed--facebook .feed__badge { background: var(--fb); }
.feed--tiktok .feed__badge { background: var(--tt); }
.feed--snapchat .feed__badge { background: var(--sc); color: #111; }
.feed__title { flex: 1; min-width: 200px; }
.feed__title h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.feed__title p { margin: 0; color: var(--muted); }
.feed__handle { direction: ltr; unicode-bidi: isolate; font-weight: 600; }
.feed__note {
  display: flex; align-items: center; gap: 10px; margin: -8px 0 20px;
  background: #fff8e6; border: 1px solid #f3dca4; color: #7a5a12; border-radius: 12px; padding: 10px 14px; font-size: .92rem;
}
.feed__note[hidden] { display: none; }
.feed__note::before { content: "i"; width: 22px; height: 22px; border-radius: 50%; background: #e8b04b; color: #fff; font-weight: 800; display: grid; place-items: center; flex-shrink: 0; font-family: var(--font-display); font-size: .8rem; }

.feed__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feed--tiktok .feed__grid, .feed--snapchat .feed__grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }

/* ---------- Post card ---------- */
.post {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; text-align: start; cursor: pointer;
  font: inherit; color: inherit; padding: 0;
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post__media { position: relative; aspect-ratio: 1; background: var(--cream-2); overflow: hidden; }
.feed--facebook .post__media { aspect-ratio: 1.25; }
.feed--tiktok .post__media, .feed--snapchat .post__media { aspect-ratio: 9 / 16; }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post:hover .post__media img { transform: scale(1.05); }
.post__type { position: absolute; top: 10px; inset-inline-end: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); }
.post__type svg { width: 15px; height: 15px; }
.post__stats { position: absolute; inset-inline: 0; bottom: 0; display: flex; gap: 12px; padding: 30px 12px 10px; color: #fff; font-size: .82rem; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.6)); direction: ltr; justify-content: flex-end; }
html[dir="rtl"] .post__stats { justify-content: flex-start; }
.post__stats span { display: inline-flex; align-items: center; gap: 4px; }
.post__stats svg { width: 14px; height: 14px; }
.post__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post__caption { margin: 0; font-size: .93rem; line-height: 1.6; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; unicode-bidi: plaintext; }
.post__caption .tag { color: var(--red); }
.post__date { font-size: .8rem; color: var(--muted); margin-top: auto; }
.feed--tiktok .post__body, .feed--snapchat .post__body { padding: 10px 12px 12px; }
.feed--tiktok .post__caption, .feed--snapchat .post__caption { -webkit-line-clamp: 2; font-size: .86rem; }

/* Demo / placeholder tiles */
.post--demo .post__media { display: grid; place-items: center; color: rgba(255,255,255,.95); }
.post--demo .post__media svg.demo-ico { width: 38%; height: auto; max-width: 110px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.2)); }
.post--demo .post__media::after {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cellipse cx='15' cy='15' rx='5' ry='7.5' transform='rotate(35 15 15)' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3Cellipse cx='45' cy='45' rx='5' ry='7.5' transform='rotate(-35 45 45)' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E");
}
.post--demo .post__media img.demo-logo { position: absolute; top: 12px; inset-inline-start: 12px; width: 56px; height: auto; object-fit: contain; opacity: .95; transform: none; }
.demo-badge { position: absolute; bottom: 10px; inset-inline-start: 10px; background: rgba(255,255,255,.92); color: var(--red-700); font-size: .72rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; z-index: 1; }
.g1 { background: linear-gradient(135deg, #CF152D, #8E0D1E); }
.g2 { background: linear-gradient(135deg, #3A241B, #1E1210); }
.g3 { background: linear-gradient(135deg, #E8B04B, #B3741A); }
.g4 { background: linear-gradient(135deg, #B31126, #4A0710); }
.g5 { background: linear-gradient(135deg, #6E3B26, #2A1A14); }
.g6 { background: linear-gradient(135deg, #D63447, #E8B04B); }

/* Skeleton */
.post--skel { pointer-events: none; }
.post--skel .post__media, .skel-line { background: linear-gradient(90deg, #f1e9df 25%, #f8f2ea 50%, #f1e9df 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skel-line { height: 12px; border-radius: 6px; }
.skel-line + .skel-line { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Follow card (empty state) */
.follow-card { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #fff; border: 2px dashed var(--line); border-radius: 20px; padding: 26px; }
.follow-card p { margin: 0; color: var(--muted); }

/* ---------- WhatsApp band ---------- */
.wa-band {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: linear-gradient(135deg, #128C7E, #25D366); color: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 40px);
}
.wa-band__ico { width: 72px; height: 72px; border-radius: 22px; background: rgba(255,255,255,.18); display: grid; place-items: center; flex-shrink: 0; }
.wa-band__ico svg { width: 38px; height: 38px; }
.wa-band > div { flex: 1; min-width: 240px; }
.wa-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .2em; }
.wa-band p { margin: 0; opacity: .92; }
.wa-band .btn--light { color: #128C7E; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(20,10,8,.8); backdrop-filter: blur(4px); }
.lightbox__panel { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; width: min(1000px, 100%); max-height: calc(100vh - 32px); background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.lightbox__media { background: #111; display: grid; place-items: center; min-height: 300px; }
.lightbox__media img { max-width: 100%; max-height: calc(100vh - 32px); object-fit: contain; }
.lightbox__body { padding: 26px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.lightbox__meta { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); font-size: .9rem; flex-wrap: wrap; }
.lightbox__caption { white-space: pre-line; line-height: 1.7; margin: 0; flex: 1; unicode-bidi: plaintext; }
.lightbox__body .btn { align-self: flex-start; }
.lightbox__close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow); }
.lightbox__close svg { width: 18px; height: 18px; }
body.no-scroll { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .feed--tiktok .feed__grid, .feed--snapchat .feed__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .feed__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .feed--tiktok .feed__grid, .feed--snapchat .feed__grid { grid-template-columns: repeat(2, 1fr); }
  .feed__follow { width: 100%; justify-content: center; }
  .pchip { min-width: 0; flex: 1 1 42%; padding: 10px 12px; }
  .pchip > svg { width: 36px; height: 36px; padding: 8px; }
  .lightbox__panel { grid-template-columns: 1fr; overflow-y: auto; }
  .lightbox__media img { max-height: 55vh; }
  .post__body { padding: 10px 12px 12px; }
  .post__caption { font-size: .86rem; -webkit-line-clamp: 2; }
}
