/* =====================================================
   AUTHOR PAGE - IKAS STYLE
   Modern, minimal ve temiz tasarım
   ===================================================== */

:root {
  --author-bg: #ffffff;
  --author-text: #1a1a1a;
  --author-text-light: #64748b;
  --author-border: #e2e8f0;
  --author-tag-bg: #f1f5f9;
  --author-tag-text: #334155;
}

/* =====================================================
   BASE
   ===================================================== */

.author-page {
  background: var(--author-bg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--author-text);
  padding: 80px 0;
  min-height: 100vh;
}

.author-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================================================
   HERO PROFILE SECTION
   ===================================================== */

.author-hero {
  margin-bottom: 60px;
}

.hero-profile {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

/* Avatar */
.profile-avatar {
  flex-shrink: 0;
}

.avatar-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #f1f5f9;
}

.avatar-fallback {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: #94a3b8;
}

/* Profile Info */
.profile-info {
  flex: 1;
}

.profile-name-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.profile-name {
  font-size: 36px;
  font-weight: 700;
  color: var(--author-text);
  margin: 0;
  line-height: 1.2;
}

.profile-title-inline {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  margin-top: 4px;
}

.profile-title {
  font-size: 16px;
  color: var(--author-text-light);
  margin: 0 0 16px 0;
}

.profile-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  text-decoration: none;
  transition: all 0.2s;
}

.social-icon:hover {
  background: #e2e8f0;
  color: #334155;
}

.social-icon i {
  font-size: 18px;
}

/* Bio Text */
.profile-bio {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--author-border);
}

.profile-bio p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--author-text-light);
  margin: 0;
}

/* =====================================================
   INFO SECTIONS (Uzmanlık & Eğitim)
   ===================================================== */

.info-sections {
  margin-bottom: 60px;
}

.info-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--author-border);
}

.info-section:last-child {
  border-bottom: none;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--author-text);
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  font-size: 16px;
  color: var(--author-text-light);
}

/* Expertise Tags */
.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.expertise-tag {
  padding: 8px 16px;
  background: var(--author-tag-bg);
  color: var(--author-tag-text);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}

.expertise-tag:hover {
  background: #e2e8f0;
}

/* Education Info */
.education-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.education-degree {
  font-size: 15px;
  font-weight: 600;
  color: var(--author-text);
  margin: 0;
}

.education-school {
  font-size: 14px;
  color: var(--author-text-light);
  margin: 0;
}

/* =====================================================
   BLOG POSTS SECTION
   ===================================================== */

.author-posts-section {
  margin-top: 60px;
}

.posts-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
}

.posts-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--author-text);
  margin: 0 0 8px 0;
}

.posts-header p {
  font-size: 14px;
  color: var(--author-text-light);
  margin: 0;
}

.posts-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border: 1px solid var(--author-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--author-text);
  text-decoration: none;
  background: var(--author-bg);
  transition: all 0.2s;
  white-space: nowrap;
}

.posts-link:hover {
  background: #f9fafb;
  border-color: var(--author-text);
  transform: translateY(-1px);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.post-card {
  background: var(--author-bg);
  border: 1px solid var(--author-border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}

.post-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-placeholder i {
  font-size: 48px;
  color: #cbd5e1;
}

.post-content {
  padding: 24px;
}

.post-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--author-text);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.post-excerpt {
  font-size: 14px;
  color: var(--author-text-light);
  line-height: 1.6;
  margin: 0 0 16px 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--author-text-light);
}

.post-meta i {
  margin-right: 4px;
}

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

@media (max-width: 768px) {
  .author-page {
    padding: 40px 0;
  }

  .hero-profile {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .profile-name {
    font-size: 28px;
  }

  .profile-social {
    justify-content: center;
  }

  .section-title {
    font-size: 16px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .info-sections {
    margin-bottom: 40px;
  }
}
