/* ==========================================================================
   Quality Guest Post (GUESTPOSTLINKS) - Master Stylesheet
   Signature Colors: Royal Blue (#2454d6), Vibrant Orange (#ff6b00), Deep Navy (#0b1329)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Brand Core Palette */
  --brand-blue: #2454d6;
  --brand-blue-hover: #1b3ea8;
  --brand-blue-deep: #153488;
  --brand-blue-light: #eff4fe;
  --brand-blue-subtle: #dbeafe;
  
  --brand-orange: #ff6b00;
  --brand-orange-hover: #ea580c;
  --brand-orange-light: #fff7ed;
  --brand-orange-glow: rgba(255, 107, 0, 0.35);

  --brand-navy: #0b1329;
  --brand-navy-dark: #060a17;
  --brand-navy-surface: #0f172a;
  --brand-navy-card: #1e293b;

  /* Accent Tones */
  --accent-emerald: #10b981;
  --accent-emerald-light: #ecfdf5;
  --accent-purple: #8b5cf6;
  --accent-purple-light: #faf5ff;
  --accent-amber: #f59e0b;
  --accent-amber-light: #fffbeb;
  --accent-rose: #f43f5e;
  --accent-rose-light: #fff1f2;

  /* Surfaces & Borders */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-subtle: #e2e8f0;
  --border-hover: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;

  /* Master Gradients */
  --grad-primary: linear-gradient(135deg, #2454d6 0%, #1b3ea8 100%);
  --grad-primary-hover: linear-gradient(135deg, #1b3ea8 0%, #153488 100%);
  --grad-orange: linear-gradient(135deg, #ff6b00 0%, #ff8533 100%);
  --grad-orange-hover: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  --grad-dark-navy: linear-gradient(135deg, #0b1329 0%, #0f172a 100%);
  --grad-card-glow: linear-gradient(180deg, rgba(36, 84, 214, 0.08) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #334155;
  background-color: var(--bg-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
  color: #0f172a;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Brand Button Components & Gradients
   ========================================================================== */

.btn-primary-gradient {
  background: var(--grad-primary);
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 rgba(36, 84, 214, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary-gradient:hover {
  background: var(--grad-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(36, 84, 214, 0.4);
}

.btn-primary-gradient:active {
  transform: translateY(0);
}

.btn-orange-gradient {
  background: var(--grad-orange);
  color: #ffffff !important;
  font-weight: 800;
  border-radius: 0.75rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px 0 rgba(255, 107, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-orange-gradient:hover {
  background: var(--grad-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(255, 107, 0, 0.45);
}

.btn-orange-gradient:active {
  transform: translateY(0);
}

.btn-ghost-white {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  font-weight: 700;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-outline-brand {
  background: #ffffff;
  color: var(--brand-blue);
  border: 1.5px solid var(--brand-blue);
  border-radius: 0.75rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-outline-brand:hover {
  background: var(--brand-blue-light);
  border-color: var(--brand-blue-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Section Backgrounds & Ambient Lighting
   ========================================================================== */

.section-hero-brand {
  background: linear-gradient(135deg, #2454d6 0%, #1b3ea8 60%, #153488 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.section-hero-brand::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.section-hero-brand::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.15) 0%, rgba(255, 107, 0, 0) 70%);
  pointer-events: none;
}

.section-light {
  background-color: #ffffff;
}

.section-subtle {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.section-dark-navy {
  background: var(--brand-navy);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.section-dark-navy h1,
.section-dark-navy h2,
.section-dark-navy h3,
.section-dark-navy h4 {
  color: #ffffff;
}

/* Ambient glow orbs */
.glow-orb-blue {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(36, 84, 214, 0.25) 0%, rgba(36, 84, 214, 0) 70%);
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(40px);
}

.glow-orb-orange {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.22) 0%, rgba(255, 107, 0, 0) 70%);
  border-radius: 9999px;
  pointer-events: none;
  filter: blur(40px);
}

/* ==========================================================================
   Cards & Elevated Surfaces
   ========================================================================== */

.card-elevated {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-elevated:hover {
  transform: translateY(-4px);
  border-color: var(--brand-blue-subtle);
  box-shadow: 0 20px 25px -5px rgba(36, 84, 214, 0.08), 0 8px 10px -6px rgba(36, 84, 214, 0.04);
}

/* Feature Pillar Card */
.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -8px rgba(36, 84, 214, 0.12);
  border-color: #cbd5e1;
}

.pillar-card.pillar-blue:hover::before { background: var(--brand-blue); }
.pillar-card.pillar-emerald:hover::before { background: var(--accent-emerald); }
.pillar-card.pillar-amber:hover::before { background: var(--brand-orange); }
.pillar-card.pillar-purple:hover::before { background: var(--accent-purple); }

/* Pricing Cards */
.pricing-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 40px -12px rgba(15, 23, 42, 0.12);
  border-color: var(--brand-blue-subtle);
}

.pricing-card.spotlight {
  border: 2px solid var(--brand-blue);
  box-shadow: 0 20px 40px -8px rgba(36, 84, 214, 0.18);
  position: relative;
}

.pricing-card.spotlight::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(36, 84, 214, 0.3), rgba(255, 107, 0, 0.2));
  z-index: -1;
  filter: blur(1px);
}

/* ==========================================================================
   Metrics Badges (Moz DA, Ahrefs DR, Traffic, Spam)
   ========================================================================== */

.badge-da {
  background-color: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
  border: 1px solid #bfdbfe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.badge-dr {
  background-color: #faf5ff;
  color: #7e22ce;
  font-weight: 800;
  border: 1px solid #e9d5ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.badge-traffic {
  background-color: #ecfdf5;
  color: #047857;
  font-weight: 800;
  border: 1px solid #a7f3d0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.badge-spam {
  background-color: #f0fdf4;
  color: #15803d;
  font-weight: 700;
  border: 1px solid #bbf7d0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.badge-spam-med {
  background-color: #fffbeb;
  color: #b45309;
  font-weight: 700;
  border: 1px solid #fde68a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ==========================================================================
   Custom Range Slider (Bulk Outreacher)
   ========================================================================== */

#calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 9999px;
  background: #1e293b;
  outline: none;
  transition: background 0.2s;
}

#calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b00 0%, #f97316 100%);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.9);
}

#calc-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b00 0%, #f97316 100%);
  cursor: pointer;
  border: 3px solid #ffffff;
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.7);
}

/* ==========================================================================
   FAQ Accordion System
   ========================================================================== */

.faq-item {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
}

.faq-item.faq-open {
  border-color: var(--brand-blue) !important;
  box-shadow: 0 8px 20px -4px rgba(36, 84, 214, 0.12);
  background: #ffffff;
}

.faq-content {
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-chevron-box {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: #0b1329;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.875rem;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-item.toast-success {
  border-left: 4px solid #10b981;
}

.toast-item.toast-error {
  border-left: 4px solid #f43f5e;
}

.toast-item.toast-info {
  border-left: 4px solid #2454d6;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================================================
   Marketplace Table Styling
   ========================================================================== */

.marketplace-table th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.marketplace-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
  vertical-align: middle;
}

.marketplace-table tr:hover td {
  background-color: #f8fbff;
}

/* Sparklines */
.sparkline-red {
  stroke: #ef4444;
  stroke-width: 2;
  fill: none;
}

.sparkline-green {
  stroke: #10b981;
  stroke-width: 2;
  fill: none;
}

/* Filter Pill Buttons */
.filter-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.filter-pill-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.th-brand-col {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: #475569;
  white-space: nowrap;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mega Menu Dropdowns */
.nav-dropdown-wrapper {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
  pointer-events: none;
}

.nav-dropdown-wrapper:hover > .mega-menu,
.nav-dropdown-wrapper:focus-within > .mega-menu,
.nav-dropdown-wrapper.open > .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.nav-dropdown-wrapper.full-width {
  position: static;
}

.mega-menu-full {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100vw;
  max-width: 100vw;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-bottom: 2px solid #cbd5e1;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
  pointer-events: none;
}

.nav-dropdown-wrapper.full-width:hover > .mega-menu-full,
.nav-dropdown-wrapper.full-width:focus-within > .mega-menu-full,
.nav-dropdown-wrapper.full-width.open > .mega-menu-full {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Standard Compact Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 15rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  box-shadow: 0 20px 30px -8px rgba(15, 23, 42, 0.22), 0 8px 10px -6px rgba(15, 23, 42, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 60;
  pointer-events: none;
  padding: 0.5rem;
}

.nav-dropdown-wrapper:hover > .dropdown-menu,
.nav-dropdown-wrapper:focus-within > .dropdown-menu,
.nav-dropdown-wrapper.open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

