/* =============================================================================
   Orange Interior — Social Tabs (Instagram / YouTube / LinkedIn)
   The YouTube and LinkedIn panels reuse your existing Instagram section's
   oi-insta-v2-* markup, so the site's own CSS styles them identically.
   This file only adds: the header + tab bar, panel switching, the YouTube
   play button, the LinkedIn placeholder tag and the video pop-up.
   ============================================================================= */

.oi-social-section {
  --oi-social-orange: #f46a24;
  --oi-social-orange-dark: #d9551a;
  --oi-social-orange-soft: #fff1e8;
  --oi-social-ink: #1d1b1a;
  --oi-social-muted: #6f655e;
  --oi-social-line: #ebe2da;
  --oi-social-white: #ffffff;
  --oi-social-shadow: 0 10px 30px rgba(29, 27, 26, 0.08);
  --oi-social-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  position: relative;
  padding: 72px 0 0;
  color: var(--oi-social-ink);
}

/* Make sure inactive panels stay hidden even if the theme styles [hidden] */
.oi-social-section [hidden] { display: none !important; }

.oi-social-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.oi-social-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ---------- Header ---------- */
.oi-social-head { text-align: center; }

.oi-social-eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--oi-social-orange-soft);
  color: var(--oi-social-orange-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.oi-social-title {
  margin: 0 0 10px;
  color: var(--oi-social-ink);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.2;
}

.oi-social-subtitle {
  max-width: 560px;
  margin: 0 auto 28px;
  color: var(--oi-social-muted);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- Tabs ---------- */
.oi-social-tablist {
  display: inline-flex;
  gap: 6px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid var(--oi-social-line);
  border-radius: 999px;
  background: var(--oi-social-white);
  box-shadow: var(--oi-social-shadow);
}

.oi-social-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--oi-social-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s var(--oi-social-ease), color 0.25s var(--oi-social-ease), box-shadow 0.25s var(--oi-social-ease);
}

.oi-social-tab:hover { background: var(--oi-social-orange-soft); color: var(--oi-social-orange-dark); }

.oi-social-tab.is-active,
.oi-social-tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--oi-social-orange), var(--oi-social-orange-dark));
  color: var(--oi-social-white);
  box-shadow: 0 6px 16px rgba(244, 106, 36, 0.35);
}

.oi-social-tab:focus-visible { outline: 3px solid var(--oi-social-ink); outline-offset: 2px; }

.oi-social-tab-icon { width: 18px; height: 18px; flex: 0 0 18px; fill: currentColor; }

/* ---------- Panels ---------- */
.oi-social-panel:focus { outline: none; }
.oi-social-panel:focus-visible { outline: 3px dashed var(--oi-social-orange); outline-offset: -3px; }

.oi-social-panel.is-entering { animation: oi-social-fade 0.4s var(--oi-social-ease); }

@keyframes oi-social-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- YouTube tiles (inside the reused Instagram grid) ---------- */
.oi-social-section .oi-insta-v2-post { position: relative; }

.oi-social-yt-post img { object-fit: cover; }

.oi-social-yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--oi-social-orange);
  color: var(--oi-social-white);
  font-size: 18px;
  box-shadow: 0 0 0 7px rgba(244, 106, 36, 0.28), 0 10px 24px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.3s var(--oi-social-ease), background-color 0.3s var(--oi-social-ease);
}

.oi-social-yt-play .fa { margin-left: 3px; }

.oi-social-yt-post:first-child .oi-social-yt-play { width: 70px; height: 70px; font-size: 24px; }

.oi-social-yt-post:hover .oi-social-yt-play,
.oi-social-yt-post:focus-visible .oi-social-yt-play {
  background: var(--oi-social-orange-dark);
  transform: translate(-50%, -50%) scale(1.1);
}

.oi-social-section .oi-insta-v2-post:focus-visible {
  outline: 3px solid var(--oi-social-orange);
  outline-offset: 2px;
}

/* ---------- LinkedIn placeholder tag ---------- */
.oi-social-placeholder-tag {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 3px 8px;
  border: 1px dashed currentColor;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--oi-social-orange-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  pointer-events: none;
}

/* ---------- Video pop-up ---------- */
.oi-social-modal {
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #000;
  overflow: visible;
}

.oi-social-modal::backdrop { background: rgba(20, 18, 17, 0.82); }

.oi-social-modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
}

.oi-social-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.oi-social-modal-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  text-align: center;
}

.oi-social-modal-fallback p { margin: 0; font-size: 16px; }

.oi-social-modal-watch {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  background: #f46a24;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.oi-social-modal-watch:hover,
.oi-social-modal-watch:focus-visible { background: #d9551a; color: #fff; }

.oi-social-modal-close {
  position: absolute;
  top: -18px;
  right: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--oi-social-orange, #f46a24);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

/* YouTube left-card gradient */
.oi-social-section [data-oi-social-panel="youtube"] .oi-insta-v2-top-badge,
.oi-social-section [data-oi-social-panel="youtube"] .oi-insta-v2-ring,
.oi-social-section [data-oi-social-panel="youtube"] .oi-insta-v2-follow-btn {
    background: linear-gradient(135deg, #FF4B4B, #D90020);
}

/* LinkedIn left-card gradient */
.oi-social-section [data-oi-social-panel="linkedin"] .oi-insta-v2-top-badge,
.oi-social-section [data-oi-social-panel="linkedin"] .oi-insta-v2-ring,
.oi-social-section [data-oi-social-panel="linkedin"] .oi-insta-v2-follow-btn {
    background: linear-gradient(135deg, #0A96E8, #0755A1);
}

/* YouTube left-card text colors */
.oi-social-section [data-oi-social-panel="youtube"] .oi-insta-v2-handle,
.oi-social-section [data-oi-social-panel="youtube"] .oi-insta-v2-stat strong {
    color: #D90020;
}

/* LinkedIn left-card text colors */
.oi-social-section [data-oi-social-panel="linkedin"] .oi-insta-v2-handle,
.oi-social-section [data-oi-social-panel="linkedin"] .oi-insta-v2-stat strong {
    color: #0755A1;
}