/* f:\kwcalc.com\css\components.css */

:root {
  /* Clean, Minimal Palette */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  
  /* Simple Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  
  /* Clean Borders */
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 9999px;
  --transition: all 0.2s ease;
  --max-width: 1200px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* HEADER - Clean Solid Background */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}

.logo svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-icon {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  position: relative;
  transition: var(--transition);
}

.mobile-icon::before,
.mobile-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--text-main);
  left: 0;
  transition: var(--transition);
}

.mobile-icon::before { top: -6px; }
.mobile-icon::after { bottom: -6px; }

#mobile-toggle {
  display: none;
}

/* FOOTER - 3 Column Simple Layout */
.site-footer {
  background-color: #f3f4f6;
  color: var(--text-main);
  padding: 4rem 1.5rem 2rem;
  margin-top: 5rem;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 400px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* AUTHOR CARD - MODERN TWO-COLUMN */
.author-card-modern {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  border-top: 4px solid #2563eb;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  display: flex;
  gap: 2rem;
  padding: 2rem;
  max-width: 900px;
  margin: 3rem auto;
}

.author-left {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.author-img-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 0.5rem;
}

.author-profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f3f4f6;
}

.status-dot {
  position: absolute;
  bottom: 8px;
  right: 12px;
  width: 24px;
  height: 24px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.status-dot::after {
  content: '';
  width: 16px;
  height: 16px;
  background-color: #10b981;
  border-radius: 50%;
}

.author-stat-card {
  width: 100%;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-stat-card .stat-icon {
  width: 20px;
  height: 20px;
  color: #3b82f6;
  flex-shrink: 0;
}

.author-stat-card span {
  font-size: 0.85rem;
  color: #1e293b;
  line-height: 1.4;
}

.author-right {
  flex: 1;
}

.author-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.author-name {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
}

.verified-badge {
  background-color: #22c55e;
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.verified-badge svg {
  width: 14px;
  height: 14px;
  fill: #facc15;
}

.author-role {
  color: #2563eb;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.author-role svg {
  width: 16px;
  height: 16px;
  fill: #f59e0b;
}

.author-bio {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.section-title svg {
  width: 18px;
  height: 18px;
  color: #3b82f6;
}

.expertise-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.exp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}

.exp-blue { background-color: #2563eb; }
.exp-purple { background-color: #8b5cf6; }
.exp-yellow { background-color: #f59e0b; }

.connect-section {
  margin-top: 1rem;
}

.social-squares {
  display: flex;
  gap: 0.75rem;
}

.social-sq {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: opacity 0.2s;
}

.social-sq:hover {
  opacity: 0.85;
}

.social-sq svg { width: 18px; height: 18px; fill: currentColor; }

.sq-linkedin { background-color: #0077b5; }
.sq-facebook { background-color: #1877f2; }
.sq-github { background-color: #24292e; }
.sq-quora { background-color: #0067a5; } 
.sq-medium { background-color: #0071ad; } 
.sq-email { background-color: #10b981; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border-bottom: none;
  }
  
  .nav-menu a {
    width: 100%;
    padding: 0.5rem 0;
  }
  
  #mobile-toggle:checked ~ .nav-menu {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    max-height: 400px;
  }
  
  #mobile-toggle:checked ~ .mobile-menu-btn .mobile-icon {
    background-color: transparent;
  }
  
  #mobile-toggle:checked ~ .mobile-menu-btn .mobile-icon::before {
    transform: rotate(45deg);
    top: 0;
  }
  
  #mobile-toggle:checked ~ .mobile-menu-btn .mobile-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .author-card-modern {
    flex-direction: column;
    padding: 1.25rem;
    gap: 1.5rem;
  }
  
  .author-left {
    flex: none;
    width: 100%;
    align-items: center;
  }
  
  .author-header-row {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .social-squares {
    flex-wrap: wrap;
  }
}
