/**
 * Stage3 — professional portfolio gallery toolbar & empty states
 * (portfolio.php only)
 */

/* ——— Toolbar panel ——— */
.stage3-pf-toolbar {
  position: relative;
}

.stage3-pf-panel {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px) clamp(22px, 3vw, 40px);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 40px -12px rgba(0, 0, 0, 0.08);
}

.stage3-pf-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}

.stage3-pf-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff4a17;
  margin: 0 0 10px;
}

.stage3-pf-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  color: #111;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.stage3-pf-lead {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5c5c5c;
  margin: 0;
}

/* ——— Filter: override theme underline + dot ——— */
.stage3-portfolio-page .stage3-pf-filter.stage3-pf-filter {
  margin: 0;
}

.stage3-portfolio-page .stage3-pf-filter .stage3-pf-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  border: none !important;
}

.stage3-portfolio-page .stage3-pf-filter .stage3-pf-chips > li {
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

.stage3-portfolio-page .stage3-pf-filter .stage3-pf-chips > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: #444;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
  position: relative;
}

.stage3-portfolio-page .stage3-pf-filter .stage3-pf-chips > li > a:focus-visible {
  outline: 2px solid #ff4a17;
  outline-offset: 3px;
}

/* Remove theme dot indicator */
.stage3-portfolio-page .stage3-pf-filter .stage3-pf-chips > li > a::before {
  display: none !important;
}

.stage3-portfolio-page .stage3-pf-filter .stage3-pf-chips > li > a:hover {
  color: #ff4a17;
  border-color: rgba(255, 74, 23, 0.45);
  box-shadow: 0 4px 14px -4px rgba(255, 74, 23, 0.35);
  transform: translateY(-1px);
}

.stage3-portfolio-page .stage3-pf-filter .stage3-pf-chips > li.active > a {
  color: #fff !important;
  background: linear-gradient(135deg, #ff4a17 0%, #e63e10 100%) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 20px -6px rgba(255, 74, 23, 0.55);
}

.stage3-portfolio-page .stage3-pf-filter .stage3-pf-chips > li.active > a:hover {
  color: #fff !important;
  transform: translateY(-1px);
}

/* ——— Empty states ——— */
.stage3-pf-empty-wrap {
  padding-bottom: 48px;
}

.stage3-pf-empty {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 32px;
  background: #fafafa;
  border: 1px dashed rgba(0, 0, 0, 0.1);
  border-radius: 20px;
}

.stage3-pf-empty--error {
  border-style: solid;
  border-color: rgba(180, 40, 40, 0.2);
  background: #fff8f8;
}

.stage3-pf-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  border-radius: 18px;
  border: 2px dashed rgba(0, 0, 0, 0.1);
  position: relative;
  background: rgba(255, 74, 23, 0.04);
}

.stage3-pf-empty-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 22px;
  margin: -12px 0 0 -14px;
  border: 2px solid rgba(255, 74, 23, 0.35);
  border-radius: 4px;
  box-shadow: inset 0 -6px 0 rgba(255, 74, 23, 0.12);
}

.stage3-pf-empty-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.stage3-pf-empty-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #666;
  margin: 0 0 22px;
}

.stage3-pf-empty--error .stage3-pf-empty-title {
  color: #8b1a1a;
}

.stage3-pf-empty--error .stage3-pf-empty-text {
  color: #5c3a3a;
}

.stage3-pf-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 26px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #ff4a17 0%, #e63e10 100%);
  border-radius: 999px;
  box-shadow: 0 6px 22px -8px rgba(255, 74, 23, 0.55);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.stage3-pf-empty-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -8px rgba(255, 74, 23, 0.6);
}

/* ——— Mobile: slightly tighter chips ——— */
@media screen and (max-width: 575px) {
  .stage3-pf-panel {
    border-radius: 16px;
    padding: 24px 18px;
  }

  .stage3-portfolio-page .stage3-pf-filter .stage3-pf-chips > li > a {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.7rem;
  }

  .stage3-pf-lead {
    font-size: 0.875rem;
  }
}
