/*
Theme Name: WebSocialTraffic
Theme URI: https://websocialtraffic.com/
Author: WebSocialTraffic Engineering Team
Author URI: https://websocialtraffic.com/
Description: High-performance enterprise WordPress theme engineered for Generative Engine Optimization (GEO), AI SEO audits, ROI calculations, and conversion-optimized digital marketing funnels. Includes complete Bento Grid frontend styling and interactive JS engine.
Version: 1.0.0
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: websocialtraffic
Tags: bento-grid, seo-ready, high-performance, agency, digital-marketing, dark-mode, custom-colors, translation-ready
*/

/* ==========================================================================
   1. GLOBAL RESET & DESIGN TOKENS
   ========================================================================== */
:root {
  --wst-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  --wst-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --wst-bg-primary: #ffffff;
  --wst-bg-secondary: #f8fafc;
  --wst-bg-tertiary: #f1f5f9;
  --wst-bg-dark: #0f172a;
  --wst-bg-dark-card: #1e293b;
  --wst-text-main: #0f172a;
  --wst-text-muted: #64748b;
  --wst-text-light: #94a3b8;
  --wst-border-light: #e2e8f0;
  --wst-border-dark: #334155;
  --wst-brand-blue: #2563eb;
  --wst-brand-blue-hover: #1d4ed8;
  --wst-brand-emerald: #059669;
  --wst-brand-purple: #7c3aed;
  --wst-radius-sm: 8px;
  --wst-radius-md: 16px;
  --wst-radius-lg: 24px;
  --wst-radius-xl: 32px;
  --wst-shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --wst-shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --wst-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--wst-font-sans);
  color: var(--wst-text-main);
  background-color: var(--wst-bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--wst-brand-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--wst-brand-blue-hover);
}

/* ==========================================================================
   2. BENTO GRID ARCHITECTURE
   ========================================================================== */
.wst-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.wst-bento-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .wst-bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .wst-bento-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .wst-col-3 { grid-column: span 3; }
  .wst-col-4 { grid-column: span 4; }
  .wst-col-5 { grid-column: span 5; }
  .wst-col-6 { grid-column: span 6; }
  .wst-col-7 { grid-column: span 7; }
  .wst-col-8 { grid-column: span 8; }
  .wst-col-12 { grid-column: span 12; }
}

.wst-card {
  background: #ffffff;
  border: 1px solid var(--wst-border-light);
  border-radius: var(--wst-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--wst-shadow-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.wst-card:hover {
  border-color: #93c5fd;
  box-shadow: var(--wst-shadow-hover);
  transform: translateY(-2px);
}

.wst-card-dark {
  background: var(--wst-bg-dark);
  color: #ffffff;
  border-color: var(--wst-border-dark);
}
.wst-card-dark:hover {
  border-color: #60a5fa;
}

/* ==========================================================================
   3. HERO & TELEMETRY BADGES
   ========================================================================== */
.wst-hero-section {
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at 50% 0%, #f1f5f9 0%, #ffffff 70%);
  border-bottom: 1px solid var(--wst-border-light);
}

.wst-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #eff6ff;
  color: var(--wst-brand-blue);
  border: 1px solid #bfdbfe;
}

.wst-badge-emerald {
  background: #ecfdf5;
  color: var(--wst-brand-emerald);
  border-color: #a7f3d0;
}

.wst-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: wstPulse 2s infinite;
}

@keyframes wstPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.wst-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 14px;
  background: var(--wst-brand-blue);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.35);
  transition: all 0.2s ease;
}

.wst-btn-primary:hover {
  background: var(--wst-brand-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.45);
}

/* ==========================================================================
   4. INTERACTIVE AI SEO & ROI CALCULATOR MODULES
   ========================================================================== */
.wst-slider-wrapper {
  margin: 1.25rem 0;
}
.wst-slider-wrapper label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wst-text-muted);
  margin-bottom: 0.5rem;
}
.wst-slider {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: #cbd5e1;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.wst-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--wst-brand-blue);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.wst-metric-pill {
  padding: 1rem;
  border-radius: var(--wst-radius-md);
  background: #f8fafc;
  border: 1px solid var(--wst-border-light);
  text-align: center;
}
.wst-metric-number {
  font-family: var(--wst-font-mono);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--wst-brand-blue);
  display: block;
}

/* ==========================================================================
   5. HEADER & FOOTER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--wst-border-light);
  padding: 1rem 0;
}
.site-branding .brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--wst-text-main);
  letter-spacing: -0.02em;
}
.site-branding .brand-title strong {
  color: var(--wst-brand-blue);
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}
.main-navigation a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--wst-text-muted);
}
.main-navigation a:hover {
  color: var(--wst-brand-blue);
}

.site-footer {
  background: var(--wst-bg-dark);
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--wst-border-dark);
}
.site-footer h4 {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.site-footer a {
  color: #94a3b8;
  font-size: 0.875rem;
}
.site-footer a:hover {
  color: #ffffff;
}

/* ==========================================================================
   6. RESPONSIVE UTILITIES & ANIMATIONS
   ========================================================================== */
@media (max-width: 768px) {
  .site-header .main-navigation {
    display: none;
  }
}
