/* ==========================================================================
   NexTech Ads — WordPress Theme Custom Stylesheet
   nextechads.css  |  v1.0.0
   Dark Glassmorphism Theme for Twenty Twenty-Five FSE
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Design Tokens (matches theme.json palette)
   -------------------------------------------------------------------------- */
:root {
  --nta-bg-primary:   #07070A;
  --nta-bg-secondary: #0D0D14;
  --nta-bg-surface:   #12121E;
  --nta-bg-card:      rgba(18, 18, 30, 0.65);

  --nta-border-glass:       rgba(255, 255, 255, 0.08);
  --nta-border-glass-light: rgba(255, 255, 255, 0.14);
  --nta-border-glass-hover: rgba(255, 255, 255, 0.25);

  --nta-violet:   #8B5CF6;
  --nta-cyan:     #06B6D4;
  --nta-gradient: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 100%);

  --nta-tiktok:     #FE2C55;
  --nta-twitch:     #9146FF;
  --nta-youtube:    #FF0033;
  --nta-soundcloud: #FF5500;
  --nta-spotify:    #1DB954;

  --nta-text-primary:   #FFFFFF;
  --nta-text-secondary: #CBD5E1;
  --nta-text-muted:     #94A3B8;
  --nta-text-dim:       #64748B;
}

/* --------------------------------------------------------------------------
   2. Base Reset for Dark Theme
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body.nta-dark-theme {
  background-color: var(--nta-bg-primary);
  color: var(--nta-text-secondary);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.wp-site-blocks,
.wp-site-blocks > *,
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > footer.wp-block-template-part {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

/* Site Editor / Block Editor Canvas Adjustments */
body.block-editor-iframe__body,
.editor-styles-wrapper {
  background-color: #07070A !important;
  color: #CBD5E1 !important;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
}
body.block-editor-iframe__body #nta-site-header,
.editor-styles-wrapper #nta-site-header {
  position: relative !important;
  top: 0 !important;
}
body.block-editor-iframe__body .nta-header-spacer,
.editor-styles-wrapper .nta-header-spacer {
  display: none !important;
}

body.nta-dark-theme h1,
body.nta-dark-theme h2,
body.nta-dark-theme h3,
body.nta-dark-theme h4,
body.nta-dark-theme h5,
body.nta-dark-theme h6 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--nta-text-primary);
  letter-spacing: -0.025em;
}

/* --------------------------------------------------------------------------
   3. Navbar Styling
   -------------------------------------------------------------------------- */
.nta-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 10, 0.88) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nta-border-glass);
}

.nta-nav-wrapper .wp-block-navigation a {
  color: #CBD5E1 !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  text-decoration: none !important;
}

.nta-nav-wrapper .wp-block-navigation a:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.05);
}

.nta-cta-btn .wp-block-button__link {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.nta-cta-btn .wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

/* Logo in nav */
.nta-nav-wrapper .wp-block-site-logo img,
.nta-nav-wrapper .nta-logo-fallback img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   4. Noise / Grain Overlay
   -------------------------------------------------------------------------- */
body.nta-dark-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url('../img/noise.svg');
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 999;
}

/* --------------------------------------------------------------------------
   5. Hero Radial Glow
   -------------------------------------------------------------------------- */
.nta-hero {
  position: relative;
  overflow: hidden;
}

.nta-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, rgba(6, 182, 212, 0.08) 45%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.nta-hero .wp-block-group {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   6. Glassmorphism Service & FAQ Cards
   -------------------------------------------------------------------------- */
.nta-service-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease !important;
}

.nta-service-card:hover {
  transform: translateY(-6px);
}

.nta-card-tiktok:hover {
  border-color: rgba(254, 44, 85, 0.5) !important;
  box-shadow: 0 20px 45px -10px rgba(254, 44, 85, 0.3) !important;
}

.nta-card-twitch:hover {
  border-color: rgba(145, 70, 255, 0.5) !important;
  box-shadow: 0 20px 45px -10px rgba(145, 70, 255, 0.3) !important;
}

.nta-card-youtube:hover {
  border-color: rgba(255, 0, 51, 0.5) !important;
  box-shadow: 0 20px 45px -10px rgba(255, 0, 51, 0.3) !important;
}

.nta-card-soundcloud:hover {
  border-color: rgba(255, 85, 0, 0.5) !important;
  box-shadow: 0 20px 45px -10px rgba(255, 85, 0, 0.3) !important;
}

.nta-card-spotify:hover {
  border-color: rgba(29, 185, 84, 0.5) !important;
  box-shadow: 0 20px 45px -10px rgba(29, 185, 84, 0.3) !important;
}

/* --------------------------------------------------------------------------
   7. Chart / Dashboard Visual Panels
   -------------------------------------------------------------------------- */
.nta-chart-panel {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nta-chart-wrap {
  border-radius: 12px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   8. FAQ Details Block
   -------------------------------------------------------------------------- */
.nta-faq-item {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.2s;
}

.nta-faq-item summary {
  list-style: none;
  user-select: none;
}

.nta-faq-item summary::-webkit-details-marker {
  display: none;
}

.nta-faq-item[open] {
  border-color: rgba(139, 92, 246, 0.3) !important;
}

/* --------------------------------------------------------------------------
   9. Buttons — Platform-specific
   -------------------------------------------------------------------------- */
.wp-block-button__link {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   10. Floating WhatsApp Button
   -------------------------------------------------------------------------- */
.nta-whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #008069;
  color: #fff !important;
  border-radius: 100px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none !important;
  box-shadow: 0 8px 30px rgba(0, 128, 105, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nta-whatsapp-float:hover {
  transform: scale(1.05);
  background: #00705c;
  box-shadow: 0 12px 40px rgba(0, 128, 105, 0.6);
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.wp-block-group footer,
footer.wp-block-template-part {
  border-top: 1px solid var(--nta-border-glass);
}

footer .wp-block-navigation a {
  color: #94A3B8 !important;
  font-size: 0.875rem;
  text-decoration: none !important;
  transition: color 0.2s;
}

footer .wp-block-navigation a:hover {
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   12. Scroll Reveal
   -------------------------------------------------------------------------- */
.nta-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.nta-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   13. Accessibility & Focus
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--nta-violet) !important;
  outline-offset: 3px !important;
}

/* --------------------------------------------------------------------------
   14. Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .nta-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   15. Responsive Tweaks
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .nta-hero .wp-block-heading {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
  }

  .nta-whatsapp-float span:not(:first-child) {
    display: none;
  }

  .nta-whatsapp-float {
    padding: 14px;
    border-radius: 50%;
  }
}
