/**
 * Portfolio Archive / Taxonomy / Single Page Styles
 *
 * Loaded only on portfolio CPT pages (see inc/enqueue.php). The reusable
 * card/tabs component styles used by the mediaspot/portfolio block live in
 * global.css instead, since that block can appear on any page.
 *
 * @package Mediaspot
 */

/* ==========================================================================
   Ambient Light Stripes (same drifting-stripe system as the homepage hero)
   ========================================================================== */
.portfolio-single .stripe {
  position: absolute;
  left: 0;
  width: 1400px;
  border-radius: 999px;
  transform-origin: left center;
  will-change: transform;
  animation: portfolio-stripe-drift 28s linear infinite;
  pointer-events: none;
}
@keyframes portfolio-stripe-drift {
  from { transform: translateX(-1200px) rotate(-22deg); }
  to   { transform: translateX(2600px) rotate(-22deg); }
}
.portfolio-single .s1 { top: 10%; height: 28px; filter: blur(20px); opacity: .22; animation-delay: -2s; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, var(--brand-yellow) 40%, var(--brand-yellow) 60%, rgba(255,255,255,0) 100%); }
.portfolio-single .s2 { top: 32%; height: 6px;  filter: blur(4px);  opacity: .32; animation-delay: -11s; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, var(--brand-teal) 40%, var(--brand-teal) 60%, rgba(255,255,255,0) 100%); }
.portfolio-single .s3 { top: 68%; height: 32px; filter: blur(22px); opacity: .18; animation-delay: -17s; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, var(--brand-blue) 40%, var(--brand-blue) 60%, rgba(255,255,255,0) 100%); }
.portfolio-single .s4 { top: 86%; height: 8px;  filter: blur(5px);  opacity: .28; animation-delay: -6s; background: linear-gradient(90deg, rgba(255,255,255,0) 0%, var(--brand-red) 40%, var(--brand-red) 60%, rgba(255,255,255,0) 100%); }

@media (prefers-reduced-motion: reduce) {
  .portfolio-single .stripe { animation: none; }
}

/* ==========================================================================
   Single Portfolio Item: WooCommerce-single-product-style layout
   ========================================================================== */
.portfolio-single__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 1.75rem;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 25px 50px -20px rgba(15, 23, 42, 0.35);
}
.portfolio-single__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.portfolio-single__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(160deg, #0f172a, #1e293b);
}
.portfolio-single__content :where(p) {
  margin: 0;
}

/* ==========================================================================
   Portfolio Archive & Category Pagination
   ========================================================================== */
.portfolio-pagination {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.portfolio-pagination .navigation.pagination {
  margin: 0;
}

.portfolio-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.portfolio-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 2.85rem;
  height: 2.85rem;
  padding: 0 0.9rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-pagination a.page-numbers:hover {
  transform: translateY(-2px);
  background: rgba(27, 191, 166, 0.12);
  border-color: var(--pg-accent, #1BBFA6);
  color: #0f172a;
  box-shadow: 0 10px 20px -6px rgba(15, 23, 42, 0.16);
}

.portfolio-pagination a.page-numbers:focus-visible {
  outline: 2px solid var(--pg-accent, #00A7DB);
  outline-offset: 3px;
}

.portfolio-pagination .page-numbers.current {
  background: var(--pg-accent, linear-gradient(135deg, #00A7DB 0%, #1BBFA6 100%));
  border-color: transparent;
  color: var(--pg-accent-fg, #ffffff);
  box-shadow: 0 10px 24px -6px rgba(0, 167, 219, 0.42);
  cursor: default;
}

.portfolio-pagination .page-numbers.prev,
.portfolio-pagination .page-numbers.next {
  padding: 0 1.35rem;
  background: #090D16;
  border-color: #090D16;
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(9, 13, 22, 0.34);
}

.portfolio-pagination .page-numbers.prev:hover,
.portfolio-pagination .page-numbers.next:hover {
  background: var(--pg-accent, #0284c7);
  border-color: var(--pg-accent, #0284c7);
  color: var(--pg-accent-fg, #ffffff);
}

.portfolio-pagination .page-numbers.dots {
  min-width: 2rem;
  padding: 0 0.25rem;
  border: none;
  background: transparent;
  box-shadow: none;
  color: #94a3b8;
  pointer-events: none;
}

@media (max-width: 639px) {
  .portfolio-pagination .page-numbers {
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.7rem;
    font-size: 0.85rem;
  }
  .portfolio-pagination .page-numbers.prev,
  .portfolio-pagination .page-numbers.next {
    padding: 0 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-pagination .page-numbers {
    transition: none;
  }
  .portfolio-pagination a.page-numbers:hover {
    transform: none;
  }
}
