/* ===== AffiliatePro START_HERE — Section-specific classes, no conflicts ===== */
/*
 * Naming: sh-{section}-{element}
 * Sections: page, bg, orb, hero, docs, pkg, footer
 * Modifiers: --install, --update, --mobile (e.g. sh-pkg-item-icon--install)
 * All classes are scoped to avoid conflicts with other project CSS.
 */

:root {
  --sh-accent: #6366f1;
  --sh-accent-bright: #a5b4fc;
  --sh-violet: #8b5cf6;
  --sh-cyan: #22d3ee;
  --sh-dark: #050510;
  --sh-card-bg: rgba(10, 10, 25, 0.85);
}

/* ========== PAGE (sh-page) ========== */
.sh-page {
  min-height: 100vh;
  background: var(--sh-dark);
  color: #fff;
  overflow-y: auto;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========== BACKGROUND (sh-bg-*) ========== */
.sh-bg-wrap {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.sh-bg-mesh {
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(99, 102, 241, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 70% 80%, rgba(139, 92, 246, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(34, 211, 238, 0.15) 0%, transparent 50%);
  animation: sh-meshMove 15s ease-in-out infinite alternate;
}

.sh-bg-mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, #050510 70%);
  pointer-events: none;
}

.sh-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 70%);
  z-index: -1;
}

/* ========== ORBS (sh-orb-*) ========== */
.sh-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: -1;
}

.sh-orb-1 {
  width: 300px;
  height: 300px;
  background: var(--sh-accent);
  top: -100px;
  right: -50px;
  animation: sh-float1 12s ease-in-out infinite;
}

.sh-orb-2 {
  width: 250px;
  height: 250px;
  background: var(--sh-violet);
  bottom: -80px;
  left: -60px;
  animation: sh-float2 14s ease-in-out infinite;
}

@keyframes sh-meshMove {
  0% { transform: translate(-5%, -5%) scale(1); }
  100% { transform: translate(5%, 5%) scale(1.1); }
}

@keyframes sh-float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.1); }
}

@keyframes sh-float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.15); }
}

/* ========== HERO (sh-hero-*) — Clean gradient hero, no low-res banner ========== */
.sh-hero {
  flex: 0 0 auto;
  position: relative;
  padding: 3rem 1.5rem 3.5rem;
}

.sh-hero-inner {
  position: relative;
  padding: 2.5rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(139, 92, 246, 0.05) 50%,
    rgba(34, 211, 238, 0.04) 100%
  );
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 25px 50px -20px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(99, 102, 241, 0.08);
  animation: sh-heroReveal 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes sh-heroReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sh-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--sh-accent-bright);
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 100px;
  animation: sh-badgePulse 3s ease-in-out infinite, sh-fadeIn 0.8s ease forwards;
}

.sh-hero-title {
  font-size: clamp(2.5rem, 8vw, 4rem) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, var(--sh-accent-bright) 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: sh-gradientShift 4s ease infinite, sh-fadeIn 0.8s ease 0.15s forwards;
  opacity: 0;
}

.sh-hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  animation: sh-fadeIn 0.8s ease 0.3s forwards;
  opacity: 0;
}

@keyframes sh-badgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.2); }
  50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.4); }
}

@keyframes sh-gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

@keyframes sh-fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== DOCS CARDS (sh-docs-*) ========== */
.sh-docs-wrap {
  flex: 1 1 auto;
  min-height: 0;
}

.sh-docs-row {
  max-width: 720px;
}

.sh-docs-row .col-md-6 {
  min-height: 220px;
}

.sh-docs-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--sh-card-bg);
  border-radius: 20px;
  text-decoration: none !important;
  color: #fff !important;
  text-align: left;
  backdrop-filter: blur(24px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  animation: sh-cardReveal 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  min-height: 220px;
}

.sh-docs-row > .col-md-6:first-child .sh-docs-card { animation-delay: 0.3s; }
.sh-docs-row > .col-md-6:last-child .sh-docs-card { animation-delay: 0.45s; }

.sh-docs-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(135deg, var(--sh-accent), var(--sh-violet), var(--sh-cyan), var(--sh-accent));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.sh-docs-card:hover::before {
  opacity: 1;
  animation: sh-borderFlow 2s linear infinite;
}

.sh-docs-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.6s;
}

.sh-docs-card:hover::after {
  left: 100%;
}

.sh-docs-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 0 60px rgba(99, 102, 241, 0.35),
    0 25px 50px -20px rgba(0, 0, 0, 0.5);
}

.sh-docs-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--sh-accent) 0%, var(--sh-violet) 100%);
  color: #fff;
  border-radius: 16px;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sh-docs-card:hover .sh-docs-card-icon {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.6);
}

.sh-docs-card h2,
.sh-docs-card .h5 {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin-bottom: 0.5rem;
  position: relative;
  letter-spacing: -0.02em;
}

.sh-docs-card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.55;
  position: relative;
}

.sh-docs-card-cta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  font-weight: 600;
  transition: color 0.3s;
  flex-shrink: 0;
}

.sh-docs-card:hover .sh-docs-card-cta {
  color: var(--sh-accent-bright);
}

@keyframes sh-borderFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

@keyframes sh-cardReveal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ========== PACKAGE SECTION (sh-pkg-*) ========== */
.sh-pkg-wrap {
  flex-shrink: 0;
}

.sh-pkg-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
}

.sh-pkg-item {
  padding: 1rem 1.25rem;
  background: rgba(15, 15, 35, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.sh-pkg-item:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.sh-pkg-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.1rem;
  color: #fff;
}

.sh-pkg-item-icon--install {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.sh-pkg-item-icon--update {
  background: linear-gradient(135deg, var(--sh-accent) 0%, var(--sh-violet) 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.sh-pkg-item-icon--mobile {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.sh-pkg-item-name {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.95);
}

.sh-pkg-item-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.45;
}

/* ========== FOOTER (sh-footer-*) ========== */
.sh-footer {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.sh-footer-link {
  color: var(--sh-accent-bright);
  transition: color 0.2s ease;
}

.sh-footer-link:hover {
  color: #fff;
}

.sh-footer-sep {
  color: rgba(255, 255, 255, 0.25);
}

.sh-footer-text {
  color: rgba(255, 255, 255, 0.35);
}

/* ========== RESPONSIVE ========== */
/* Extra small (<576px) */
@media (max-width: 575.98px) {
  .sh-hero {
    padding-top: 1.5rem !important;
    padding-bottom: 1rem !important;
  }

  .sh-hero-title {
    font-size: clamp(1.25rem, 8vw, 1.75rem) !important;
  }

  .sh-hero-subtitle {
    font-size: 0.95rem;
    max-width: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .sh-hero-inner {
    padding: 1.75rem 1.25rem;
  }

  .sh-hero-badge {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    padding: 0.35rem 0.75rem;
  }

  .sh-docs-wrap {
    padding-top: 0.75rem !important;
    padding-bottom: 1rem !important;
  }

  .sh-docs-card {
    padding: 1.25rem;
    min-height: 180px;
  }

  .sh-docs-row .col-md-6 {
    min-height: 180px;
  }

  .sh-docs-card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }

  .sh-docs-card h2,
  .sh-docs-card .h5 {
    font-size: 1.05rem !important;
  }

  .sh-docs-card p {
    font-size: 0.8125rem;
  }

  .sh-pkg-wrap {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .sh-pkg-item {
    padding: 0.875rem 1rem;
  }

  .sh-pkg-item-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .sh-pkg-item-name {
    font-size: 0.85rem;
  }

  .sh-pkg-item-desc {
    font-size: 0.75rem;
  }

  .sh-footer {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    font-size: 0.75rem;
  }

  .sh-orb-1 {
    width: 180px;
    height: 180px;
    top: -60px;
    right: -30px;
    opacity: 0.3;
  }

  .sh-orb-2 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: -40px;
    opacity: 0.3;
  }
}

/* Small (576px–767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .sh-docs-card {
    min-height: 200px;
  }

  .sh-docs-row .col-md-6 {
    min-height: 200px;
  }

  .sh-pkg-item {
    padding: 0.9rem 1.1rem;
  }
}

/* Medium (768px–991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .sh-docs-row {
    max-width: 640px;
  }
}
