/* ========================================================================
   PARTNERS PAGE STYLES
   ========================================================================

   Consolidated styles for all partner pages:
   - /partners (main hub)
   - /partners/affiliates
   - /partners/developers

   ======================================================================== */

/* ========================================================================
   PARTNER HUB - "THE WORKSKEDGE ECONOMY"
   ======================================================================== */

/* ===== HERO SECTION ===== */
.partner-hub-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: hsl(var(--color-midnight-navy));
  color: white;
}

.partner-hub-hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.partner-hub-hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.partner-hub-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.6) 0%,
    rgba(15, 23, 42, 0.7) 50%,
    rgba(15, 23, 42, 0.8) 100%
  );
  z-index: 1;
}

.partner-hub-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 4rem 0;
  max-width: 1100px;
  margin: 0 auto;
}

.partner-hub-eyebrow {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: hsl(var(--color-electric-cyan));
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.partner-hub-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.partner-hub-subhead {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 800px;
  margin: 0 auto;
}

/* ===== SPLIT CARDS SECTION ===== */
.partner-hub-split-section {
  position: relative;
  background: hsl(var(--color-midnight-navy));
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.partner-hub-split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 100vh;
}

.partner-hub-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-hub-card-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.partner-hub-card-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.partner-hub-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.85) 0%,
    rgba(0, 45, 98, 0.75) 100%
  );
  z-index: 1;
  transition: background 0.4s ease;
}

.partner-hub-card:hover .partner-hub-card-background img {
  transform: scale(1.05);
}

.partner-hub-card:hover .partner-hub-card-overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.75) 0%,
    rgba(0, 45, 98, 0.65) 100%
  );
}

.partner-hub-card:hover {
  filter: brightness(1.15) drop-shadow(0 0 40px rgba(0, 180, 216, 0.3));
}

.partner-hub-card-content {
  position: relative;
  z-index: 10;
  max-width: 500px;
  color: white;
  text-align: center;
}

.partner-hub-card-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: white;
}

.partner-hub-card-hook {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, hsl(var(--color-electric-cyan)), hsl(var(--color-bright-teal)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.partner-hub-card-copy {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
}

.partner-hub-card-visual {
  margin: 2.5rem 0;
  display: flex;
  justify-content: center;
  opacity: 0.6;
}

.partner-hub-visual-svg {
  width: 200px;
  height: 200px;
  color: hsl(var(--color-electric-cyan));
}

.partner-hub-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, hsl(var(--color-electric-cyan)), hsl(var(--color-bright-teal)));
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 180, 216, 0.3);
}

.partner-hub-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 180, 216, 0.5);
}

.partner-hub-card-btn svg {
  transition: transform 0.3s ease;
}

.partner-hub-card-btn:hover svg {
  transform: translateX(4px);
}

/* ===== AFFILIATES HERO SECTION ===== */
.affiliates-hero-section {
  position: relative;
  min-height: 80vh !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================================================
   DEVELOPER PARTNERS - "THE 90/10 REVOLUTION"
   ======================================================================== */

/* ===== HERO SECTION (Dark with circuit board) ===== */
.dev-hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: hsl(var(--color-midnight-navy));
  color: white;
}

.dev-hero-background {
  position: absolute;
  inset: 0;
  background-image: url('/background_texture.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  z-index: 0;
}

.dev-hero-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 180, 216, 0.1), transparent 60%);
}

.dev-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 4rem 0;
  max-width: 1100px;
  margin: 0 auto;
}

.dev-hero-eyebrow {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: hsl(var(--color-electric-cyan));
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.dev-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: white;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.dev-hero-subhead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.dev-hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.dev-hero-visual {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
}

.dev-hero-visual img {
  width: 100%;
  max-width: 800px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 180, 216, 0.2));
  animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

.dev-hero-comparison {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Courier New', monospace;
  margin-top: 2rem;
}

/* ===== CALCULATOR SECTION ===== */
.dev-calculator-card {
  background: linear-gradient(135deg, rgba(0, 182, 216, 0.05) 0%, rgba(0, 45, 98, 0.05) 100%);
  border: 2px solid hsl(var(--color-border));
  border-radius: 16px;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
}

.dev-calculator-inputs {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.dev-calculator-input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dev-calculator-label {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--color-foreground));
}

.dev-calculator-slider-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.dev-calculator-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: hsl(var(--color-border));
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.dev-calculator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: hsl(var(--color-electric-cyan));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 180, 216, 0.4);
  transition: transform 0.2s;
}

.dev-calculator-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.dev-calculator-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: hsl(var(--color-electric-cyan));
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 180, 216, 0.4);
  transition: transform 0.2s;
}

.dev-calculator-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.dev-calculator-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--color-electric-cyan));
  min-width: 100px;
  text-align: right;
}

.dev-calculator-output {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2.5rem;
  background: hsl(var(--color-electric-cyan) / 0.05);
  border: 2px solid hsl(var(--color-electric-cyan) / 0.2);
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.dev-calculator-result {
  text-align: center;
}

.dev-calculator-result-label {
  font-size: 0.875rem;
  color: hsl(var(--color-muted-foreground));
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dev-calculator-result-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: hsl(var(--color-electric-cyan));
}

.dev-calculator-footnote {
  text-align: center;
  font-size: 0.875rem;
  color: hsl(var(--color-muted-foreground));
  font-style: italic;
}

/* ===== SHARED STACK/ICON COMPONENTS ===== */
.dev-stack-card {
  min-height: 320px;
}

.dev-stack-icon-wrapper {
  margin-bottom: 1.5rem;
}

.dev-stack-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, hsl(var(--color-deep-royal-blue)), hsl(var(--color-electric-cyan)));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 180, 216, 0.2);
}

.dev-stack-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--color-navy));
  margin-bottom: 1rem;
}

.dev-stack-description {
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--color-muted-foreground));
}

.dev-infrastructure-visual {
  margin-top: 4rem;
  text-align: center;
}

.dev-infrastructure-visual img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* ===== CODE WINDOW ===== */
.dev-dx-layout {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.dev-code-window {
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dev-code-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #2d2d2d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dev-code-dots {
  display: flex;
  gap: 0.5rem;
}

.dev-code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dev-code-title {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.dev-code-content {
  padding: 1.5rem;
  overflow-x: auto;
}

.dev-code-content pre {
  margin: 0;
  background: transparent !important;
  padding: 0 !important;
}

.dev-code-content code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.dev-dx-specs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dev-dx-spec-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border: 1px solid hsl(var(--color-border));
  border-radius: 0.75rem;
  transition: all 0.2s;
}

.dev-dx-spec-item:hover {
  border-color: hsl(var(--color-electric-cyan));
  box-shadow: 0 4px 12px rgba(0, 180, 216, 0.15);
  transform: translateX(4px);
}

.dev-dx-spec-item svg {
  flex-shrink: 0;
  color: hsl(var(--color-electric-cyan));
  margin-top: 2px;
}

.dev-dx-spec-item span {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--color-charcoal));
}

/* ===== IDEAS GRID ===== */
.dev-ideas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.dev-idea-card {
  background: white;
  border: 1px solid hsl(var(--color-border));
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  text-align: center;
}

.dev-idea-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: hsl(var(--color-electric-cyan) / 0.5);
}

.dev-idea-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsl(var(--color-deep-royal-blue) / 0.1), hsl(var(--color-electric-cyan) / 0.1));
  border-radius: 1rem;
  color: hsl(var(--color-electric-cyan));
}

.dev-idea-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(var(--color-navy));
  margin-bottom: 0.75rem;
}

.dev-idea-description {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: hsl(var(--color-muted-foreground));
}

/* ===== PRISM OVERRIDE FOR CODE BLOCKS ===== */
.dev-code-content pre[class*="language-"] {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  text-shadow: none !important;
}

.dev-code-content code[class*="language-"] {
  background: transparent !important;
  text-shadow: none !important;
}

/* ===== SPACE UTILITY ===== */
.space-y-6 > * + * {
  margin-top: 1.5rem;
}

/* ========================================================================
   RESPONSIVE DESIGN
   ======================================================================== */

@media (min-width: 768px) {
  .dev-ideas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .dev-dx-layout {
    grid-template-columns: 2fr 1fr;
  }

  .dev-ideas-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .partner-hub-split-container {
    grid-template-columns: 1fr;
  }

  .partner-hub-card {
    min-height: 100vh;
  }

  .partner-hub-hero {
    min-height: 80vh;
  }

  .partner-hub-hero.hero-half {
    min-height: 50vh;
  }
}

@media (max-width: 768px) {
  .partner-hub-hero-content {
    padding: 3rem 0;
  }

  .partner-hub-card {
    padding: 3rem 1.5rem;
    min-height: 90vh;
  }

  .partner-hub-card-content {
    max-width: 100%;
  }

  .partner-hub-visual-svg {
    width: 150px;
    height: 150px;
  }

  .dev-hero-section {
    min-height: auto;
    padding: 6rem 0 4rem;
  }

  .dev-hero-section.hero-half {
    min-height: auto;
  }

  .dev-hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary-hero,
  .btn-secondary-hero {
    width: 100%;
  }

  .dev-calculator-card {
    padding: 2rem 1.5rem;
  }

  .dev-calculator-output {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

.partner-hub-hero.hero-half {
  min-height: 50vh;
}

.dev-hero-section.hero-half {
  min-height: 50vh;
}

.affiliates-hero-section.hero-half {
  min-height: 50vh;
}

@media (max-width: 640px) {
  .partner-hub-eyebrow {
    font-size: 0.75rem;
  }

  .partner-hub-card-hook {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .partner-hub-card-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}
