/* kW Calc Author Page Stylesheet */

/* --- Custom Variables & Theme Overrides --- */
:root {
  --author-hero-bg: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
  --success-color: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --timeline-line: #cbd5e1;
  --timeline-dot-bg: #2563eb;
  
  /* Brand Social Colors */
  --c-linkedin: #0077b5;
  --c-linkedin-hover: #005f91;
  --c-facebook: #1877f2;
  --c-facebook-hover: #145dbf;
  --c-quora: #b92b27;
  --c-quora-hover: #93201d;
  --c-medium: #000000;
  --c-medium-hover: #262626;
  --c-reddit: #ff4500;
  --c-reddit-hover: #cc3700;
}

/* --- Layout Wrapper --- */
.author-wrapper {
  background-color: var(--bg-light);
  min-height: 100vh;
  padding-bottom: 5rem;
}

.author-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Hero Section --- */
.author-hero {
  background: var(--author-hero-bg);
  color: #ffffff;
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
}

.author-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 16H0v-2h14v-4h2v4h4v2h-4v4h-2v-4zm0 44H0v-2h14v-4h2v4h4v2h-4v4h-2v-4zM64 16H50v-2h14v-4h2v4h4v2h-4v4h-2v-4zm0 44H50v-2h14v-4h2v4h4v2h-4v4h-2v-4z' fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  pointer-events: none;
}

.author-hero-content {
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.author-image-container {
  position: relative;
  flex-shrink: 0;
}

.author-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(37, 99, 235, 0.3);
  transition: transform 0.3s ease;
}

.author-image-container:hover .author-image {
  transform: scale(1.03);
}

.verification-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: var(--success-color);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  border: 2px solid #ffffff;
}

.verification-badge i {
  font-size: 0.85rem;
}

.author-info h1 {
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  line-height: 1.15;
}

.author-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 1rem;
}

.author-subtitle {
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 1.75rem;
}

/* Social Links styling */
.social-links-author {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-link i {
  font-size: 1rem;
}

.social-link.linkedin { background-color: var(--c-linkedin); }
.social-link.linkedin:hover { background-color: var(--c-linkedin-hover); transform: translateY(-2px); }

.social-link.facebook { background-color: var(--c-facebook); }
.social-link.facebook:hover { background-color: var(--c-facebook-hover); transform: translateY(-2px); }

.social-link.quora { background-color: var(--c-quora); }
.social-link.quora:hover { background-color: var(--c-quora-hover); transform: translateY(-2px); }

.social-link.medium { background-color: var(--c-medium); border: 1px solid rgba(255, 255, 255, 0.2); }
.social-link.medium:hover { background-color: var(--c-medium-hover); transform: translateY(-2px); }

.social-link.reddit { background-color: var(--c-reddit); }
.social-link.reddit:hover { background-color: var(--c-reddit-hover); transform: translateY(-2px); }

/* --- Grid System --- */
.author-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}

/* --- Panel Cards --- */
.author-panel {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.author-panel:last-child {
  margin-bottom: 0;
}

.author-panel h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.author-panel h3 i {
  color: var(--primary);
  font-size: 1.15rem;
}

.author-description {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* --- Core Expertise Highlights --- */
.expertise-highlights {
  margin-top: 1.5rem;
}

.expertise-highlights h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.expertise-highlights h4 i {
  color: #f59e0b;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.expertise-item {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.expertise-item:hover {
  border-color: var(--primary);
  background-color: rgba(37, 99, 235, 0.03);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.expertise-item i {
  font-size: 1.25rem;
  color: var(--primary);
  background-color: #eff6ff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.expertise-item span {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-main);
}

/* --- Professional Stats Grid --- */
.stats-grid-author {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-item {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 0.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-white);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.775rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* --- Timeline Section --- */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--timeline-line);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3px solid var(--timeline-dot-bg);
  z-index: 2;
  transition: all 0.2s ease;
}

.timeline-item:hover .timeline-marker {
  background-color: var(--timeline-dot-bg);
  transform: scale(1.2);
}

.timeline-content {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: all 0.2s ease;
}

.timeline-item:hover .timeline-content {
  background-color: var(--bg-white);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.timeline-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.timeline-date {
  display: inline-block;
  font-size: 0.775rem;
  font-weight: 600;
  background-color: #eff6ff;
  color: var(--primary);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.timeline-content p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* --- Skills Lists --- */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill-category h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.35rem;
}

.skill-category ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-category li {
  font-size: 0.925rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
}

/* --- Certifications list --- */
.certifications-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cert-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.5rem 0;
}

.cert-item i {
  font-size: 1.35rem;
  color: #eab308;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.cert-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.cert-item span {
  font-size: 0.825rem;
  color: var(--text-muted);
  display: block;
}

/* --- Get in Touch CTA Panel --- */
.contact-section {
  text-align: center;
}

.contact-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.contact-btn.secondary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.contact-btn.secondary:hover {
  background-color: rgba(37, 99, 235, 0.04);
  transform: translateY(-1px);
}

.contact-btn:not(.secondary) {
  background-color: var(--primary);
  color: #ffffff;
}

.contact-btn:not(.secondary):hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

/* --- Key Projects Portfolio --- */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.project-card:hover {
  background-color: var(--bg-white);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.project-card-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.project-date {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--primary);
  background-color: #eff6ff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  background-color: #f1f5f9;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

/* --- Editorial & Verification Standards --- */
.editorial-standards {
  margin-top: 0.5rem;
}

.standards-intro {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.verification-stepper {
  position: relative;
  padding-left: 3.5rem;
  margin-top: 1.5rem;
}

.verification-stepper::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--timeline-line);
}

.stepper-item {
  position: relative;
  margin-bottom: 2.25rem;
}

.stepper-item:last-child {
  margin-bottom: 0;
}

.stepper-badge {
  position: absolute;
  left: -3.5rem;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.stepper-item:hover .stepper-badge {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transform: scale(1.1);
}

.stepper-content {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.stepper-item:hover .stepper-content {
  background-color: var(--bg-white);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stepper-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.stepper-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Professional Affiliations --- */
.affiliations-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.affiliation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  transition: all 0.2s ease;
}

.affiliation-item:hover {
  border-color: var(--primary);
  background-color: var(--bg-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.affiliation-item i {
  font-size: 1.1rem;
  color: var(--primary);
  background-color: #eff6ff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.affiliation-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

/* --- Inline Text Links --- */
.author-wrapper a:not(.social-link):not(.contact-btn) {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
}

.author-wrapper a:not(.social-link):not(.contact-btn):hover {
  color: var(--primary-hover);
  border-bottom-color: var(--primary-hover);
  background-color: rgba(37, 99, 235, 0.04);
  border-radius: 2px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 960px) {
  .author-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .author-hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .author-info h1 {
    font-size: 2.25rem;
  }
  
  .social-links-author {
    justify-content: center;
  }
  
  .stats-grid-author {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  
  .author-panel {
    padding: 1.75rem;
  }

  .verification-stepper {
    padding-left: 2.5rem;
  }

  .verification-stepper::before {
    left: 11px;
  }

  .stepper-badge {
    left: -2.5rem;
    width: 26px;
    height: 26px;
    font-size: 0.85rem;
  }
}
