/* SitePulse WordPress Theme - Custom Styles */
/* Works with Bootstrap 5.3 */

/* CSS Variables - SitePulse Dark Theme */
:root {
  /* Core Colors */
  --sp-background: hsl(240, 10%, 4%);
  --sp-foreground: hsl(210, 40%, 98%);
  
  --sp-card: hsl(240, 10%, 6%);
  --sp-card-foreground: hsl(210, 40%, 98%);
  
  --sp-popover: hsl(240, 10%, 8%);
  --sp-popover-foreground: hsl(210, 40%, 98%);
  
  /* Cyan accent - SitePulse brand color */
  --sp-primary: hsl(190, 100%, 50%);
  --sp-primary-foreground: hsl(240, 10%, 4%);
  
  --sp-secondary: hsl(240, 10%, 12%);
  --sp-secondary-foreground: hsl(210, 40%, 98%);
  
  --sp-muted: hsl(240, 10%, 15%);
  /* Muted text — raised for WCAG contrast on dark backgrounds */
  --sp-muted-foreground: hsl(215, 12%, 68%);
  
  --sp-accent: hsl(190, 100%, 50%);
  --sp-accent-foreground: hsl(240, 10%, 4%);
  
  --sp-destructive: hsl(0, 72%, 51%);
  --sp-border: hsl(240, 10%, 18%);
  --sp-input: hsl(240, 10%, 15%);
  --sp-ring: hsl(190, 100%, 50%);
  
  --sp-radius: 0.75rem;
  
  /* Custom Tokens */
  --sp-glow-primary: hsl(190, 100%, 50%);
  --sp-glow-secondary: hsl(260, 100%, 65%);
  --sp-surface-elevated: hsl(240, 10%, 8%);
  --sp-success: hsl(142, 76%, 36%);
  --sp-warning: hsl(38, 92%, 50%);
  --sp-info: hsl(190, 100%, 50%);
}

/* Base Styles */
* {
  border-color: var(--sp-border);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--sp-background);
  color: var(--sp-foreground);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--sp-foreground);
  font-weight: 700;
}

p {
  color: var(--sp-muted-foreground);
}

a {
  color: var(--sp-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--sp-primary);
  opacity: 0.9;
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, var(--sp-primary) 0%, var(--sp-glow-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Background Gradients */
.bg-hero-glow {
  background: radial-gradient(ellipse at center top, hsla(190, 100%, 50%, 0.15) 0%, transparent 50%);
}

.gradient-glow {
  background: linear-gradient(180deg, hsla(190, 100%, 50%, 0.15) 0%, transparent 100%);
}

/* Glow Effects */
.glow-primary {
  box-shadow: 0 0 40px hsla(190, 100%, 50%, 0.3), 0 0 80px hsla(190, 100%, 50%, 0.1);
}

.glow-primary-sm {
  box-shadow: 0 0 20px hsla(190, 100%, 50%, 0.2);
}

/* Glass Effect */
.glass {
  background: hsla(240, 10%, 6%, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: hsla(240, 10%, 18%, 0.5);
}

/* Card Styles */
.sp-card {
  background-color: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.sp-card:hover {
  border-color: hsla(190, 100%, 50%, 0.3);
  box-shadow: 0 0 30px hsla(190, 100%, 50%, 0.1);
  transform: translateY(-2px);
}

.sp-card-static {
  background-color: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 1.5rem;
}

/* Button Styles */
.btn-primary {
  background-color: var(--sp-primary);
  border-color: var(--sp-primary);
  color: var(--sp-primary-foreground);
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: var(--sp-radius);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--sp-primary);
  border-color: var(--sp-primary);
  opacity: 0.9;
  color: var(--sp-primary-foreground);
}

.btn-primary.glow-primary {
  box-shadow: 0 0 40px hsla(190, 100%, 50%, 0.3), 0 0 80px hsla(190, 100%, 50%, 0.1);
}

.btn-primary.glow-primary-sm {
  box-shadow: 0 0 20px hsla(190, 100%, 50%, 0.2);
}

.btn-outline-primary {
  background-color: transparent;
  border: 1px solid var(--sp-border);
  color: var(--sp-foreground);
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: var(--sp-radius);
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  background-color: var(--sp-secondary);
  border-color: var(--sp-border);
  color: var(--sp-foreground);
}

.btn-outline-secondary {
  background-color: transparent;
  border: 1px solid var(--sp-border);
  color: var(--sp-foreground);
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: var(--sp-radius);
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background-color: var(--sp-secondary);
  border-color: var(--sp-border);
  color: var(--sp-foreground);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

/* Badge Styles */
.sp-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid;
}

.sp-badge-primary {
  border-color: hsla(190, 100%, 50%, 0.5);
  color: var(--sp-primary);
  background: transparent;
}

.sp-badge-success {
  border-color: hsla(142, 76%, 36%, 0.5);
  color: var(--sp-success);
  background: transparent;
}

.sp-badge-warning {
  border-color: hsla(38, 92%, 50%, 0.5);
  color: var(--sp-warning);
  background: transparent;
}

.sp-badge-filled {
  background: hsla(190, 100%, 50%, 0.2);
  color: var(--sp-primary);
  border: none;
}

/* Header / Navigation */
.sp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: hsla(240, 10%, 6%, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--sp-border);
}

.sp-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--sp-foreground);
  text-decoration: none;
  transition: all 0.3s ease;
}

.sp-header .navbar-brand:hover {
  color: var(--sp-foreground);
  text-decoration: none;
}

.sp-header .navbar-brand .logo-icon-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, hsl(270, 80%, 55%), hsl(220, 90%, 55%), hsl(190, 100%, 50%));
  padding: 2px;
}

.sp-header .navbar-brand .logo-icon-wrapper::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: hsl(240, 10%, 8%);
  border-radius: 0.5rem;
  z-index: 0;
}

.sp-header .navbar-brand .logo-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--sp-primary);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.sp-header .navbar-brand:hover .logo-icon {
  transform: scale(1.1);
}

.sp-header .navbar-brand .logo-glow {
  position: absolute;
  inset: 0;
  background: var(--sp-primary);
  opacity: 0.3;
  filter: blur(12px);
  border-radius: 50%;
  transition: opacity 0.3s ease;
}

.sp-header .navbar-brand:hover .logo-glow {
  opacity: 0.5;
}

.sp-header .navbar-brand .logo-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.sp-header .navbar-brand .logo-text {
  color: var(--sp-foreground);
}

.sp-header .navbar-brand .logo-text span {
  color: var(--sp-primary);
}

.sp-header .navbar-brand .logo-tagline {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--sp-muted-foreground);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sp-header .nav-link {
  color: var(--sp-muted-foreground) !important;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.sp-header .nav-link:hover,
.sp-header .nav-link.active {
  color: var(--sp-foreground);
  background: hsla(240, 10%, 12%, 0.5);
}

.sp-header .nav-link.text-primary {
  color: var(--sp-primary);
}

/* Dropdown */
.sp-dropdown .dropdown-menu {
  background-color: var(--sp-popover);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 0.5rem;
  min-width: 12rem;
}

.sp-dropdown .dropdown-item {
  color: var(--sp-foreground);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
}

.sp-dropdown .dropdown-item:hover {
  background-color: var(--sp-secondary);
  color: var(--sp-foreground);
}

/* Icon Box */
.sp-icon-box {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sp-radius);
  background: hsla(190, 100%, 50%, 0.1);
  flex-shrink: 0;
}

.sp-icon-box svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--sp-primary);
}

.sp-icon-box-sm {
  width: 2.5rem;
  height: 2.5rem;
}

.sp-icon-box-sm svg {
  width: 1.25rem;
  height: 1.25rem;
}

.sp-icon-box-lg {
  width: 4rem;
  height: 4rem;
}

.sp-icon-box-lg svg {
  width: 2rem;
  height: 2rem;
}

/* Feature Box */
.sp-feature-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--sp-radius);
  background: hsla(240, 10%, 6%, 0.5);
  border: 1px solid var(--sp-border);
  transition: all 0.3s ease;
  text-align: center;
}

.sp-feature-box:hover {
  border-color: hsla(190, 100%, 50%, 0.3);
}

.sp-feature-box svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--sp-primary);
}

.sp-feature-box span {
  font-size: 0.875rem;
  color: var(--sp-foreground);
}

/* Section Styles */
.sp-section {
  padding: 5rem 0;
}

.sp-section-lg {
  padding: 8rem 0;
}

.sp-section-bg {
  background: linear-gradient(to bottom, var(--sp-background), hsla(240, 10%, 6%, 0.5));
}

.sp-section-card-bg {
  background: hsla(240, 10%, 6%, 0.5);
}

/* Hero Section */
.sp-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 4rem;
}

.sp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, hsla(190, 100%, 50%, 0.15) 0%, transparent 50%);
}

.sp-hero-blob-1 {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background: hsla(190, 100%, 50%, 0.1);
  border-radius: 50%;
  filter: blur(48px);
}

.sp-hero-blob-2 {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 24rem;
  height: 24rem;
  background: hsla(260, 100%, 65%, 0.1);
  border-radius: 50%;
  filter: blur(48px);
}

/* Scroll Indicator */
.sp-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.sp-scroll-indicator-inner {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid hsla(215, 12%, 68%, 0.3);
  border-radius: 9999px;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.sp-scroll-indicator-dot {
  width: 0.25rem;
  height: 0.5rem;
  background: hsla(215, 12%, 68%, 0.5);
  border-radius: 9999px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Footer */
.sp-footer {
  background-color: var(--sp-card);
  border-top: 1px solid var(--sp-border);
}

.sp-footer h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.sp-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-footer ul li {
  margin-bottom: 0.75rem;
}

.sp-footer ul li a {
  color: var(--sp-muted-foreground);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.sp-footer ul li a:hover {
  color: var(--sp-primary);
}

.sp-footer-bottom {
  border-top: 1px solid var(--sp-border);
  padding: 1.5rem 0;
}

/* Form Styles */
.sp-form-control {
  background-color: var(--sp-background);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  color: var(--sp-foreground);
  padding: 0.625rem 1rem;
}

.sp-form-control:focus {
  background-color: var(--sp-background);
  border-color: var(--sp-primary);
  color: var(--sp-foreground);
  box-shadow: 0 0 0 2px hsla(190, 100%, 50%, 0.2);
}

.sp-form-control::placeholder {
  color: var(--sp-muted-foreground);
}

/* Star Rating */
.sp-star {
  color: var(--sp-primary);
  fill: var(--sp-primary);
}

/* Quote Icon */
.sp-quote-icon {
  color: hsla(190, 100%, 50%, 0.3);
}

/* Compatibility Badges */
.sp-compat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--sp-secondary);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--sp-muted-foreground);
}

/* Check List */
.sp-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.sp-check-list li svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.sp-check-list li svg.text-success {
  color: var(--sp-success);
}

.sp-check-list li svg.text-primary {
  color: var(--sp-primary);
}

/* Accordion Styles */
.sp-accordion .accordion-item,
.sp-accordion-item {
  background-color: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  margin-bottom: 1rem;
  overflow: hidden;
}

.sp-accordion .accordion-button,
.sp-accordion-button {
  background-color: var(--sp-card);
  color: var(--sp-foreground);
  font-weight: 500;
  padding: 1rem 1.5rem;
  box-shadow: none;
}

.sp-accordion .accordion-button:not(.collapsed),
.sp-accordion-button:not(.collapsed) {
  background-color: var(--sp-card);
  color: var(--sp-primary);
  box-shadow: none;
}

.sp-accordion .accordion-button:focus,
.sp-accordion-button:focus {
  border-color: var(--sp-primary);
  box-shadow: none;
  outline: 2px solid var(--sp-primary);
  outline-offset: -2px;
}

.sp-accordion .accordion-button::after,
.sp-accordion-button::after {
  filter: invert(1);
}

.sp-accordion .accordion-body,
.sp-accordion-body {
  background-color: var(--sp-card);
  color: var(--sp-muted-foreground);
  padding: 0 1.5rem 1rem 1.5rem;
  line-height: 1.7;
}

/* CTA Card */
.sp-cta-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 3rem 2rem;
}

/* Demo Placeholder */
.sp-demo-placeholder {
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-demo-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Avatar */
.sp-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: hsla(190, 100%, 50%, 0.15);
  color: var(--sp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* Badge Pro */
.sp-badge-pro {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  background: hsla(190, 100%, 50%, 0.15);
  color: var(--sp-primary);
}

/* Checklist */
.sp-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Steps Container */
.sp-steps-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Step Card */
.sp-step-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
}

@media (min-width: 768px) {
  .sp-step-card {
    grid-template-columns: 10rem 1fr;
  }
}

.sp-step-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background: hsla(240, 10%, 12%, 0.3);
}

.sp-step-number-text {
  font-size: 2.5rem;
  font-weight: 700;
  color: hsla(190, 100%, 50%, 0.5);
  line-height: 1;
}

.sp-step-content {
  padding: 1.5rem;
}

/* Pricing Card */
.sp-pricing-card {
  position: relative;
  overflow: hidden;
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 2rem;
  height: 100%;
}

.sp-pricing-card.featured,
.sp-pricing-card-pro {
  border-color: hsla(190, 100%, 50%, 0.5);
}

.sp-pricing-header {
  margin-bottom: 1.5rem;
}

.sp-pricing-price {
  margin-bottom: 1.5rem;
}

.sp-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.sp-pricing-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background: hsla(190, 100%, 50%, 0.15);
  color: var(--sp-primary);
}

.sp-pricing-card .price,
.sp-pricing-price .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--sp-foreground);
}

.sp-pricing-card .price span {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--sp-muted-foreground);
}

.sp-coming-soon-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--sp-primary);
  color: var(--sp-primary-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-bottom-left-radius: var(--sp-radius);
}

/* Prose / Content Styles */
.sp-prose {
  color: var(--sp-muted-foreground);
  line-height: 1.7;
}

.sp-prose h2 {
  color: var(--sp-foreground);
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.sp-prose h3 {
  color: var(--sp-foreground);
  margin-top: 1.5rem;
}

.sp-prose p {
  margin-bottom: 1rem;
}

.sp-prose ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.sp-prose ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.sp-prose code {
  background: var(--sp-secondary);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  color: var(--sp-primary);
}

.sp-prose strong {
  color: var(--sp-foreground);
}

/* Mobile Menu */
.sp-mobile-menu {
  background-color: var(--sp-background);
  border-top: 1px solid var(--sp-border);
}

.sp-mobile-menu .nav-link {
  color: var(--sp-foreground);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sp-border);
}

.sp-mobile-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sp-muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* Trust Indicators */
.sp-trust-indicators {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--sp-muted-foreground);
}

/* Profile Badges */
.sp-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--sp-foreground);
  transition: all 0.3s ease;
}

.sp-profile-badge:hover {
  border-color: hsla(190, 100%, 50%, 0.5);
  color: var(--sp-foreground);
}

/* Search Input */
.sp-search-wrapper {
  position: relative;
}

.sp-search-wrapper svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sp-muted-foreground);
  width: 1.25rem;
  height: 1.25rem;
}

.sp-search-wrapper input {
  padding-left: 2.75rem;
}

/* Doc Card */
.sp-doc-card {
  background-color: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.sp-doc-card:hover {
  border-color: hsla(190, 100%, 50%, 0.3);
}

.sp-doc-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-doc-card ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.sp-doc-card ul li a {
  color: var(--sp-muted-foreground);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.sp-doc-card ul li a:hover {
  color: var(--sp-primary);
}

/* Support Resource Card */
.sp-resource-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 1.5rem;
  height: 100%;
  text-align: center;
  transition: all 0.3s ease;
}

.sp-resource-card:hover {
  border-color: var(--sp-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 30px hsla(190, 100%, 50%, 0.1);
}

/* Documentation List Styles */
.sp-doc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-doc-list li {
  border-bottom: 1px solid var(--sp-border);
}

.sp-doc-list li:last-child {
  border-bottom: none;
}

.sp-doc-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  color: var(--sp-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sp-doc-list a:hover {
  color: var(--sp-primary);
}

.sp-doc-list a svg {
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.2s ease;
}

.sp-doc-list a:hover svg {
  opacity: 1;
  transform: translateX(0);
}

/* Utility Classes */
.text-primary {
  color: var(--sp-primary) !important;
}

.text-muted {
  color: var(--sp-muted-foreground) !important;
}

.text-foreground {
  color: var(--sp-foreground) !important;
}

.text-success {
  color: var(--sp-success) !important;
}

.bg-card {
  background-color: var(--sp-card) !important;
}

.bg-secondary {
  background-color: var(--sp-secondary) !important;
}

.border-primary {
  border-color: var(--sp-primary) !important;
}

.border-border {
  border-color: var(--sp-border) !important;
}

.main-content {
  padding-top: 4rem;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
  .sp-hero {
    min-height: auto;
    padding: 6rem 0 4rem;
  }
  
  .sp-section {
    padding: 3rem 0;
  }
  
  .sp-section-lg {
    padding: 5rem 0;
  }
  
  .sp-hero-blob-1,
  .sp-hero-blob-2 {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .sp-feature-box {
    padding: 0.75rem;
  }
  
  h1 {
    font-size: 2rem;
  }
}

/* Navbar toggler custom */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: 2px solid var(--sp-primary);
  outline-offset: 2px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(210, 220, 240, 0.98)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Custom container width */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* WordPress-specific Styles */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--sp-muted-foreground);
  text-align: center;
  margin-top: 0.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery-item {
  margin: 0;
}

.gallery-icon img {
  width: 100%;
  height: auto;
  border-radius: var(--sp-radius);
}

/* Screen Reader Text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--sp-card);
  clip: auto !important;
  clip-path: none;
  color: var(--sp-foreground);
  display: block;
  font-size: 1rem;
  height: auto;
  left: 5px;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ============================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Skip Link */
.skip-link {
  z-index: 100001;
}

.skip-link:focus {
  background: var(--sp-primary);
  color: var(--sp-primary-foreground);
  font-weight: 600;
  border-radius: 0 0 var(--sp-radius) var(--sp-radius);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  outline: none;
}

/* Global Focus Styles */
*:focus-visible {
  outline: 2px solid var(--sp-primary);
  outline-offset: 2px;
}

/* Button focus */
.btn:focus-visible {
  outline: 2px solid var(--sp-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px hsla(190, 100%, 50%, 0.25);
}

/* Nav link focus */
.sp-header .nav-link:focus-visible {
  outline: 2px solid var(--sp-primary);
  outline-offset: 2px;
  background: hsla(240, 10%, 12%, 0.5);
}

/* Form focus */
.form-control:focus-visible,
.sp-form-control:focus-visible {
  outline: 2px solid var(--sp-primary);
  outline-offset: -2px;
  box-shadow: 0 0 0 4px hsla(190, 100%, 50%, 0.2);
}

/* Dropdown focus */
.sp-dropdown .dropdown-item:focus-visible {
  outline: 2px solid var(--sp-primary);
  outline-offset: -2px;
  background-color: var(--sp-secondary);
}

/* Navbar toggler focus */
.navbar-toggler:focus-visible {
  outline: 2px solid var(--sp-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px hsla(190, 100%, 50%, 0.25);
}

/* Card link focus */
a:focus-visible .sp-card,
a:focus-visible .sp-card-static,
a:focus-visible .sp-resource-card {
  outline: 2px solid var(--sp-primary);
  outline-offset: 2px;
}

/* Accordion button focus */
.sp-accordion .accordion-button:focus-visible,
.sp-accordion-button:focus-visible {
  outline: 2px solid var(--sp-primary);
  outline-offset: -2px;
  box-shadow: none;
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }

  .sp-card:hover {
    transform: none;
  }

  .sp-resource-card:hover {
    transform: none;
  }

  .sp-hero-blob-1,
  .sp-hero-blob-2 {
    display: none;
  }

  .sp-scroll-indicator {
    animation: none;
  }
}

/* High Contrast Mode */
@media (forced-colors: active) {
  .text-gradient {
    -webkit-text-fill-color: unset;
    background: none;
  }

  .sp-card,
  .sp-card-static,
  .sp-pricing-card,
  .sp-resource-card {
    border: 2px solid ButtonText;
  }

  .btn-primary {
    border: 2px solid ButtonText;
  }

  .btn-outline-primary,
  .btn-outline-secondary {
    border: 2px solid ButtonText;
  }

  .sp-icon-box {
    border: 1px solid ButtonText;
  }

  .logo-icon-wrapper {
    border: 2px solid ButtonText;
  }
}

/* Improved Color Contrast - muted text uses centralized token */
.sp-footer ul li a {
  color: var(--sp-muted-foreground);
}

/* Ensure sufficient contrast for tagline */
.sp-header .navbar-brand .logo-tagline {
  color: var(--sp-muted-foreground);
}
