/* ================================================================
   NEXUS NETWORK AFFILIATE THEME - STITCH UI DESIGN
   Modern, Performance-focused Affiliate Network Platform
   ================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap");

:root {
  --dark-bg: #020408;
  --text-primary: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #9ca3af;
  --gradient-primary: linear-gradient(to right, #a855f7, #ec4899, #f97316);
  --gradient-button: linear-gradient(
    135deg,
    #a855f7 0%,
    #ec4899 50%,
    #f97316 100%
  );
  --purple: #a855f7;
  --pink: #ec4899;
  --orange: #f97316;
  --container: 1200px;
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}

/* ===== Stitch Custom Backgrounds ===== */
.bg-dark-mesh {
  background-color: #020408;
  background-image: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
                    radial-gradient(at 50% 0%, hsla(280, 40%, 30%, 0.3) 0, transparent 50%),
                    radial-gradient(at 100% 0%, hsla(15, 60%, 30%, 0.2) 0, transparent 50%);
  background-attachment: fixed;
}

.mountain-overlay {
  background-blend-mode: overlay;
  background-size: cover;
  background-position: bottom;
}

/* Details marker removal for FAQ */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  background-color: var(--dark-bg);
  background-image:
    radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(280, 40%, 30%, 0.3) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(15, 60%, 30%, 0.2) 0, transparent 50%);
  background-attachment: fixed;
  color: var(--text-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}
h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: min(var(--container), 100% - 48px);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.25rem;
  color: #fff;
}

.brand-name span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: none;
  background: none;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--pink);
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-login {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 16px;
}

.btn-login:hover {
  color: var(--text-primary);
}

/* ===== BUTTONS ===== */
.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--gradient-button);
  color: #fff;
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1rem;
}

/* ===== HERO SECTION ===== */
body {
  padding-top: var(--header-h);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 60px 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(
      circle at 30% 50%,
      rgba(168, 85, 247, 0.15) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(219, 39, 119, 0.1) 0%,
      transparent 30%
    );
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero-gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
  text-align: left;
}

.stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2.5rem;
  padding: 32px;
  overflow: hidden;
}

.glass-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 256px;
  height: 256px;
  background: rgba(236, 72, 153, 0.3);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
}

.visual-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.visual-img {
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  margin-bottom: 32px;
}

.visual-cta {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.visual-desc {
  font-size: 0.875rem;
  color: #c5d9ff;
  max-width: 400px;
  margin: 0 auto;
}

/* ===== SECTIONS ===== */
section {
  position: relative;
  padding: 96px 0;
}

section.dark {
  background: rgba(0, 0, 0, 0.3);
}

section h2,
section h3 {
  color: var(--text-primary);
}

.section-accent {
  width: 48px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 0 auto 24px;
}

.section-title {
  text-align: center;
  margin-bottom: 64px;
}

.section-title h2 {
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ===== PARTNERS SECTION ===== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}

.partner-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  grayscale: 100%;
  transition: all 0.3s ease;
}

.partner-card:hover {
  grayscale: 0;
  background: rgba(255, 255, 255, 0.05);
  opacity: 1;
}

.partner-card img {
  max-height: 48px;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(236, 72, 153, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--purple);
  stroke-width: 1.5;
}

.feature-card h3 {
  color: var(--text-primary);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== FAQ SECTION ===== */
.faq-container {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  margin-bottom: 16px;
  overflow: hidden;
}

.faq-question {
  padding: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  width: 100%;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.faq-item:hover .faq-question {
  background: rgba(255, 255, 255, 0.05);
}

.faq-toggle {
  width: 24px;
  height: 24px;
  color: var(--pink);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-content {
  padding: 0 24px 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== CONTACT SECTION ===== */
.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 3rem;
  padding: 64px 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

input,
textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  margin-top: 32px;
}

/* ===== CTA SECTION ===== */
.cta-wrapper {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 3rem;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 256px;
  height: 256px;
  background: rgba(236, 72, 153, 0.2);
  border-radius: 50%;
  filter: blur(80px);
  margin-right: -80px;
  margin-top: -80px;
}

.cta-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 256px;
  height: 256px;
  background: rgba(249, 115, 22, 0.1);
  border-radius: 50%;
  filter: blur(80px);
  margin-left: -80px;
  margin-bottom: -80px;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-wrapper h2 {
  margin-bottom: 24px;
}

.cta-wrapper p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 80px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand h3 {
  margin-bottom: 24px;
  font-size: 1.25rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--pink);
}

.footer-col h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--pink);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 24px;
}

.footer-locations {
  display: flex;
  gap: 24px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  section {
    padding: 64px 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .section-title {
    margin-bottom: 40px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-wrapper {
    padding: 48px 32px;
  }

  .contact-form-wrapper {
    padding: 40px 24px;
  }
}

/* ===== BLOG & ARCHIVE PAGE STYLES ===== */
.blog-content {
  padding: 120px 0 60px;
}

.blog-header {
  text-align: center;
  margin-bottom: 64px;
}

.blog-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-description {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
  margin-bottom: 64px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.blog-card-title a {
  color: var(--text-primary);
}

.blog-card-title a:hover {
  color: var(--pink);
}

.blog-card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.post-date,
.post-author {
  display: inline-block;
}

.post-author a {
  color: var(--pink);
}

.post-author a:hover {
  color: var(--purple);
}

.blog-card-excerpt {
  flex-grow: 1;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 64px;
  padding: 32px 0;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.pagination .page-numbers:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--dark-bg);
}

.pagination .page-numbers.current {
  background: var(--gradient-button);
  border-color: transparent;
  color: var(--text-primary);
}

/* ===== PAGE TEMPLATE STYLES ===== */
.page-content {
  padding: 120px 0 60px;
}

.page-article {
  max-width: 800px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 48px;
  text-align: center;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 24px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-excerpt {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.featured-image-wrapper {
  margin: 0 0 48px 0;
  border-radius: 16px;
  overflow: hidden;
}

.featured-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.page-body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.page-body h2 {
  margin-top: 48px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.page-body h3 {
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.page-body p {
  margin-bottom: 20px;
}

.page-body ul,
.page-body ol {
  margin: 20px 0;
  padding-left: 24px;
}

.page-body li {
  margin-bottom: 12px;
}

.page-body a {
  color: var(--pink);
  transition: all 0.3s ease;
}

.page-body a:hover {
  color: var(--purple);
  text-decoration: underline;
}

.page-links {
  display: flex;
  gap: 12px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-weight: 500;
}

.page-links a:hover,
.page-links .page-link.current {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--dark-bg);
}

/* ===== COMMENTS SECTION ===== */
.comments-area {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-title,
.comment-reply-title {
  font-size: 1.5rem;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--pink);
  outline: none;
}

.comment-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  margin-bottom: 32px;
  padding: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-author {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.comment-date {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.comment-text {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== RESPONSIVE BLOG/PAGE ===== */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
  }

  .page-title {
    font-size: 2rem;
  }

  .blog-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 56px;
  }

  html,
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
  h2 {
    font-size: clamp(1.3rem, 4vw, 2rem);
  }
  h3 {
    font-size: 1.1rem;
  }

  /* HEADER */
  header {
    height: var(--header-h);
  }

  .header-inner {
    padding: 0 16px;
  }

  .brand {
    gap: 4px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* HERO */
  .hero-inner {
    flex-direction: column;
    gap: 32px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

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

  .hero-stats {
    flex-direction: column;
    max-width: 100%;
  }

  .hero-visual {
    width: 100%;
  }

  .glass-card {
    padding: 24px 16px;
  }

  /* SECTIONS */
  .section-title h2 {
    font-size: 1.75rem;
  }

  .section-title p {
    font-size: 0.95rem;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .partner-card {
    padding: 16px;
    font-size: 0.875rem;
  }

  .affiliates-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .affiliates-column {
    text-align: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-card {
    padding: 24px 16px;
  }

  .feature-card h3 {
    font-size: 1rem;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
  }

  .faq-container {
    max-width: 100%;
  }

  .faq-question {
    padding: 16px;
    font-size: 0.95rem;
  }

  .contact-form-wrapper {
    padding: 24px 16px;
  }

  .contact-form-wrapper input,
  .contact-form-wrapper textarea {
    font-size: 16px;
  }

  .cta-wrapper {
    padding: 40px 20px;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  .cta-content p {
    font-size: 0.95rem;
  }

  /* FOOTER */
  footer {
    padding: 60px 0 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    font-size: 0.875rem;
  }

  /* BLOG */
  .blog-header {
    margin-bottom: 32px;
  }

  .blog-title {
    font-size: 1.75rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .blog-card {
    flex-direction: column;
  }

  .blog-card-image {
    width: 100%;
    height: 200px;
  }

  .blog-card-content {
    padding: 16px;
  }

  .blog-card-title {
    font-size: 1.1rem;
  }

  .blog-card-meta {
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
  }

  .blog-card-excerpt {
    font-size: 0.9rem;
    margin-bottom: 12px;
  }

  /* PAGE */
  .page-content {
    padding: 80px 0 40px;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .page-body {
    font-size: 0.95rem;
  }

  .page-body h2 {
    font-size: 1.35rem;
    margin-top: 32px;
  }

  .page-body h3 {
    font-size: 1.1rem;
  }

  /* BUTTONS */
  .btn-primary,
  .btn-secondary {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .btn-large {
    padding: 14px 28px;
    font-size: 0.95rem;
  }

  /* COMMENTS */
  .comment {
    padding: 12px;
  }

  .comment-form input,
  .comment-form textarea {
    padding: 10px 12px;
    font-size: 16px;
  }

  body {
    padding-top: var(--header-h) !important;
  }
}

/* ===== ELEMENTOR SUPPORT ===== */
.elementor-page-wrapper {
  width: 100%;
  min-height: 100vh;
}

.elementor-container,
.elementor-area {
  width: 100%;
  max-width: 100%;
}

.elementor-container {
  padding: 0;
}

.main-content .elementor-container {
  max-width: 100% !important;
  margin: 0 !important;
}

/* ===== ELEMENTOR EDITABLE CONTENT ===== */
.elementor-editable-content {
  width: 100%;
  margin-bottom: 60px;
}

.elementor-editable-text {
  cursor: text;
  transition: background 0.2s ease;
}

.elementor-editable-text:hover {
  background: rgba(168, 85, 247, 0.05);
  border-radius: 4px;
  padding: 2px 4px;
}

.elementor-editable-button {
  cursor: pointer;
  transition: all 0.3s ease;
}

.elementor-editable-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.elementor-editable-image {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.elementor-editable-image:hover::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 16px;
  pointer-events: none;
}

.elementor-editable-block {
  position: relative;
}

.elementor-editable-block:hover {
  outline: 2px dashed rgba(168, 85, 247, 0.3);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Section data attributes for Elementor */
[data-elementor-type="section"][data-elementor-id] {
  position: relative;
}

/* Editable section styling */
.elementor-section-hero,
.elementor-section-partners,
.elementor-section-affiliates,
.elementor-section-advertisers,
.elementor-section-features,
.elementor-section-faq,
.elementor-section-contact {
  width: 100%;
}

.elementor-section-hero {
  padding-top: var(--header-h);
}

.elementor-content-wrap {
  width: 100%;
}

.elementor-section {
  padding: 60px 0;
  width: 100%;
}

.elementor-section-wrap {
  width: 100%;
}

.elementor-column {
  margin-bottom: 20px;
  width: 100%;
}

.elementor-widget-container {
  margin-bottom: 20px;
}

/* Elementor heading compatibility */
.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4,
.elementor-widget-heading h5,
.elementor-widget-heading h6 {
  color: var(--text-primary);
}

/* Elementor button compatibility */
.elementor-button {
  background: var(--gradient-button);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
}

.elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.3);
}

.elementor-button.elementor-size-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.elementor-button.elementor-size-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Elementor text/content compatibility */
.elementor-widget-text-editor {
  color: var(--text-secondary);
  line-height: 1.6;
}

.elementor-widget-text-editor p {
  color: var(--text-secondary);
}

.elementor-widget-text-editor a {
  color: var(--pink);
}

.elementor-widget-text-editor a:hover {
  color: var(--purple);
}

/* Elementor image compatibility */
.elementor-widget-image img {
  border-radius: 12px;
  transition: transform 0.3s ease;
  max-width: 100%;
  height: auto;
}

.elementor-widget-image:hover img {
  transform: scale(1.05);
}

.elementor-image img {
  border-radius: 12px;
}

/* Elementor column spacing */
.elementor-element.elementor-element-populated {
  margin-bottom: 20px;
}

/* Full width sections */
.elementor-section.elementor-section-full_width {
  padding: 60px 0;
}

.elementor-section-full_width .elementor-container {
  max-width: 100%;
  padding: 0 20px;
}

/* ===== SITE HEADER (replaces Tailwind classes) ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.brand-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 1rem;
}

.btn-signup {
  padding: 8px 24px;
  border-radius: 9999px;
  font-size: 0.875rem;
}

/* Nav list styling */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-list li a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.nav-list li a:hover {
  color: var(--pink);
}

/* Social icons */
.social-icon {
  width: 20px;
  height: 20px;
}

/* ===== HAMBURGER MENU BUTTON ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE DRAWER ===== */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.mobile-drawer.open {
  visibility: visible;
  opacity: 1;
}

.drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background: #0a0c0f;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  padding: 80px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-drawer.open .drawer-panel {
  transform: translateX(0);
}

/* Tailwind-based drawer: open state overrides */
#mobDrawer.open {
  pointer-events: auto;
}
#mobDrawer.open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}
#mobDrawer.open .drawer-panel {
  transform: translateX(0);
}

/* Back to top button: visible state */
#backTop.show {
  opacity: 1;
  pointer-events: auto;
}

.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.drawer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-nav-list li a {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.drawer-nav-list li a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.drawer-actions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-actions .btn-login {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
}

.drawer-actions .btn-primary {
  text-align: center;
  padding: 12px;
  border-radius: 8px;
}

/* ===== SITE FOOTER (replaces Tailwind classes) ===== */
.site-footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 80px 0 40px;
}

.site-footer .footer-brand .brand {
  margin-bottom: 24px;
}

.site-footer .footer-brand > p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ===== STITCH FRONT PAGE (Elementor content area) ===== */
.stitch-front-page {
  min-height: 100vh;
}

.stitch-front-page .elementor {
  width: 100%;
}

/* Ensure Elementor sections go full width */
.stitch-front-page .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--container);
}

.stitch-front-page .elementor-section.elementor-section-full_width > .elementor-container {
  max-width: 100%;
}

/* ===== BTN-DYNAMIC (from Stitch) ===== */
.btn-dynamic {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #f97316 100%);
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  color: #fff;
}

.btn-dynamic:hover {
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.4);
  transform: translateY(-2px);
}

/* ===== VIBRANT ROSE GRADIENT (from Stitch hero) ===== */
.vibrant-rose-gradient {
  background:
    radial-gradient(circle at 10% 20%, rgba(91, 33, 182, 0.8) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(219, 39, 119, 0.6) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.4) 0%, transparent 60%),
    radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.3) 0%, transparent 30%),
    radial-gradient(circle at 20% 90%, rgba(251, 191, 36, 0.2) 0%, transparent 30%),
    #020408;
}

/* ===== RESPONSIVE: Mobile header ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
  }

  .header-actions .btn-login,
  .header-actions .btn-signup {
    display: none;
  }

  .site-footer .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-locations {
    flex-direction: column;
    gap: 8px;
  }
}

/* ===== ACCESSIBILITY & UTILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== ELEMENTOR EDITOR INSIDE THEME ===== */
.elementor-editor-active .site-header {
  position: relative;
}

.elementor-editor-active .main-content {
  padding-top: 0;
}

/* Ensure Elementor inner sections inherit theme dark bg */
.elementor-section {
  color: var(--text-secondary);
}

.elementor-section .elementor-heading-title {
  color: var(--text-primary);
}

.elementor-section .elementor-text-editor,
.elementor-section .elementor-text-editor p {
  color: var(--text-secondary);
}

/* Gradient text utility for Elementor headings */
.hero-gradient-text,
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
