/* ============================================================
   File: 10-partners-showcase-alt.css
   Alternate large Partners showcase component (.p-showcase / .p-stage / .p-grid) - a different Partners layout from the main section in 14-partners.css.
   ============================================================ */

/* ----- Partners showcase ----- */
.p-showcase {
  display: grid;
  grid-template-columns: 1.05fr 1.4fr;
  gap: 32px;
  align-items: stretch;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 980px) { .p-showcase { grid-template-columns: 1fr; padding: 22px; } }

.p-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}
.p-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--p-bg, #005baa), color-mix(in oklab, var(--p-bg, #005baa) 60%, #000));
  transition: background 1s ease;
  z-index: 0;
}
.p-bg::before, .p-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .4;
}
.p-bg::before {
  width: 320px; height: 320px;
  background: rgba(255,255,255,.4);
  top: -120px; inset-inline-end: -80px;
  animation: drift 8s ease-in-out infinite;
}
.p-bg::after {
  width: 220px; height: 220px;
  background: rgba(0,0,0,.5);
  bottom: -100px; inset-inline-start: -60px;
  animation: drift 11s ease-in-out infinite reverse;
}
.p-stage-inner {
  position: relative;
  z-index: 1;
  padding: 36px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  height: 100%;
  min-height: 420px;
}
.p-mark {
  width: 72px; height: 72px;
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.p-name {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}
.p-meta {
  display: inline-flex; gap: 8px; align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.12);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
}
.p-services {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.p-services .chip {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}
.p-stat-row {
  display: flex; gap: 24px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding-top: 18px;
}
.p-stat-row > div .label {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.p-stat-row > div .value {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
  color: #fff;
}

.p-side { display: flex; flex-direction: column; gap: 16px; min-height: 100%; }
.p-side-head {
  display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.p-counter {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
html[lang="ar"] .p-counter { font-family: var(--font-ar); letter-spacing: 0; }

.p-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  flex: 1;
}
@media (max-width: 540px) { .p-grid { grid-template-columns: repeat(2, 1fr); } }
.p-cell {
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 6px;
  cursor: pointer;
  transition: all .25s cubic-bezier(.2,.7,.2,1);
  text-align: start;
  position: relative;
  overflow: hidden;
  min-height: 92px;
}
.p-cell:hover { border-color: var(--ink); transform: translateY(-2px); }
.p-cell.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}
.p-cell .pc-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--pc-color, var(--accent));
  display: grid; place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.p-cell.active .pc-mark { background: var(--accent); }
.p-cell .pc-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.p-cell .pc-sector {
  font-size: 11px;
  color: var(--ink-3);
}
.p-cell.active .pc-sector { color: rgba(255,255,255,.7); }
.p-cell::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: inset-inline-start;
  transition: transform 4.5s linear;
}
html[dir="rtl"] .p-cell::after { transform-origin: right; }
.p-cell.active.playing::after { transform: scaleX(1); }

.p-controls {
  display: flex; gap: 10px; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 4px;
}
.p-btn-row { display: flex; gap: 8px; }
.p-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: all .15s;
}
.p-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
html[dir="rtl"] .p-btn svg.flip-rtl { transform: scaleX(-1); }

.p-cta {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--accent-soft), #ecfdf5);
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
}
.p-cta strong { display: block; color: var(--ink); margin-bottom: 2px; font-size: 14px; }
.p-cta .icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.p-cta a {
  margin-inline-start: auto;
  color: var(--accent-ink);
  font-weight: 600;
  white-space: nowrap;
}

