/* ============================================================================
   THEME 4: EXECUTIVE PRO STUDIO (data-site-theme="prostudio")
   100% Distinct Top-Navigation SaaS Architecture (Stripe / Linear / Raycast UI)
   Preserves 100% of all URLs, internal links, single pages, and JS logic.
   ============================================================================ */

/* Hide Pro Studio ribbon on Themes 1, 2, 3 */
.prostudio-taxonomy-ribbon,
.prostudio-only-btn {
  display: none !important;
}

/* ============================================================================
   ACTIVE WHEN html[data-site-theme="prostudio"]
   ============================================================================ */
html.dark[data-site-theme="prostudio"],
html.dark[data-site-theme="prostudio"] body {
  --md-sys-color-background: #090a10 !important;
  --md-sys-color-surface: #11131f !important;
  --md-sys-color-surface-container-low: #0e101a !important;
  --md-sys-color-surface-container-high: #191c2e !important;
  --md-sys-color-primary: #818cf8 !important;
  --md-sys-color-on-primary: #090a10 !important;
  --bg: #090a10 !important;
  background-color: #090a10 !important;
  background-image: radial-gradient(ellipse 80% 420px at 50% 0%, rgba(99, 102, 241, 0.13), transparent 75%) !important;
  background-repeat: no-repeat !important;
}

html:not(.dark)[data-site-theme="prostudio"],
html:not(.dark)[data-site-theme="prostudio"] body {
  --md-sys-color-background: #ffffff !important;
  --md-sys-color-surface: #f1f5f9 !important;
  --md-sys-color-surface-container-low: #f1f5f9 !important;
  --md-sys-color-surface-container-high: #e2e8f0 !important;
  --md-sys-color-primary: #4f46e5 !important;
  background-color: #ffffff !important;
  background-image: radial-gradient(ellipse 80% 380px at 50% 0%, rgba(79, 70, 229, 0.06), transparent 75%) !important;
  background-repeat: no-repeat !important;
}

/* 1. Replace Left Sidebar on Desktop with Full Top-Navigation Portal */
@media (min-width: 768px) {
  html[data-site-theme="prostudio"] .sidebar-wrapper {
    display: none !important;
    width: 0 !important;
    flex: 0 0 0 !important;
  }

  html[data-site-theme="prostudio"] .nav-drawer {
    display: none !important;
  }
}

html[data-site-theme="prostudio"] .site-header {
  background: rgba(9, 10, 16, 0.88) !important;
  backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid rgba(129, 140, 248, 0.16) !important;
}
html:not(.dark)[data-site-theme="prostudio"] .site-header {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

/* Show StartupCredits Brand Logo in Top Header on Desktop */
html[data-site-theme="prostudio"] .site-header .nav-leading,
html[data-site-theme="prostudio"] .site-header .wordmark {
  display: inline-flex !important;
  align-items: center !important;
}

html[data-site-theme="prostudio"] .site-header .site-logo {
  height: 36px !important;
  width: 182px !important;
  max-width: 190px !important;
  object-fit: contain !important;
  display: block !important;
}
html.dark[data-site-theme="prostudio"] .site-header .logo-light {
  display: none !important;
}
html:not(.dark)[data-site-theme="prostudio"] .site-header .logo-dark {
  display: none !important;
}

html[data-site-theme="prostudio"] .prostudio-only-btn {
  display: inline-flex !important;
}

html[data-site-theme="prostudio"] .site-header nav {
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
}

html[data-site-theme="prostudio"] .search-bar {
  max-width: 380px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(129, 140, 248, 0.22) !important;
  background: rgba(17, 19, 31, 0.85) !important;
}
html:not(.dark)[data-site-theme="prostudio"] .search-bar {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

/* 2. Pro Studio Second-Tier Taxonomy Ribbon (All Categories & Topics) */
html[data-site-theme="prostudio"] .prostudio-taxonomy-ribbon {
  display: block !important;
  width: 100% !important;
  border-top: 1px solid rgba(148, 163, 184, 0.1) !important;
  background: rgba(13, 15, 24, 0.75) !important;
  padding: 8px 0 !important;
}
html:not(.dark)[data-site-theme="prostudio"] .prostudio-taxonomy-ribbon {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
}

.prostudio-ribbon-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.prostudio-ribbon-inner::-webkit-scrollbar {
  display: none;
}

.prostudio-ribbon-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.prostudio-ribbon-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-right: 2px;
}

.prostudio-ribbon-sep {
  width: 1px;
  height: 18px;
  background: rgba(148, 163, 184, 0.22);
  margin: 0 4px;
  flex-shrink: 0;
}

.prostudio-tax-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: #cbd5e1;
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
  white-space: nowrap;
  transition: all 0.15s ease;
}
html:not(.dark) .prostudio-tax-pill {
  color: #334155;
  background: #ffffff;
  border-color: #cbd5e1;
}

.prostudio-tax-pill:hover,
.prostudio-tax-pill.active {
  background: rgba(99, 102, 241, 0.22);
  color: #ffffff;
  border-color: #6366f1;
}
html:not(.dark) .prostudio-tax-pill:hover,
html:not(.dark) .prostudio-tax-pill.active {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
}

.prostudio-tax-pill.pro-cat-pill {
  border-color: rgba(16, 185, 129, 0.25);
}

.prostudio-tax-cnt {
  font-size: 10.5px;
  opacity: 0.72;
  font-weight: 700;
}

/* 3. Centered 1480px Executive Container */
html[data-site-theme="prostudio"] .layout-main .container-fluid,
html[data-site-theme="prostudio"] .site-header .container,
html[data-site-theme="prostudio"] .site-footer .container {
  max-width: 1480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
}

/* 4. Executive SaaS Card Grid (3 Columns on Wide, 2 on Laptop, 1 on Mobile) */
html[data-site-theme="prostudio"] .resource-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

@media (max-width: 1280px) {
  html[data-site-theme="prostudio"] .resource-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  html[data-site-theme="prostudio"] .resource-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .prostudio-ribbon-inner {
    padding: 0 14px;
  }
}

html[data-site-theme="prostudio"] .list-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 20px 22px !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #131626 0%, #0d0f1a 100%) !important;
  border: 1px solid rgba(129, 140, 248, 0.18) !important;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.55) !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}
html:not(.dark)[data-site-theme="prostudio"] .list-item {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.07) !important;
}

html:not(.dark)[data-site-theme="prostudio"] .item-desc {
  color: #475569 !important;
}

html:not(.dark)[data-site-theme="prostudio"] .item-leading .item-logo {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html[data-site-theme="prostudio"] .list-item:hover {
  transform: translateY(-4px) !important;
  border-color: #6366f1 !important;
  box-shadow: 0 18px 38px -12px rgba(99, 102, 241, 0.28) !important;
}

html[data-site-theme="prostudio"] .item-leading {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin-bottom: 2px !important;
}

html[data-site-theme="prostudio"] .item-leading .item-logo {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  padding: 4px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-bottom: 0 !important;
}

html[data-site-theme="prostudio"] .item-content {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

html[data-site-theme="prostudio"] .item-header {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

/* Move Title & Credit Badge ABOVE the metadata row */
html[data-site-theme="prostudio"] .item-title-row {
  order: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

html[data-site-theme="prostudio"] .item-trailing {
  margin-left: 0 !important;
  order: -1 !important;
}

html[data-site-theme="prostudio"] .item-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.38 !important;
  letter-spacing: -0.2px !important;
  margin: 0 !important;
}

html[data-site-theme="prostudio"] .item-desc {
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: #94a3b8 !important;
  margin: 2px 0 4px !important;
}

/* Keep views, clicks, timeAgo in ONE compact horizontal footer row */
html[data-site-theme="prostudio"] .item-header-meta {
  order: 3 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 12px !important;
  padding-top: 10px !important;
  margin-top: 4px !important;
  border-top: 1px solid rgba(148, 163, 184, 0.12) !important;
  width: 100% !important;
}

html[data-site-theme="prostudio"] .item-views {
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 12px !important;
}

html[data-site-theme="prostudio"] .credits-amount,
html[data-site-theme="prostudio"] .credits-badge,
html[data-site-theme="prostudio"] .deal-credit-tag {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(99, 102, 241, 0.18)) !important;
  color: #34d399 !important;
  border: 1px solid rgba(16, 185, 129, 0.38) !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
}
html:not(.dark)[data-site-theme="prostudio"] .credits-amount,
html:not(.dark)[data-site-theme="prostudio"] .credits-badge {
  background: #eef2ff !important;
  color: #4338ca !important;
  border-color: #a5b4fc !important;
}

/* 5. Single Deal Page & Cards in Pro Studio */
html[data-site-theme="prostudio"] .resource-header {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(17, 19, 31, 0.95)) !important;
  border: 1px solid rgba(129, 140, 248, 0.26) !important;
  border-radius: 18px !important;
  padding: 24px 26px !important;
}
html:not(.dark)[data-site-theme="prostudio"] .resource-header {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
}

html:not(.dark)[data-site-theme="prostudio"] #emergent-banner-leaderboard,
html:not(.dark)[data-site-theme="prostudio"] .emergent-ad-campaign {
  background: linear-gradient(135deg, #eef2ff 0%, #f1f5f9 100%) !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

html:not(.dark)[data-site-theme="prostudio"] .discovery-card,
html:not(.dark)[data-site-theme="prostudio"] .latest-discoveries .discovery-card {
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 14px 16px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

html[data-site-theme="prostudio"] .new-card,
html[data-site-theme="prostudio"] .trending-card,
html[data-site-theme="prostudio"] .startup-overview-section,
html[data-site-theme="prostudio"] .offer-panel,
html[data-site-theme="prostudio"] .deals-filter-section,
html[data-site-theme="prostudio"] .blog-card {
  background: #11131f !important;
  border: 1px solid rgba(129, 140, 248, 0.18) !important;
  border-radius: 16px !important;
}
html:not(.dark)[data-site-theme="prostudio"] .new-card,
html:not(.dark)[data-site-theme="prostudio"] .trending-card,
html:not(.dark)[data-site-theme="prostudio"] .startup-overview-section,
html:not(.dark)[data-site-theme="prostudio"] .offer-panel,
html:not(.dark)[data-site-theme="prostudio"] .blog-card {
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
}

html[data-site-theme="prostudio"] .btn-primary,
html[data-site-theme="prostudio"] .visit-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35) !important;
}

/* ============================================================================
   THEME 5: FOUNDER LEDGER — NEO-BRUTALIST MAGAZINE (data-site-theme="neoeditorial")
   Completely distinct Editorial Paper / Warm Carbon + Hard Offset Shadow +
   2-Column Split-Ticket Cards + Top Stamped Ledger Navigation (No Left Sidebar)
   ============================================================================ */
html.dark[data-site-theme="neoeditorial"],
html.dark[data-site-theme="neoeditorial"] body {
  --md-sys-color-background: #0c0a09 !important;
  --md-sys-color-surface: #171412 !important;
  --md-sys-color-surface-container-low: #14110f !important;
  --md-sys-color-surface-container-high: #26211d !important;
  --md-sys-color-primary: #f97316 !important;
  --md-sys-color-on-primary: #0c0a09 !important;
  --bg: #0c0a09 !important;
  background-color: #0c0a09 !important;
  background-image: radial-gradient(#292524 1px, transparent 1px) !important;
  background-size: 22px 22px !important;
}

html:not(.dark)[data-site-theme="neoeditorial"],
html:not(.dark)[data-site-theme="neoeditorial"] body {
  --md-sys-color-background: #faf6ee !important;
  --md-sys-color-surface: #ffffff !important;
  --md-sys-color-surface-container-low: #f5efe2 !important;
  --md-sys-color-surface-container-high: #ebe3d2 !important;
  --md-sys-color-primary: #ea580c !important;
  --bg: #faf6ee !important;
  background-color: #faf6ee !important;
  background-image: radial-gradient(#d6d3d1 1px, transparent 1px) !important;
  background-size: 22px 22px !important;
}

/* 1. Hide Left Sidebar on Desktop & Show Top Stamped Ledger Navigation */
@media (min-width: 768px) {
  html[data-site-theme="neoeditorial"] .sidebar-wrapper,
  html[data-site-theme="neoeditorial"] .nav-drawer {
    display: none !important;
    width: 0 !important;
    flex: 0 0 0 !important;
  }
}

html[data-site-theme="neoeditorial"] .site-header {
  background: #14110f !important;
  border-bottom: 2px solid #44403c !important;
}
html:not(.dark)[data-site-theme="neoeditorial"] .site-header {
  background: #fffbeb !important;
  border-bottom: 2px solid #18181b !important;
}

html[data-site-theme="neoeditorial"] .site-header .nav-leading,
html[data-site-theme="neoeditorial"] .site-header .wordmark {
  display: inline-flex !important;
  align-items: center !important;
}

html[data-site-theme="neoeditorial"] .site-header .site-logo {
  height: 36px !important;
  width: 182px !important;
  max-width: 190px !important;
  object-fit: contain !important;
  display: block !important;
}
html.dark[data-site-theme="neoeditorial"] .site-header .logo-light {
  display: none !important;
}
html:not(.dark)[data-site-theme="neoeditorial"] .site-header .logo-dark {
  display: none !important;
}

html[data-site-theme="neoeditorial"] .prostudio-taxonomy-ribbon {
  display: block !important;
  width: 100% !important;
  background: #1c1917 !important;
  border-top: 2px solid #292524 !important;
  padding: 10px 0 !important;
}
html:not(.dark)[data-site-theme="neoeditorial"] .prostudio-taxonomy-ribbon {
  background: #f5efe2 !important;
  border-top: 2px solid #18181b !important;
}

html[data-site-theme="neoeditorial"] .prostudio-tax-pill {
  border-radius: 4px !important;
  border: 1.5px solid #57534e !important;
  background: #0c0a09 !important;
  color: #f5f5f4 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  box-shadow: 2px 2px 0px #44403c !important;
}
html:not(.dark)[data-site-theme="neoeditorial"] .prostudio-tax-pill {
  background: #ffffff !important;
  color: #18181b !important;
  border: 1.5px solid #18181b !important;
  box-shadow: 2px 2px 0px #18181b !important;
}
html[data-site-theme="neoeditorial"] .prostudio-tax-pill:hover,
html[data-site-theme="neoeditorial"] .prostudio-tax-pill.active {
  background: #f97316 !important;
  color: #0c0a09 !important;
  border-color: #f97316 !important;
  transform: translate(-1px, -1px) !important;
}

/* 2. Centered 1440px Editorial Container */
html[data-site-theme="neoeditorial"] .layout-main .container-fluid,
html[data-site-theme="neoeditorial"] .site-header .container,
html[data-site-theme="neoeditorial"] .site-footer .container {
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
}

/* 3. Distinct 2-Column Wide Split-Ticket Editorial Ledger Grid */
html[data-site-theme="neoeditorial"] .resource-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
}
@media (max-width: 920px) {
  html[data-site-theme="neoeditorial"] .resource-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

html[data-site-theme="neoeditorial"] .list-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 18px !important;
  padding: 22px 24px !important;
  border-radius: 6px !important;
  background: #171412 !important;
  border: 2px solid #44403c !important;
  border-left: 7px solid #f97316 !important;
  box-shadow: 5px 5px 0px #292524 !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}
html:not(.dark)[data-site-theme="neoeditorial"] .list-item {
  background: #ffffff !important;
  border: 2px solid #18181b !important;
  border-left: 7px solid #ea580c !important;
  box-shadow: 5px 5px 0px #18181b !important;
}

html[data-site-theme="neoeditorial"] .list-item:hover {
  transform: translate(-3px, -3px) !important;
  border-color: #f97316 !important;
  box-shadow: 8px 8px 0px #f97316 !important;
}
html:not(.dark)[data-site-theme="neoeditorial"] .list-item:hover {
  border-color: #18181b !important;
  box-shadow: 8px 8px 0px #ea580c !important;
}

html[data-site-theme="neoeditorial"] .item-leading .item-logo {
  width: 56px !important;
  height: 56px !important;
  border-radius: 6px !important;
  padding: 6px !important;
  background: #ffffff !important;
  border: 2px solid #18181b !important;
  box-shadow: 3px 3px 0px rgba(249, 115, 22, 0.5) !important;
}

/* Bold Stamped Credit Value Tag */
html[data-site-theme="neoeditorial"] .credits-amount,
html[data-site-theme="neoeditorial"] .credits-badge,
html[data-site-theme="neoeditorial"] .deal-credit-tag,
html[data-site-theme="neoeditorial"] .credit-badge {
  background: #f97316 !important;
  color: #0c0a09 !important;
  border: 2px solid #18181b !important;
  border-radius: 4px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  box-shadow: 2px 2px 0px #18181b !important;
}
html:not(.dark)[data-site-theme="neoeditorial"] .credits-amount,
html:not(.dark)[data-site-theme="neoeditorial"] .credits-badge {
  background: #ffedd5 !important;
  color: #9a3412 !important;
  border: 2px solid #18181b !important;
  box-shadow: 2px 2px 0px #18181b !important;
}

/* Single Pages, Product Cards, and Overview Boxes in Theme 5 */
html[data-site-theme="neoeditorial"] .new-card,
html[data-site-theme="neoeditorial"] .trending-card,
html[data-site-theme="neoeditorial"] .startup-founder-card,
html[data-site-theme="neoeditorial"] .offer-panel,
html[data-site-theme="neoeditorial"] .resource-header,
html[data-site-theme="neoeditorial"] .blog-card {
  border-radius: 6px !important;
  border: 2px solid #44403c !important;
  box-shadow: 5px 5px 0px #292524 !important;
}
html:not(.dark)[data-site-theme="neoeditorial"] .new-card,
html:not(.dark)[data-site-theme="neoeditorial"] .trending-card,
html:not(.dark)[data-site-theme="neoeditorial"] .startup-founder-card,
html:not(.dark)[data-site-theme="neoeditorial"] .offer-panel,
html:not(.dark)[data-site-theme="neoeditorial"] .resource-header,
html:not(.dark)[data-site-theme="neoeditorial"] .blog-card {
  background: #ffffff !important;
  border: 2px solid #18181b !important;
  box-shadow: 5px 5px 0px #18181b !important;
}

html[data-site-theme="neoeditorial"] .btn-primary,
html[data-site-theme="neoeditorial"] .visit-btn {
  background: #f97316 !important;
  color: #0c0a09 !important;
  border: 2px solid #18181b !important;
  border-radius: 5px !important;
  font-weight: 800 !important;
  box-shadow: 3px 3px 0px #18181b !important;
}
html[data-site-theme="neoeditorial"] .btn-primary:hover {
  transform: translate(-1px, -1px) !important;
  box-shadow: 5px 5px 0px #18181b !important;
}
