/* ============================================================
   PHATSUNNY.COM — Shared Unit Page Styles
   Matches phatsunny.com brand: #000 bg, #FF6B35 orange, white
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --orange:   #FF6B35;
  --orange2:  #F7931E;
  --black:    #000000;
  --dark:     #0a0a0a;
  --mid:      #1a1a1a;
  --white:    #ffffff;
  --gray:     #cccccc;
  --border:   rgba(255,107,53,0.3);
  --glow:     rgba(255,107,53,0.15);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
}

/* ── HAMBURGER NAV ───────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo a {
  text-decoration: none;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.site-logo span { color: var(--orange); }

/* hamburger button */
.ham-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  cursor: pointer;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: background 0.25s, border-color 0.25s;
}
.ham-btn:hover { background: var(--glow); border-color: var(--orange); }
.ham-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.ham-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ham-btn.open span:nth-child(2) { opacity: 0; }
.ham-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  height: 100vh;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  border-left: 2px solid var(--border);
  z-index: 8999;
  overflow-y: auto;
  transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
  padding: 80px 0 40px;
}
.nav-drawer.open { right: 0; }
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 8998;
}
.drawer-overlay.open { display: block; }

.drawer-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  padding: 20px 24px 8px;
  border-bottom: 1px solid var(--border);
}
.drawer-section-label:not(:first-child) { margin-top: 12px; }

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  text-decoration: none;
  color: var(--gray);
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
  border-left: 3px solid transparent;
}
.drawer-link:hover,
.drawer-link.active {
  color: var(--white);
  background: var(--glow);
  border-left-color: var(--orange);
  padding-left: 28px;
}
.drawer-link .ph-tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--orange);
  background: rgba(255,107,53,0.12);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}

/* top nav pills (back to main site) */
.top-pill-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.top-pill {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  transition: all 0.25s;
  white-space: nowrap;
}
.top-pill:hover {
  background: rgba(255,107,53,0.25);
  border-color: var(--orange);
  transform: translateY(-2px);
}

/* ── UNIT HERO ───────────────────────────────────────────── */
.unit-hero {
  background: linear-gradient(135deg, #000 0%, #111 60%, #1a0a00 100%);
  padding: 70px 24px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--border);
}
.unit-hero::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.unit-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.unit-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 12px;
  text-shadow: 0 0 30px rgba(255,107,53,0.35);
}
.unit-hero .inspired-by {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 28px;
}
.unit-hero .inspired-by strong { color: var(--white); }

/* ── PLUGIN SCREENSHOT PLACEHOLDER ──────────────────────── */
.plugin-screenshot-wrap {
  max-width: 820px;
  margin: 0 auto 50px;
  padding: 0 24px;
}
.plugin-screenshot {
  width: 100%;
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, #111 0%, #1a1a1a 50%, #0d0d0d 100%);
  border: 2px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,107,53,0.08);
  overflow: hidden;
  position: relative;
}
.plugin-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  display: none; /* shown when src is set */
}
.plugin-screenshot.has-image .placeholder-inner { display: none; }
.plugin-screenshot.has-image img { display: block; }

.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.25);
}
.placeholder-inner .ph-icon {
  font-size: 3rem;
  line-height: 1;
}
.placeholder-inner .ph-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.placeholder-inner .ph-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.15);
}
.screenshot-caption {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-top: 10px;
  letter-spacing: 0.06em;
}

/* ── CLAP SUITE CALLOUT ──────────────────────────────────── */
.clap-callout {
  max-width: 820px;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.clap-callout-inner {
  background: linear-gradient(135deg, rgba(255,107,53,0.12) 0%, rgba(247,147,30,0.06) 100%);
  border: 2px solid var(--orange);
  border-radius: 16px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.clap-badge {
  font-size: 2.2rem;
  flex-shrink: 0;
}
.clap-text h3 {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 4px;
}
.clap-text p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.5;
}
.clap-text p a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 700;
}
.clap-text p a:hover { text-decoration: underline; }

/* ── MAIN CONTENT GRID ───────────────────────────────────── */
.unit-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .unit-content { grid-template-columns: 1fr; }
}

/* specs / features */
.unit-main h2 {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--white);
}
.unit-main h2 span { color: var(--orange); }

.unit-main p {
  color: var(--gray);
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.75;
}

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
@media (max-width: 500px) { .specs-grid { grid-template-columns: 1fr; } }

.spec-chip {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 18px;
  transition: border-color 0.25s, background 0.25s;
}
.spec-chip:hover { border-color: var(--border); background: var(--glow); }
.spec-chip .spec-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}
.spec-chip .spec-val {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 600;
}

/* features list */
.features-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.features-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
}
.features-list li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.unit-sidebar { display: flex; flex-direction: column; gap: 24px; }

.price-card {
  background: rgba(255,255,255,0.03);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
}
.price-card .hw-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.price-card .hw-price {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}
.price-card .hw-name {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 4px;
}
.price-card .hw-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}
.buy-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange2) 100%);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.25s;
  box-shadow: 0 6px 20px rgba(255,107,53,0.35);
}
.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,107,53,0.55);
}

.video-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.video-card-label {
  padding: 14px 18px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}
.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}
.video-card .no-video {
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: rgba(255,255,255,0.2);
  font-size: 0.8rem;
  text-align: center;
  padding: 20px;
}

/* ── PREV / NEXT NAV ─────────────────────────────────────── */
.unit-pagination {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px 24px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-nav-btn {
  text-decoration: none;
  color: var(--gray);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  transition: all 0.25s;
  min-width: 140px;
}
.page-nav-btn:hover { border-color: var(--orange); color: var(--white); background: var(--glow); }
.page-nav-btn .nav-dir { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); }
.page-nav-btn .nav-name { font-weight: 700; color: var(--white); }
.page-nav-btn.next { text-align: right; }

/* ── FOOTER ──────────────────────────────────────────────── */
.unit-footer {
  background: var(--black);
  border-top: 2px solid var(--orange);
  padding: 40px 24px 24px;
  text-align: center;
}
.unit-footer .footer-logo {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--orange);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.unit-footer p {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}
.unit-footer a { color: var(--orange); text-decoration: none; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-header { padding: 12px 16px; }
  .top-pill-nav { display: none; }
  .unit-hero { padding: 50px 16px 36px; }
  .clap-callout-inner { flex-direction: column; text-align: center; }
}

/* ── Drawer plugin thumbnails ── */
.drawer-link img.ph-thumb {
    width: 52px;
    height: 22px;
    object-fit: cover;
    object-position: left center;
    border-radius: 4px;
    opacity: 0.72;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.07);
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}
.drawer-link:hover img.ph-thumb {
    opacity: 1;
    border-color: var(--unit-accent, #FF6B35);
    transform: scale(1.08);
}
