/* ================================================
   Advertisers Page Styles
   Complete styling for all advertisers page sections
   ================================================ */

/* ================================================
   HERO SECTION - PROOF METRICS
   ================================================ */

.hero-metrics {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.hero-metrics .metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--c-text-med, rgba(255, 255, 255, 0.7));
}

.hero-metrics .metric i {
  color: var(--c-grad-a, #6E00FF);
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .hero-metrics {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ================================================
   WHY ADVERTISE WITH US SECTION
   ================================================ */

.adv-why {
  padding: 4rem 0;
  position: relative;
}

.adv-why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.adv-why__left {
  /* Navigation column - will be sticky on desktop */
  display: flex;
  flex-direction: column;
}

/* Desktop: Sticky layout with side nav */
@media (min-width: 1024px) {
  .adv-why__grid {
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: start;
  }
  
  .adv-why__left {
    position: sticky;
    top: 100px;
    align-self: start;
  }
  
  .adv-why__nav {
    flex-direction: column;
  }
}

/* Mobile: Simple vertical stack - hide nav, stack cards */
@media (max-width: 1023px) {
  .adv-why__grid {
    display: block;
  }
  
  .adv-why__left {
    display: none; /* Hide sticky nav on mobile */
  }
  
  .adv-why__right {
    display: block;
  }
  
  .adv-why__sec {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
}

/* Section header now uses global .section-header pattern */

.adv-why__nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.adv-why__nav li {
  margin: 0;
}

.adv-why__nav button {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-card, 12px);
  color: var(--c-text-med, rgba(255, 255, 255, 0.7));
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
}

.adv-why__nav button:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--c-text-hi, #ffffff);
}

.adv-why__nav button[aria-current="true"],
.adv-why__nav button.active {
  background: rgba(110, 0, 255, 0.16);
  border-color: rgba(110, 0, 255, 0.4);
  color: var(--c-text-hi, #ffffff);
}

.adv-why__num {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--c-grad-a, #6E00FF);
  min-width: 2rem;
}

.adv-why__label {
  flex: 1;
  font-weight: 500;
}

.adv-why__right {
  /* Content column */
  display: flex;
  flex-direction: column;
}

.adv-why__sec {
  margin-bottom: 4rem;
  padding: 2rem;
  background: #0B0F25; /* Same color as stats section */
  border-radius: var(--radius-card, 12px);
  border: 1px solid var(--c-border-glass, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden; /* Ensure gradient border respects rounded corners */
}

/* Gradient top border using pseudo-element */
.adv-why__sec::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--c-grad-a, #6E00FF), var(--c-grad-b, #00D0FF));
  border-radius: var(--radius-card, 12px) var(--radius-card, 12px) 0 0;
}

.adv-why__sec:last-child {
  margin-bottom: 0;
}

.adv-why__sec h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--c-text-hi, #ffffff);
  margin-bottom: 1rem;
}

.adv-why__sec p {
  color: var(--c-text-med, rgba(255, 255, 255, 0.7));
  line-height: 1.7;
  margin-bottom: 1rem;
}

.adv-why__sec p:last-of-type {
  margin-bottom: 1.5rem;
}

.adv-why__sec ul {
  list-style: disc;
  padding-left: 1.5rem;
  color: var(--c-text-med, rgba(255, 255, 255, 0.7));
  line-height: 1.7;
}

.adv-why__sec li {
  margin-bottom: 0.5rem;
}

/* Responsive Images in Why Section */
.adv-why__sec img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  display: block;
}

/* Desktop: Sticky layout */
@media (min-width: 1024px) {
  .adv-why__grid {
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: start;
  }
  
  .adv-why__left {
    position: sticky;
    top: 100px;
    align-self: start;
  }
  
  .adv-why__nav {
    flex-direction: column;
  }
}

/* Tablet: Can use side-by-side if space allows */
@media (min-width: 768px) and (max-width: 1023px) {
  .adv-why__grid {
    grid-template-columns: 280px 1fr;
    gap: 3rem;
  }
  
  .adv-why__left {
    position: sticky;
    top: 100px;
  }
}

/* Mobile: Stack layout */
@media (max-width: 767px) {
  .adv-why {
    padding: 3rem 0;
  }
  
  .adv-why__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .adv-why__intro h2 {
    font-size: 1.75rem;
  }
  
  .adv-why__nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 1rem;
    gap: 0.75rem;
    -webkit-overflow-scrolling: touch;
  }
  
  .adv-why__nav li {
    flex-shrink: 0;
  }
  
  .adv-why__nav button {
    white-space: nowrap;
    padding: 0.75rem 1rem;
  }
  
  .adv-why__sec {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .adv-why__sec img {
    max-width: 100%;
    margin-bottom: 1rem;
  }
}

/* ================================================
   HOW IT WORKS SECTION
   ================================================ */

.how {
  padding: 4rem 0;
  position: relative;
}

/* Increase width on mobile for "How it works" cards */
@media (max-width: 767px) {
  .how .container {
    width: 95%; /* Increased from default 90% */
    max-width: none;
  }
}

.intro-header {
  text-align: center;
  margin-bottom: 3rem;
}

.intro-header .stack-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-grad-a, #6E00FF);
  margin-bottom: 0.5rem;
}

.intro-header .stack-main {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--c-text-hi, #ffffff);
  margin: 0;
}

/* Note: .how-grid is defined in global/components.css - using that */
/* Override for advertisers page: One long card on desktop (like stats section) */
@media (min-width: 1024px) {
  .page-advertisers .how-grid {
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: center;
    justify-content: center;
    max-width: 1400px; /* Match container width - same as stats-grid */
    margin: 0 auto; /* Center it within container */
    background: #0B0F25; /* Same color as stats section */
    border: 1px solid var(--c-border-glass, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-card, 12px);
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
  }

  /* Gradient top border using pseudo-element */
  .page-advertisers .how-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--c-grad-a, #6E00FF), var(--c-grad-b, #00D0FF));
    border-radius: var(--radius-card, 12px) var(--radius-card, 12px) 0 0;
  }

  .page-advertisers .step {
    padding: 0;
    background: transparent;
    border: none;
    flex: 1 1 20%; /* 5 equal columns */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: flex-start; /* Align all steps from the top */
  }

  /* Add dividers between steps */
  .page-advertisers .step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 80px;
    background: var(--c-border-glass, rgba(255, 255, 255, 0.08));
  }
}

.step {
  text-align: center;
  padding: 2rem;
  background: #0B0F25; /* Same blue color as desktop version */
  border-radius: var(--radius-card, 12px);
  border: 1px solid var(--c-border-glass, rgba(255, 255, 255, 0.08));
  backdrop-filter: blur(10px);
  position: relative; /* For divider positioning */
}

.step-icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-grad-a, #6E00FF), var(--c-grad-b, #00D0FF));
  color: #ffffff;
  font-size: 1.5rem;
}

.step-number {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--c-grad-a, #6E00FF);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--c-bg, #090A16);
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-text-hi, #ffffff);
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--c-text-med, rgba(255, 255, 255, 0.7));
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 1024px) {
  .step {
    padding: 1.5rem;
  }
}

/* ================================================
   STUDIO SHELL SECTION
   ================================================ */

.studio-shell {
  padding: 4rem 0;
  position: relative;
}

.studio__intro {
  text-align: center;
  margin-bottom: 3rem;
}

.studio__intro .kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-grad-a, #6E00FF);
  margin-bottom: 0.5rem;
}

.studio__intro h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--c-text-hi, #ffffff);
  margin-bottom: 0.75rem;
}

.studio__intro p {
  color: var(--c-text-med, rgba(255, 255, 255, 0.7));
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Fixed Canvas Wrapper */
#fixedCanvas {
  position: relative;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

/* Studio Container */
.studio {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  min-height: 600px;
}

/* Panel Visibility - Controlled by data-panel attribute */
.studio[data-panel="dashboard"] .studio__panel--demo {
  display: none;
}

.studio[data-panel="demo"] .studio__panel--dashboard {
  display: none;
}

.studio__panel {
  position: relative;
  background: var(--c-bg-elev, rgba(255, 255, 255, 0.03));
  border-radius: var(--radius-card, 12px);
  border: 1px solid var(--c-border-glass, rgba(255, 255, 255, 0.08));
  padding: 2rem;
  backdrop-filter: blur(10px);
}

/* Dashboard and demo panels use card class from global styles */

/* Edge Toggle Buttons */
.studio__edge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: center;
  background: linear-gradient(135deg, var(--c-grad-a, #6E00FF), var(--c-grad-b, #00D0FF));
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.studio__edge:hover:not([aria-pressed="true"]) {
  transform: translateY(-50%) rotate(-90deg) scale(1.05);
  box-shadow: 0 4px 12px rgba(110, 0, 255, 0.4);
}

.studio__edge--left {
  left: -4rem;
}

.studio__edge--right {
  right: -4rem;
}

/* Hide edge buttons when their panel is active */
.studio[data-panel="dashboard"] .studio__edge--left {
  display: none;
}

.studio[data-panel="demo"] .studio__edge--right {
  display: none;
}

.studio__edge[aria-pressed="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* Desktop: Side-by-side layout when both panels visible (if needed) */
@media (min-width: 1024px) {
  .studio {
    grid-template-columns: 1fr;
  }
  
  /* If you want side-by-side on desktop, uncomment:
  .studio[data-panel="dashboard"] {
    grid-template-columns: 1fr 0;
  }
  .studio[data-panel="demo"] {
    grid-template-columns: 0 1fr;
  }
  */
}

/* Mobile adjustments for studio */
@media (max-width: 1023px) {
  .studio__edge {
    position: static;
    transform: none;
    width: 100%;
    margin-bottom: 1rem;
    order: -1; /* Show buttons first on mobile */
  }
  
  .studio__edge--left,
  .studio__edge--right {
    left: auto;
    right: auto;
  }
  
  .studio {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }
  
  .studio__panel {
    padding: 1.5rem;
  }
  
  /* Show both edge buttons on mobile for toggle */
  .studio[data-panel="dashboard"] .studio__edge--left,
  .studio[data-panel="demo"] .studio__edge--right {
    display: block;
  }
}

/* ================================================
   PROOF BAND SECTION
   ================================================ */

.proof-band {
  padding: 2rem 0;
  background: var(--c-bg-elev, rgba(255, 255, 255, 0.03));
  text-align: center;
}

.proof-text {
  font-size: 1rem;
  color: var(--c-text-med, rgba(255, 255, 255, 0.7));
}

.proof-text strong {
  color: var(--c-text-hi, #ffffff);
  font-weight: 600;
}

/* ================================================
   HOW IT WORKS SECTION
   ================================================ */

/* Desktop override is defined above at line 336 - removed duplicate here */

.step-icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-grad-a, #6E00FF), var(--c-grad-b, #00D0FF));
  color: #ffffff;
  font-size: 1.5rem;
}

.step-number {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--c-grad-a, #6E00FF);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--c-bg, #090A16);
}

/* ================================================
   STUDIO SHELL - DESKTOP/MOBILE SPLIT
   ================================================ */

/* Desktop: show full studio, hide preview */
@media (min-width: 1024px) {
  .studio-shell--desktop {
    display: block;
  }
  
  .studio-shell--mobile {
    display: none;
  }
}

/* Mobile/tablet: show preview, hide heavy studio */
@media (max-width: 1023px) {
  .studio-shell--desktop {
    display: none;
  }
  
  .studio-shell--mobile {
    display: block;
  }
}

.studio-subtitle {
  font-size: 1.125rem;
  color: var(--c-text-med, rgba(255, 255, 255, 0.7));
  margin-top: 0.5rem;
}

.studio-note {
  font-size: 0.875rem;
  color: var(--c-text-med, rgba(255, 255, 255, 0.7));
  margin-top: 0.5rem;
}

/* Demo Badge (desktop only) */
.demo-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(110, 0, 255, 0.2);
  border: 1px solid rgba(110, 0, 255, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 10;
  color: var(--c-grad-a, #6E00FF);
}

/* Mobile Preview Card */
.studio-preview-card {
  text-align: center;
  padding: 2rem;
}

.studio-preview-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.studio-preview-note {
  color: var(--c-text-med, rgba(255, 255, 255, 0.7));
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.studio-preview-card .btn--full {
  width: 100%;
  max-width: 300px;
}

/* ================================================
   CTA BAND SECTION
   Uses .final-cta styles from global/components.css
   ================================================ */

/* Match index page styling for final-cta__inner */
.final-cta__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem 2rem;
}

.final-cta__inner h2 {
  font-size: 2.25rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.final-cta__inner > p {
  color: var(--c-text-med);
  margin-bottom: 2rem;
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.final-cta__actions .btn {
  width: 100%;
}

@media (min-width: 768px) {
  .final-cta__actions {
    flex-direction: row;
    justify-content: center;
  }
  
  .final-cta__actions .btn {
    width: auto;
  }
}

/* ================================================
   IMAGE PLACEHOLDERS
   ================================================ */

.image-placeholder {
  min-height: 200px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-card, 12px);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin: 1.5rem 0;
  color: var(--c-text-med, rgba(255, 255, 255, 0.5));
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.5;
}

/* Hero image placeholders */
.hero__image--desktop {
  display: none;
}

.hero__image--mobile {
  display: block;
  margin-top: 2rem;
}

@media (min-width: 1024px) {
  .hero__image--desktop {
    display: block;
  }
  
  .hero__image--mobile {
    display: none;
  }
}

.hero__image .image-placeholder {
  min-height: 300px;
  margin: 0;
}

/* Why section images */
.adv-why__img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  display: block;
  margin: 1rem 0 1.5rem;
}

/* ================================================
   FORM IMPROVEMENTS
   ================================================ */

.field-optional {
  font-size: 0.75rem;
  color: var(--c-text-med, rgba(255, 255, 255, 0.5));
  font-weight: 400;
  margin-left: 0.25rem;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--c-text-med, rgba(255, 255, 255, 0.7));
  text-align: center;
}

/* Mobile responsive form adjustments */
@media (max-width: 767px) {
  /* Increase container width for form */
  .adv-contact .container {
    width: 95%; /* Increased from default 90% */
    max-width: none;
  }
  
  .adv-contact .contact-panel {
    padding: 1.5rem !important;
    margin: 0; /* Remove margin to use full container width */
    max-width: 100% !important; /* Override components.css calc(100% - 1rem) */
  }
  
  .lead-form .field {
    margin-bottom: 1.25rem;
  }
  
  .lead-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
  }
  
  .lead-form input,
  .lead-form textarea {
    width: 100%;
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 0.875rem 1rem;
    box-sizing: border-box;
  }
  
  .lead-form button {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }
  
  .form-grid {
    gap: 0;
  }
  
  .form-grid .field {
    margin-bottom: 1.25rem;
  }
}

/* Dashboard components moved to dashboard-components.css */

