/* Looker portfolio — page-specific styles (extends modern.css) */

/* Hero on this page is compact — dashboards are the main act */
.hero.hero-looker {
  min-height: clamp(280px, 36vh, 360px);
  padding: clamp(2rem, 4vw, 3rem) 0;
  background:
    radial-gradient(900px 380px at 15% -20%, rgba(125,211,252,0.18) 0%, transparent 55%),
    radial-gradient(800px 360px at 85% -10%, rgba(167,139,250,0.14) 0%, transparent 60%),
    radial-gradient(700px 320px at 50% 120%, rgba(251,191,36,0.10) 0%, transparent 55%),
    linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}
.hero.hero-looker h1 { font-size: clamp(1.75rem, 2.6vw + 0.6rem, 2.4rem); }

.platform-pill {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .75rem; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-elev);
  color: var(--text); font-weight: 500; font-size: .875rem;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
  width: 100%; text-align: left;
}
.platform-pill img { width: 20px; height: 20px; flex-shrink: 0; }
.platform-pill .count {
  margin-left: auto; font-size: .7rem; color: var(--text-3);
  background: var(--bg-soft); padding: 2px 8px; border-radius: 999px; font-weight: 600;
}
.platform-pill:hover { border-color: var(--border-2); background: var(--bg-elev); }
.platform-pill.active {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}
.platform-pill.active .count { color: var(--text); background: #fff; }

.category-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--text-3); font-weight: 600;
  margin: 1.25rem 0 .5rem;
}
.category-label:first-child { margin-top: 0; }

@media (min-width: 992px) {
  .platforms-rail {
    position: sticky; top: 86px; max-height: calc(100vh - 110px);
    overflow-y: auto; padding-right: .5rem;
  }
  .platforms-rail::-webkit-scrollbar { width: 6px; }
  .platforms-rail::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
}

.platform-detail {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
.platform-detail h3 { display: flex; align-items: center; gap: .6rem; }
.platform-detail h3 img { width: 26px; height: 26px; }

/* Mobile accordion (per-platform expand) */
.platform-accordion {
  background: transparent;
}
.platform-accordion .accordion-item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: .5rem;
  overflow: hidden;
}
.platform-accordion .accordion-button {
  background: transparent; color: var(--text);
  padding: .85rem 1rem; font-weight: 500; font-size: .92rem;
  display: flex; align-items: center; gap: .65rem;
  box-shadow: none; border-radius: 0 !important;
}
.platform-accordion .accordion-button:not(.collapsed) {
  background: var(--text); color: #fff;
  box-shadow: none;
}
.platform-accordion .accordion-button:not(.collapsed) .pa-count {
  background: rgba(255,255,255,0.18); color: #fff;
}
.platform-accordion .accordion-button::after {
  margin-left: auto;
  filter: invert(0);
  background-size: 1rem;
}
.platform-accordion .accordion-button:not(.collapsed)::after {
  filter: invert(1) brightness(2);
}
.platform-accordion .accordion-button img { width: 20px; height: 20px; flex-shrink: 0; }
.platform-accordion .accordion-button .pa-name { flex: 1; text-align: left; }
.platform-accordion .accordion-button .pa-count {
  font-size: .7rem; padding: 2px 8px; border-radius: 999px;
  background: var(--bg-soft); color: var(--text-3); font-weight: 600;
  margin-right: .6rem;
}
.platform-accordion .accordion-body {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.25rem;
}
.platform-accordion .accordion-body .platform-desc {
  font-size: .88rem; color: var(--text-2); margin: 0 0 1rem;
}
.platform-accordion .pa-cat {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-3); font-weight: 600;
  margin: 1.25rem 0 .5rem .25rem;
}
.platform-accordion .pa-cat:first-child { margin-top: 0; }

.dash-thumb {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--bg-elev); cursor: zoom-in;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
  display: block; padding: 0;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 4 / 3;
}
.dash-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 30%;  /* show the chart body, not just the title bar */
  display: block;
}
.dash-thumb:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: 0 12px 28px -16px var(--accent-glow), var(--shadow-2);
  transform: translateY(-2px);
}
.dash-thumb .zoom-badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 4px 10px; font-size: .72rem; font-weight: 600; color: var(--text);
  opacity: 0; transition: opacity .25s var(--ease);
}
.dash-thumb:hover .zoom-badge,
.dash-thumb:focus-visible .zoom-badge { opacity: 1; }

/* Lightbox */
.lb-backdrop {
  position: fixed; inset: 0; background: rgba(11,18,32,.86);
  backdrop-filter: blur(8px); z-index: 1080;
  display: none; align-items: center; justify-content: center; padding: 2rem;
  animation: fadeIn .25s var(--ease);
}
.lb-backdrop.open { display: flex; }
.lb-img { max-width: 100%; max-height: 86vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.10); color: #fff; border: 1px solid rgba(255,255,255,.18);
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .2s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,.20); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.lb-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,.10); color: #fff;
  border: 1px solid rgba(255,255,255,.18); width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.4rem;
}
.lb-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: #fff; opacity: .65; font-size: .82rem; letter-spacing: 0.02em;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }

/* Destination chips */
.dest-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem 0.95rem; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
  font-size: .88rem; font-weight: 500;
}
.dest-chip img { width: 22px; height: 22px; flex-shrink: 0; }
