/*
Theme Name: OneInbox Blocksy Child Theme
Theme URI: https://useoneinbox.com/
Description: Lightweight custom styling child theme for OneInbox MVP (Dark mode, glassmorphic UI, glowing SaaS-style typography).
Author: Antigravity Team
Author URI: https://useoneinbox.com/
Template: blocksy
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: dark, minimal, saas, clean, custom-colors
*/

/* ==========================================================================
   1. Design System Tokens (CSS Custom Properties)
   ========================================================================== */
:root {
  /* Color Palette - Premium Dark SaaS Theme */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0c;
  --bg-card: #121216;
  
  --accent-blue: #007aff;
  --accent-cyan: #00f0ff;
  --accent-purple: #8e2de2;
  
  --accent-blue-rgba: rgba(0, 122, 255, 0.15);
  --accent-cyan-rgba: rgba(0, 240, 255, 0.15);
  --accent-purple-rgba: rgba(142, 45, 226, 0.15);
  
  --text-main: #f5f5f7;
  --text-muted: #8e8e93;
  --text-dark: #1c1c1e;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-glow: rgba(0, 240, 255, 0.3);

  /* Spacing */
  --section-padding-desktop: 120px 0;
  --section-padding-mobile: 70px 0;
  --container-width: 1200px;
  
  /* System Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Global Theme Resets & Dark Mode Standard
   ========================================================================== */
body {
  background-color: var(--bg-primary) !important;
  color: var(--text-main) !important;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* Blocksy Theme Body Wrapper Overrides */
#main-container {
  background-color: var(--bg-primary) !important;
}

/* Text selections */
::selection {
  background: var(--accent-cyan-rgba);
  color: var(--accent-cyan);
}

/* Standard Links Styling */
a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
}
a:hover {
  color: var(--accent-blue);
}

/* ==========================================================================
   3. Fluid Typography & Glowing Headings (Mobile-First)
   ========================================================================== */
.hero-heading {
  font-size: clamp(36px, 5vw, 64px) !important;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 24px;
}

.section-heading {
  font-size: clamp(28px, 4vw, 44px) !important;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 16px;
}

/* Text Accent Glows */
.text-glow-blue {
  text-shadow: 0 0 20px rgba(0, 122, 255, 0.4);
  color: var(--accent-blue);
}

.text-glow-cyan {
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  color: var(--accent-cyan);
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-cyan-blue {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-subtext {
  font-size: clamp(16px, 2vw, 18px) !important;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* ==========================================================================
   4. Glassmorphic Containers & Cards
   ========================================================================== */
.glass-card {
  background: rgba(18, 18, 22, 0.6) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  padding: 32px;
  transition: var(--transition-smooth);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  position: relative;
  overflow: hidden;
}

/* Hover Accent for Interactive Cards */
.glass-card-interactive:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.25) !important;
  box-shadow: 0 12px 40px 0 rgba(0, 240, 255, 0.08);
}

.glass-card-interactive::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  opacity: 0;
  transition: var(--transition-smooth);
}

.glass-card-interactive:hover::before {
  opacity: 1;
}

/* ==========================================================================
   5. Glowing CTA Button Styles
   ========================================================================== */
/* Primary Glowing Button */
.btn-primary-glow {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%) !important;
  color: var(--bg-primary) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  padding: 16px 32px !important;
  border-radius: 50px !important;
  border: none !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3) !important;
  transition: var(--transition-smooth) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-transform: none !important;
}

.btn-primary-glow:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6) !important;
  color: var(--bg-primary) !important;
}

/* Secondary Transparent Outline Button */
.btn-secondary-outline {
  background: transparent !important;
  color: var(--text-main) !important;
  font-weight: 600 !important;
  padding: 15px 30px !important;
  border-radius: 50px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  transition: var(--transition-smooth) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-secondary-outline:hover {
  border-color: var(--text-main) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

/* ==========================================================================
   6. Custom Layout Visualizations (Routing Mockups)
   ========================================================================== */
.routing-visualization-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  background: radial-gradient(circle at center, rgba(0, 122, 255, 0.08) 0%, transparent 70%);
}

.routing-glow-radial {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--accent-blue);
  filter: blur(120px);
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

/* Custom UI styling for mock email items inside solution section */
.mock-email-node {
  background: rgba(28, 28, 30, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  max-width: 340px;
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.mock-email-node:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.mock-email-badge {
  background: var(--accent-cyan-rgba);
  color: var(--accent-cyan);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-family: monospace;
  font-weight: 700;
}

/* ==========================================================================
   7. Distraction-Free WooCommerce Checkout Overrides
   ========================================================================== */
/* Strip standard sidebar background and fields */
.woocommerce-checkout {
  background-color: var(--bg-primary);
}

.woocommerce-checkout form.checkout {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* Checkout fields text colors */
.woocommerce-checkout label {
  color: var(--text-main) !important;
  font-weight: 600;
}

.woocommerce-checkout input.input-text, 
.woocommerce-checkout textarea, 
.woocommerce-checkout select {
  background-color: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  border-radius: 8px !important;
  padding: 12px !important;
  transition: var(--transition-smooth);
}

.woocommerce-checkout input.input-text:focus, 
.woocommerce-checkout textarea:focus {
  border-color: var(--accent-cyan) !important;
  outline: none;
  background-color: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

/* Place order button override */
.woocommerce-checkout #place_order {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%) !important;
  color: var(--bg-primary) !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 8px !important;
  padding: 16px !important;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.woocommerce-checkout #place_order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

/* Hide distracting cart/checkout elements for checkout focus */
.checkout-stripped-header {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  text-align: center;
}

.checkout-stripped-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

/* ==========================================================================
   8. Fluent Forms Stylings (Onboarding Form)
   ========================================================================== */
.fluentform {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  padding: 40px !important;
  color: var(--text-main) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.fluentform .ff-el-form-control {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-main) !important;
  border-radius: 8px !important;
  padding: 12px !important;
}

.fluentform .ff-el-form-control:focus {
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.15) !important;
}

.fluentform label {
  color: var(--text-main) !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
}

.fluentform button.ff-btn-submit {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%) !important;
  color: var(--bg-primary) !important;
  font-weight: 700 !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2) !important;
  transition: var(--transition-smooth) !important;
}

.fluentform button.ff-btn-submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4) !important;
}

/* ==========================================================================
   9. Mobile Responsive Fixes
   ========================================================================== */
@media (max-width: 768px) {
  .hero-heading {
    margin-bottom: 16px;
  }
  
  .glass-card {
    padding: 20px;
  }
  
  .woocommerce-checkout form.checkout, 
  .fluentform {
    padding: 20px !important;
  }
  
  /* Flex direction adjustments */
  .routing-visualization-container {
    flex-direction: column;
    gap: 20px;
  }
}
