/* ════════════════════════════════════════════════════════
   commission.css  —  page-specific styles for commission.html
   All theme variables (colors, header, footer) come from theme.css
════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
#comm-hero {
  background: var(--blue);
  color: #fff;
  height: calc(100vh - 54px);
  height: calc(100svh - 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px 20px 80px;
  position: relative;
  overflow: hidden;
}

#comm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(45deg,  rgba(255,255,255,0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.04) 25%, transparent 25%),
    linear-gradient(45deg,  transparent 75%, rgba(255,255,255,0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.04) 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0;
  pointer-events: none;
}

#comm-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(100% - 40px);
  padding: 40px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.60);
  margin-bottom: 16px;
  animation: fadeUp 0.6s ease both 0.1s;
}

#comm-hero p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255,255,255,0.65);
  max-width: 460px;
  margin: 20px auto 0;
  animation: fadeUp 0.6s ease both 0.35s;
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 1;
  animation: fadeUp 0.6s ease both 0.5s;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}
.hero-scroll span::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--yellow);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ════════════════════════════════════════════════════════
   TICKER
════════════════════════════════════════════════════════ */
.ticker-wrap {
  background: var(--yellow);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}

.ticker-track {
  display: inline-block;
  animation: ticker 22s linear infinite;
}

.ticker-track span {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0d0d0d;
  padding: 0 6px;
}

.ticker-track .dot {
  color: rgba(0,0,0,0.35);
  padding: 0 2px;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ════════════════════════════════════════════════════════
   CATEGORY NAV
════════════════════════════════════════════════════════ */
.category-nav {
  position: sticky;
  top: var(--header-h, 54px);
  z-index: 400;
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.category-nav .container {
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.category-nav .container::-webkit-scrollbar { display: none; }

.category-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  min-width: 100%;
  width: max-content;
  padding: 0 20px;
  box-sizing: border-box;
  justify-content: center;
}

.category-nav ul::-webkit-scrollbar { display: none; }

.category-nav ul li { flex-shrink: 0; }

.nav-link {
  display: block;
  padding: 14px 20px;
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav-link:hover { color: var(--text); }

.nav-link.active-link {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ════════════════════════════════════════════════════════
   CONTENT SECTIONS
════════════════════════════════════════════════════════ */
#comm-content {
  background: var(--bg);
  transition: background 0.3s;
}

.comm-section {
  display: none;
  padding: 64px 0 80px;
  text-align: center;
  animation: fadeUp 0.4s ease both;
}

.comm-section.active { display: block; }

.comm-section h2 {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: clamp(1.6rem, 6vw, 3rem);
  color: var(--blue);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.comm-section h3 {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 36px 0 14px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
  margin: 0 auto 8px;
}

/* tools / links list */
.comm-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
}

.comm-section ul li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.3s;
}
.comm-section ul li:last-child { border-bottom: none; }

.contact-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  width: 80px;
  flex-shrink: 0;
}

.comm-section ul li a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
}

/* ════════════════════════════════════════════════════════
   IMAGES
════════════════════════════════════════════════════════ */
.img-container {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  justify-content: center;
  align-items: flex-start;
}

.comm-img {
  flex: 1 1 calc(50% - 16px);
  max-width: 420px;
  max-height: 340px;
  width: 100%;
  object-fit: contain;
  cursor: zoom-in;
  display: block;
}

/* Single image (payment/background) — don't stretch too wide */
.img-container:has(.comm-img:only-child) .comm-img {
  flex: 0 1 420px;
}

@media (max-width: 600px) {
  .comm-img {
    flex: 1 1 100%;
    max-width: 100%;
    max-height: 260px;
  }
}

/* ════════════════════════════════════════════════════════
   PRICE GRID
════════════════════════════════════════════════════════ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px auto 0;
  max-width: 520px;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  background: var(--bg-alt);
  transition: background 0.3s;
}

.price-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.price-amount {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.price-amount.free { color: var(--blue); }

/* ════════════════════════════════════════════════════════
   PAYMENT BADGES
════════════════════════════════════════════════════════ */
.payment-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
  justify-content: center;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  background: var(--blue);
  color: #fff;
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ════════════════════════════════════════════════════════
   TOS CARDS
════════════════════════════════════════════════════════ */
.tos-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}

.tos-card {
  display: flex;
  gap: 20px;
  padding: 24px 22px;
  background: var(--bg-alt);
  transition: background 0.3s;
}

.tos-card-num {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  opacity: 0.25;
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
}

.tos-card-title {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 8px;
}

.tos-card-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ════════════════════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════════════════════ */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
}

#lightbox.open { display: flex; }

#lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

.lb-toolbar {
  position: absolute;
  top: 14px; right: 14px;
  display: flex;
  gap: 6px;
  z-index: 3;
}

.lb-tool {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: 'BBHBartle', sans-serif;
  border-radius: 0;
}
.lb-tool:hover {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}

.lb-img-wrap {
  position: relative;
  width: 92vw;
  height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}
.lb-img-wrap.zoomed {
  cursor: grab;
}
.lb-img-wrap.zoomed img {
  cursor: grab;
}

/* ════════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #comm-hero { height: calc(100svh - 54px); padding: 40px 20px 60px; }
  .comm-section { padding: 48px 0 60px; }
  .tos-cards { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  #comm-hero .container { padding: 20px 16px; }
  .comm-section { padding: 36px 0 44px; }
  .comm-section h2 { font-size: clamp(1.4rem, 8vw, 2.4rem); }
  .section-desc { font-size: 0.9rem; }
  .price-grid { grid-template-columns: 1fr; gap: 8px; }
  .price-card { padding: 16px 14px; }
  .payment-badge { padding: 9px 18px; font-size: 0.88rem; }
  .tos-card { padding: 18px 16px; gap: 14px; }
}

/* ── Header social links ── */
.header-socials {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 10px;
}
.header-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  border-radius: 2px;
}
.header-social-link svg {
  width: 16px;
  height: 16px;
}
.header-social-link:hover { color: #fff; }

/* ── SHOWCASE HORIZONTAL REEL ── */
#comm-showcase-section {
  background: var(--film-black, #0b0b0d);
  padding: 44px 0 48px;
  border-bottom: 1.5px solid var(--border);
  overflow: hidden;
}

.showcase-reel-container {
  max-width: 100%;
  margin: 0 auto;
}

.showcase-reel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 6vw 16px;
}

.showcase-reel-header h2 {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: 1.8rem;
  color: #fff;
  margin: 0;
  letter-spacing: 0.02em;
}

.showcase-hint {
  font-family: monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.showcase-reel-track {
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 6vw 20px;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.showcase-reel-track::-webkit-scrollbar {
  height: 6px;
}
.showcase-reel-track::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
}
.showcase-reel-track::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.showcase-card {
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  aspect-ratio: 3 / 4;
  background: #17171a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.3s;
}

.showcase-card:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.showcase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.showcase-card:hover img {
  transform: scale(1.05);
}

.showcase-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  z-index: 1;
}

.showcase-meta {
  position: relative;
  z-index: 2;
  padding: 16px;
  color: #fff;
}

.showcase-client {
  font-family: 'Boldonse', 'SourceHanSansSC', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  word-break: break-word;
  overflow-wrap: break-word;
  letter-spacing: -0.01em;
}

.showcase-sub {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  gap: 6px;
  align-items: center;
}

.showcase-type {
  color: var(--yellow);
  font-weight: 700;
}

.showcase-count {
  background: rgba(255, 255, 255, 0.15);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 0.58rem;
}

.showcase-loading {
  width: 100%;
  text-align: center;
  padding: 40px 0;
  color: rgba(255,255,255,0.4);
  font-family: monospace;
}

/* ── SHOWCASE LIGHTBOX MODAL ── */
.showcase-slideshow-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 8, 0.95);
  backdrop-filter: blur(5px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.showcase-slideshow-overlay.open {
  display: flex;
}

.sc-toolbar {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.sc-tool {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-family: 'BBHBartle', sans-serif;
  border-radius: 0;
}
.sc-tool:hover {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}

.sc-container {
  position: relative;
  width: min(92vw, 960px);
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.sc-img-wrap {
  position: relative;
  max-width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sc-img-wrap.zoomed {
  cursor: grab;
}
.sc-img-wrap.zoomed img {
  cursor: grab;
}

.sc-img-wrap img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s ease;
  transform-origin: center center;
}

.sc-img-wrap img.active {
  opacity: 1;
}

.sc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.sc-arrow:hover {
  background: var(--yellow);
  color: #000;
  border-color: var(--yellow);
}

.sc-arrow-left { left: -14px; }
.sc-arrow-right { right: -14px; }

@media (max-width: 768px) {
  .sc-arrow { width: 38px; height: 38px; font-size: 1.4rem; }
  .sc-arrow-left { left: 4px; }
  .sc-arrow-right { right: 4px; }
  .showcase-reel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 6vw 12px;
  }
}

.sc-meta {
  text-align: center;
  color: #fff;
}

.sc-title {
  font-family: 'BBHBartle', 'SourceHanSansSC', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.sc-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}
