/* ==========================================================================
   VICTORY FLUENT FORUM TOOLHUB - WORLD-CLASS SAAS DESIGN SYSTEM (v3.0)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --th-primary: #2563eb;
  --th-primary-hover: #1d4ed8;
  --th-accent: #f59e0b;
  --th-accent-hover: #d97706;
  --th-bg: #f8fafc;
  --th-card-bg: #ffffff;
  --th-text-main: #0f172a;
  --th-text-muted: #64748b;
  --th-border: #e2e8f0;
  
  --th-gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --th-primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --th-card-gradient: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  
  --th-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --th-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --th-radius-sm: 8px;
  --th-radius-md: 16px;
  --th-radius-lg: 24px;
  --th-radius-full: 9999px;
  
  --th-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --th-shadow-md: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
  --th-shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.12);
  --th-shadow-glow: 0 0 35px rgba(37, 99, 235, 0.18);
  
  --th-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  --th-bg: #0b0f19;
  --th-card-bg: rgba(22, 30, 49, 0.85);
  --th-text-main: #f8fafc;
  --th-text-muted: #94a3b8;
  --th-border: rgba(255, 255, 255, 0.12);
  --th-shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Single Clean Sticky Navbar */
.toolhub-single-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid var(--th-border);
  transition: var(--th-transition);
}

[data-theme="dark"] .toolhub-single-nav {
  background: rgba(11, 15, 25, 0.85);
}

/* Layout Containers */
.toolhub-body {
  font-family: var(--th-font-body);
  background-color: var(--th-bg);
  color: var(--th-text-main);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.toolhub-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Split Hero Section */
.hero-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 0 60px;
}

.hero-left {
  text-align: left;
}

.hero-right-card {
  background: var(--th-card-bg);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  padding: 32px;
  box-shadow: var(--th-shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-right-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(37,99,235,0.2) 0%, transparent 70%);
}

/* Featured Tool Hero Section */
.featured-tool-banner {
  background: linear-gradient(135deg, rgba(37,99,235,0.06) 0%, rgba(245,158,11,0.06) 100%);
  border: 1px solid var(--th-primary);
  border-radius: var(--th-radius-lg);
  padding: 40px;
  margin: 40px 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  box-shadow: var(--th-shadow-md);
}

.featured-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--th-radius-full);
  background: var(--th-accent);
  color: #000;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

/* How It Works Timeline */
.timeline-section {
  padding: 60px 0;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.timeline-card {
  background: var(--th-card-bg);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-md);
  padding: 24px;
  text-align: center;
  position: relative;
}

.timeline-step-num {
  width: 40px;
  height: 40px;
  border-radius: var(--th-radius-full);
  background: var(--th-primary-gradient);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* Premium Dashboard App Layout for Calculator */
.app-dashboard-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  margin-top: 30px;
}

.app-card {
  background: var(--th-card-bg);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-lg);
  padding: 32px;
  box-shadow: var(--th-shadow-md);
  margin-bottom: 30px;
}

/* Modern Animated Tables */
.saas-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--th-card-bg);
  border-radius: var(--th-radius-md);
  overflow: hidden;
  border: 1px solid var(--th-border);
}

.saas-table th {
  background: rgba(15, 23, 42, 0.04);
  padding: 16px;
  font-family: var(--th-font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--th-text-muted);
  border-bottom: 1px solid var(--th-border);
  text-align: left;
}

[data-theme="dark"] .saas-table th {
  background: rgba(255, 255, 255, 0.05);
}

.saas-table td {
  padding: 16px;
  border-bottom: 1px solid var(--th-border);
  font-size: 0.95rem;
}

.saas-table tr:last-child td {
  border-bottom: none;
}

.saas-table tr:hover td {
  background: rgba(37, 99, 235, 0.04);
}

/* Accordion FAQ */
.saas-accordion-item {
  background: var(--th-card-bg);
  border: 1px solid var(--th-border);
  border-radius: var(--th-radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--th-shadow-sm);
  transition: var(--th-transition);
}

.saas-accordion-header {
  padding: 20px 24px;
  font-family: var(--th-font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--th-text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.saas-accordion-body {
  padding: 0 24px 20px;
  color: var(--th-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.saas-accordion-item.active .saas-accordion-body {
  display: block;
}

.saas-accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Responsive Grid Adjustments */
@media (max-width: 992px) {
  .hero-split-grid, .app-dashboard-container {
    grid-template-columns: 1fr;
  }
}
