/* ==========================================================================
   Quality Guest Post (QGP) - Main Stylesheet
   ========================================================================== */

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

:root {
  --primary: #1b50a9;
  --primary-hover: #153e83;
  --primary-light: #eff6ff;
  --primary-gradient: linear-gradient(135deg, #1b50a9 0%, #2563eb 100%);
  --accent-gradient: linear-gradient(135deg, #fa897d 0%, #fe5f88 100%);
  --secondary-gradient: linear-gradient(135deg, #628ad0 0%, #1b50a9 100%);
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --border-color: #e2e8f0;
  --bg-subtle: #f8fafc;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #334155;
  background-color: #ffffff;
  overflow-x: hidden;
}

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

/* Custom Gradient Utilities */
.bg-qgp-primary {
  background: var(--primary-gradient);
}

.bg-qgp-accent {
  background: var(--accent-gradient);
}

.bg-qgp-secondary {
  background: var(--secondary-gradient);
}

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

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

/* Button & Card Hover Effects */
.btn-primary-gradient {
  background: var(--primary-gradient);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 rgba(27, 80, 169, 0.25);
}

.btn-primary-gradient:hover {
  background: linear-gradient(135deg, #153e83 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(27, 80, 169, 0.35);
}

.btn-accent-gradient {
  background: var(--accent-gradient);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px 0 rgba(254, 95, 136, 0.25);
}

.btn-accent-gradient:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(254, 95, 136, 0.35);
}

/* Pricing Spotlight Card */
.pricing-card {
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(27, 80, 169, 0.15);
}

.pricing-card.spotlight {
  border: 2px solid #2563eb;
  position: relative;
  box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.2);
}

/* Order Details Highlight Box */
.order-details-wrapper {
  background: #fffbeb;
  border: 2px solid #f59e0b;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.order-details-title {
  color: #b45309;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.order-textarea {
  border: 2px solid #ef4444;
  border-radius: 0.5rem;
  background-color: #ffffff;
  min-height: 120px;
  transition: all 0.2s ease;
}

.order-textarea:focus {
  border-color: #1b50a9;
  box-shadow: 0 0 0 3px rgba(27, 80, 169, 0.15);
  outline: none;
}

/* Data Table Styling for Marketplace */
.marketplace-table th {
  background-color: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 0.85rem;
  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.925rem;
  vertical-align: middle;
}

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

/* Metric Pill Badges */
.badge-da {
  background-color: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  border: 1px solid #bfdbfe;
}

.badge-dr {
  background-color: #faf5ff;
  color: #7e22ce;
  font-weight: 700;
  border: 1px solid #e9d5ff;
}

.badge-traffic {
  background-color: #ecfdf5;
  color: #047857;
  font-weight: 700;
  border: 1px solid #a7f3d0;
}

.badge-spam {
  background-color: #f0fdf4;
  color: #15803d;
  font-weight: 600;
  border: 1px solid #bbf7d0;
}

.badge-spam-med {
  background-color: #fffbeb;
  color: #b45309;
  font-weight: 600;
  border: 1px solid #fde68a;
}

/* Cart Drawer */
.cart-drawer-overlay {
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease;
}

.cart-drawer {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating Batch Action Bar */
.floating-batch-bar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: #0f172a;
  color: #ffffff;
  border-radius: 9999px;
  box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.4);
  z-index: 40;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-batch-bar.visible {
  transform: translateX(-50%) translateY(0);
}

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

.toast-item {
  pointer-events: auto;
  min-width: 280px;
  padding: 0.9rem 1.25rem;
  border-radius: 0.5rem;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* FAQ Accordion Transitions */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-content {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

/* Custom Checkbox */
.custom-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: #1b50a9;
  cursor: pointer;
}

/* 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 Navigation Styles */
.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;
}

/* Full Width Mega Menu for Niches */
.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;
}
