/* =========================================
   Business Upturn - Author Page Specific Styles
   Profile section only - Stories use main.css grid - OPTIMIZED VERSION
========================================= */

/* ===== AUTHOR PAGE CONTAINER ===== */
.author-page {
  padding: var(--space-6) 0;
  font-family: var(--font-family);
}

/* Author-specific breadcrumb */
.author-breadcrumb {
  /* Inherits from main.css .breadcrumb */
}

/* Author header */
.author-header {
  /* Inherits from main.css .page-header */
}

/* ===== AUTHOR PROFILE SECTION ===== */
.author-profile {
  display: flex;
  gap: var(--space-8);
  align-items: flex-start;
  margin-bottom: var(--space-8);
}

.author-avatar {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  overflow: hidden;
  background: var(--background-gray-dark);
  border: 4px solid var(--background-white);
  box-shadow: var(--shadow-base);
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-info {
  flex: 1;
}

.author-right-section {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-5);
  min-width: 200px;
}

.author-name {
  font-size: var(--font-3xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

.author-title {
  font-size: var(--font-base);
  color: var(--brand-primary);
  font-weight: var(--font-semibold);
  margin: 0 0 var(--space-4);
}

.author-bio {
  font-size: var(--font-base);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 var(--space-5);
  max-width: 600px;
}

/* ===== AUTHOR STATS ===== */
.author-stats {
  display: flex;
  gap: var(--space-6);
}

.author-stats .stats-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-stats .stats-content .stats-number {
  font-size: var(--font-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  display: block;
}

.author-stats .stats-content .stats-label {
  font-size: var(--font-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--font-semibold);
}

/* ===== AUTHOR ACTIONS ===== */
.author-actions {
  display: flex;
  gap: var(--space-3);
}

.contact-btn {
  background: var(--background-white);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  padding: var(--space-2) var(--space-5);
  font-weight: var(--font-semibold);
  font-size: var(--font-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.contact-btn:hover {
  background: var(--background-gray);
  border-color: var(--brand-primary);
}

.follow-btn {
  /* Inherits from main.css .btn-primary */
}

.follow-btn.following {
  background: var(--background-gray);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.follow-btn.following:hover {
  background: var(--brand-primary);
  color: var(--background-white);
  border-color: var(--brand-primary);
}

/* ===== AUTHOR SOCIAL LINKS ===== */
.action-social-links {
  display: flex;
  gap: var(--space-3);
  align-items: center;
}

.action-social-links .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--background-gray-dark);
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: var(--font-sm);
}

.action-social-links .social-link:hover {
  transform: translateY(-2px);
}

.action-social-links .social-link.instagram:hover { 
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: var(--background-white);
}

.action-social-links .social-link.twitter:hover { 
  background: #1da1f2; 
  color: var(--background-white);
}

.action-social-links .social-link.facebook:hover { 
  background: #1877f2; 
  color: var(--background-white);
}

.action-social-links .social-link.linkedin:hover { 
  background: #0077b5; 
  color: var(--background-white);
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
  .author-profile {
    flex-direction: column;
    gap: var(--space-5);
    text-align: center;
  }
  
  .author-avatar {
    width: 100px;
    height: 100px;
    align-self: center;
  }
  
  .author-right-section {
    align-items: center;
    min-width: auto;
    width: 100%;
  }
  
  .author-name {
    font-size: var(--font-2xl);
    text-align: center;
  }
  
  .author-title {
    text-align: center;
  }
  
  .author-bio {
    text-align: center;
  }
  
  .author-stats {
    justify-content: center;
    width: 100%;
  }
  
  .author-actions {
    justify-content: center;
    width: 100%;
  }
  
  .action-social-links {
    justify-content: center;
  }
  
  .author-page .latest-stories .stories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .author-stats {
    flex-direction: row;
    gap: var(--space-6);
    justify-content: center;
    width: 100%;
    margin: var(--space-2) 0;
  }
  
  .author-stats .stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 0 0 auto;
  }
  
  .stats-icon {
    margin-bottom: var(--space-1);
  }
  
  .author-stats .stats-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .author-actions {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    width: 100%;
    margin: var(--space-2) 0;
  }
  
  .action-social-links {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
  }
  
  .author-page .latest-stories .stories-grid {
    grid-template-columns: 1fr !important;
  }
}