/* ============================================
   BLUE COLLAR BESTIE — LIGHT THEME
   Professional Blue-Collar | Dr. Alex Maverick
   ============================================ */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f0f4f8;
  --text-primary: #0a1628;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --accent-blue: #1e88e5;
  --accent-blue-dark: #1565c0;
  --accent-blue-light: #e3f2fd;
  --accent-orange: #ff6b35;
  --accent-orange-dark: #e55a2b;
  --accent-orange-light: #fff3e0;
  --border: #e2e8f0;
  --border-light: #edf2f7;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.03);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-blue-dark); text-decoration: underline; }

/* Navigation */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  display: flex; align-items: center;
}

.nav-inner {
  max-width: var(--max-width); width: 100%; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-size: 1.35rem; font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo:hover { text-decoration: none; }
.nav-logo .logo-icon {
  width: 32px; height: 32px;
  background: var(--accent-blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
}
.nav-logo span { color: var(--accent-blue); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
  transition: color 0.2s; position: relative;
}
.nav-links a:hover { color: var(--accent-blue); text-decoration: none; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent-blue);
  transform: scaleX(0); transition: transform 0.2s;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  background: var(--accent-orange); color: #fff !important;
  padding: 8px 20px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.85rem;
  transition: all 0.2s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent-orange-dark); transform: translateY(-1px); text-decoration: none !important; }

.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-mobile-toggle span {
  display: block; width: 24px; height: 2.5px;
  background: var(--text-primary); margin: 5px 0;
  transition: 0.3s; border-radius: 2px;
}

/* Hero Section */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 40%, #e3f2fd 100%);
}

.hero-canvas {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}

.hero-content {
  position: relative; z-index: 2;
  max-width: var(--max-width); width: 100%;
  padding: calc(var(--nav-height) + 60px) 24px 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-blue-light); color: var(--accent-blue-dark);
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.1;
  color: var(--text-primary); letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.hero h1 .highlight { color: var(--accent-blue); }
.hero h1 .highlight-orange { color: var(--accent-orange); }

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary); max-width: 680px;
  margin: 0 auto 36px; line-height: 1.7;
}

.hero-cta {
  display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; font-family: inherit;
  border: none; cursor: pointer; transition: all 0.25s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent-orange); color: #fff;
  box-shadow: 0 4px 14px rgba(255,107,53,0.3);
}
.btn-primary:hover { background: var(--accent-orange-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,107,53,0.4); }

.btn-secondary {
  background: #fff; color: var(--text-primary);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent-blue); color: var(--accent-blue); transform: translateY(-2px); }

.btn-blue {
  background: var(--accent-blue); color: #fff;
  box-shadow: 0 4px 14px rgba(30,136,229,0.3);
}
.btn-blue:hover { background: var(--accent-blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,136,229,0.4); }

/* Glass-morphism Cards */
.glass {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

/* Sections */
.section {
  padding: 80px 24px; max-width: var(--max-width); margin: 0 auto;
}

.section-alt { background: var(--bg-secondary); }
.section-alt .section { padding: 80px 24px; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
  color: var(--text-primary); letter-spacing: -0.5px; margin-bottom: 12px;
}
.section-header p {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto;
}

/* Stats Bar */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 48px; padding: 0 24px;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2rem; font-weight: 900; color: var(--accent-blue);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.85rem; color: var(--text-muted); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.3px;
}

/* Tool Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.tool-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226,232,240,0.6);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all 0.3s; cursor: pointer;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-orange));
  opacity: 0; transition: opacity 0.3s;
}
.tool-card:hover::before { opacity: 1; }
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--accent-blue);
}

.tool-card .tool-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: var(--accent-blue-light); color: var(--accent-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
  transition: all 0.3s;
}
.tool-card:hover .tool-icon {
  background: var(--accent-blue); color: #fff;
}

.tool-card h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 8px;
}
.tool-card p {
  font-size: 0.9rem; color: var(--text-secondary);
  flex-grow: 1; margin-bottom: 16px; line-height: 1.6;
}
.tool-card .tool-link {
  font-size: 0.9rem; font-weight: 600; color: var(--accent-blue);
  display: flex; align-items: center; gap: 6px;
  transition: gap 0.2s;
}
.tool-card:hover .tool-link { gap: 10px; }

/* How It Works */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}

.step {
  text-align: center; padding: 32px 24px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: transform 0.3s;
}
.step:hover { transform: translateY(-4px); }

.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), #42a5f5);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800; margin: 0 auto 20px;
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }

/* Testimonials */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.testimonial-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 28px;
  transition: transform 0.3s;
}
.testimonial-card:hover { transform: translateY(-4px); }

.testimonial-card .stars {
  color: var(--accent-orange); font-size: 1rem; margin-bottom: 12px;
  letter-spacing: 2px;
}
.testimonial-card .quote {
  font-size: 1rem; font-style: italic; color: var(--text-primary);
  margin-bottom: 20px; line-height: 1.7;
}
.testimonial-card .author {
  font-size: 0.9rem; font-weight: 600; color: var(--text-primary);
}
.testimonial-card .role {
  font-size: 0.8rem; color: var(--text-muted);
}

/* Features Grid */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

.feature-card {
  text-align: center; padding: 32px 20px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-4px); }

.feature-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-blue-light); color: var(--accent-blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 16px;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--accent-blue), #1565c0);
  color: #fff; text-align: center;
  padding: 64px 24px; border-radius: var(--radius-lg);
  max-width: var(--max-width); margin: 0 auto;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 1.1rem; opacity: 0.9; margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.cta-banner .btn-primary {
  background: #fff; color: var(--accent-blue-dark); box-shadow: none;
}
.cta-banner .btn-primary:hover { background: var(--accent-orange); color: #fff; transform: translateY(-2px); }

/* Footer */
.footer {
  background: var(--text-primary); color: #a0aec0;
  padding: 60px 24px 24px;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand {
  font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 12px;
}
.footer-brand span { color: var(--accent-blue); }
.footer-desc { font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px; }
.footer h4 { font-size: 0.85rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.footer a { color: #a0aec0; font-size: 0.9rem; display: block; margin-bottom: 10px; transition: color 0.2s; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: var(--max-width); margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid #2d3748;
  text-align: center; font-size: 0.8rem; color: #718096;
}

/* Tool Pages */
.tool-page {
  padding-top: calc(var(--nav-height) + 60px);
  max-width: var(--max-width); margin: 0 auto;
  padding-left: 24px; padding-right: 24px; padding-bottom: 80px;
}

.tool-page-header { text-align: center; margin-bottom: 48px; }
.tool-page-header .breadcrumb {
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px;
}
.tool-page-header .breadcrumb a { color: var(--accent-blue); }
.tool-page-header .breadcrumb span { margin: 0 6px; }
.tool-page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
  letter-spacing: -0.5px; margin-bottom: 12px;
}
.tool-page-header p {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto;
}

.tool-form {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 36px;
  max-width: 720px; margin: 0 auto 40px;
}

.form-group { margin-bottom: 24px; }
.form-group label {
  display: block; font-size: 0.9rem; font-weight: 600;
  color: var(--text-primary); margin-bottom: 8px;
}
.form-group .label-hint {
  font-size: 0.8rem; color: var(--text-muted); font-weight: 400;
  margin-left: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 1rem; font-family: inherit;
  background: var(--bg-primary); color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(30,136,229,0.12);
}
.form-group textarea { min-height: 100px; resize: vertical; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.btn-generate {
  width: 100%; padding: 16px;
  background: var(--accent-blue); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 1.05rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all 0.2s;
}
.btn-generate:hover { background: var(--accent-blue-dark); transform: translateY(-1px); }
.btn-generate:active { transform: translateY(0); }

.output-box {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-blue);
  border-radius: var(--radius-lg); padding: 28px;
  max-width: 720px; margin: 0 auto;
  display: none;
}
.output-box.active { display: block; }
.output-box h3 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 16px;
  color: var(--accent-blue);
}
.output-box pre {
  background: var(--bg-secondary); padding: 20px;
  border-radius: var(--radius); font-size: 0.85rem;
  line-height: 1.6; white-space: pre-wrap; word-wrap: break-word;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  color: var(--text-primary); max-height: 500px; overflow-y: auto;
  border: 1px solid var(--border-light);
}

.output-actions {
  display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap;
}

.btn-action {
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; border: none; font-family: inherit;
  transition: all 0.2s;
}
.btn-copy { background: var(--bg-tertiary); color: var(--text-primary); }
.btn-copy:hover { background: var(--border); }
.btn-download { background: var(--accent-blue); color: #fff; }
.btn-download:hover { background: var(--accent-blue-dark); }
.btn-print { background: var(--accent-orange); color: #fff; }
.btn-print:hover { background: var(--accent-orange-dark); }

/* Tooltip */
.tooltip-bubble {
  position: fixed; bottom: 30px; right: 30px;
  background: var(--accent-blue); color: #fff;
  padding: 12px 20px; border-radius: 40px;
  font-size: 0.9rem; cursor: pointer;
  box-shadow: 0 4px 20px rgba(30,136,229,0.3);
  opacity: 0; transform: translateY(20px);
  transition: all 0.5s; z-index: 999;
  display: flex; align-items: center; gap: 8px;
}
.tooltip-bubble.show { opacity: 1; transform: translateY(0); }
.tooltip-bubble:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(30,136,229,0.4); }

/* Tools Page (listing) */
.tools-hero {
  padding-top: calc(var(--nav-height) + 60px);
  text-align: center; padding-bottom: 60px;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
}
.tools-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900;
  letter-spacing: -1px; margin-bottom: 12px;
}
.tools-hero p {
  font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto;
}

.tools-section {
  padding: 60px 24px 80px;
  max-width: var(--max-width); margin: 0 auto;
}

/* Category Filter */
.category-filter {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px; border-radius: 20px;
  border: 1.5px solid var(--border); background: var(--bg-primary);
  font-size: 0.85rem; font-weight: 500; cursor: pointer; font-family: inherit;
  transition: all 0.2s; color: var(--text-secondary);
}
.filter-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }
.filter-btn.active { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }

/* Loading spinner */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === DARK THEME OVERRIDES (not used — light only) === */

/* Responsive */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .tools-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .section { padding: 60px 16px; }
  .hero-content { padding: calc(var(--nav-height) + 40px) 16px 60px; }
  .tool-page { padding-left: 16px; padding-right: 16px; }
  .tool-form { padding: 24px; }
  .tools-section { padding: 40px 16px 60px; }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-num { font-size: 1.5rem; }
}
