/* Author Page Styles */
.author-page {
  min-height: 100vh;
  background-color: var(--background);
}

/* Author Profile Section */
.author-profile-section {
  padding: 4rem 0;
  background-color: var(--pet-cream-light);
}

/* Author Navigation */
.author-navigation {
  margin-bottom: 1.5rem;
}

.author-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  border-radius: 0.375rem;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.author-back-button:hover {
  color: var(--primary);
  background-color: var(--pet-cream);
}

.author-back-icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

/* Author Profile Card */
.author-profile-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.author-profile-content {
  padding: 2rem;
}

.author-profile-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 1024px) {
  .author-profile-layout {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }
}

/* Author Image */
.author-image-container {
  flex-shrink: 0;
}

.author-profile-image {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--pet-cream);
}

/* Author Details */
.author-details {
  flex: 1;
}

.author-name {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.author-title {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--pet-gray);
  margin-bottom: 1.5rem;
}

/* Author Credentials */
.author-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
  .author-credentials {
    align-items: flex-start;
  }
}

.author-credential-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .author-credential-item {
    justify-content: flex-start;
  }
}

.author-credential-icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
}

.author-credential-icon.education-icon {
  color: var(--pet-green);
}

.author-credential-icon.experience-icon {
  color: var(--pet-orange);
}

.author-credential-item span {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Author Bio */
.author-bio {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Author Social Links */
.author-social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .author-social-links {
    justify-content: flex-start;
  }
}

.author-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
}

.author-social-link.linkedin {
  background-color: #0077b5;
  color: white;
}

.author-social-link.linkedin:hover {
  background-color: #005885;
}

.author-social-link.instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  color: white;
}

.author-social-link.instagram:hover {
  background: linear-gradient(135deg, #6a2c91 0%, #d11818 50%, #d49339 100%);
}

.author-social-icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

/* Author Content Grid */
.author-content-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .author-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Author Content Card */
.author-content-card {
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Author Content Header */
.author-content-header {
  padding: 1.5rem;
}

.author-content-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--foreground);
}

.author-content-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--pet-orange);
  stroke-width: 2;
}

.author-content-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin: 0;
}

/* Author Content Body */
.author-content-body {
  padding: 0 1.5rem 1.5rem;
  overflow: hidden;
}

/* Author Articles Grid - Flexbox with Scrolling */
.author-articles-grid {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.author-articles-grid::-webkit-scrollbar {
  height: 6px;
}

.author-articles-grid::-webkit-scrollbar-track {
  background: transparent;
}

.author-articles-grid::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 3px;
}

.author-articles-grid::-webkit-scrollbar-thumb:hover {
  background-color: var(--pet-orange);
}

/* Featured Card Container Styles */
.author-articles-grid .featured-card {
  flex: 0 0 350px;
}

/* No Posts State */
.author-no-posts {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted-foreground);
}

.author-no-posts p {
  font-size: 1.125rem;
  margin: 0;
}

/* Author Content Footer */
.author-content-footer {
  margin-top: 1.5rem;
}

.author-view-all-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.author-view-all-button:hover {
  background-color: var(--pet-cream);
  color: var(--pet-orange);
  border-color: var(--pet-orange);
}

/* Responsive Design */
@media (max-width: 640px) {
  .author-profile-section {
    padding: 2rem 0;
  }

  .author-profile-content {
    padding: 1.5rem;
  }

  .author-content-header {
    padding: 1rem;
  }

  .author-content-body {
    padding: 1rem;
  }

  .author-articles-grid {
    gap: 1rem;
  }

  .author-articles-grid .featured-card {
    flex: 0 0 300px;
    height: 400px;
  }

  .author-social-links {
    flex-direction: column;
    align-items: center;
  }

  .author-social-link {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .author-profile-section {
    padding: 3rem 0;
  }

  .author-content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .author-articles-grid .featured-card {
    flex: 0 0 320px;
    height: 420px;
  }
}

/* Print Styles */
@media print {
  .author-back-button,
  .author-social-links,
  .author-view-all-button {
    display: none;
  }

  .author-profile-card,
  .author-content-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .author-profile-section {
    background-color: transparent;
  }
}
