/* Creator Profile Page Styles */

.creator-profile-main {
  max-width: 1200px;
  margin: 0 auto;
}

/* Profile Header */
.profile-header {
  position: relative;
  margin-bottom: 2rem;
}

.profile-cover {
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.profile-info {
  display: flex;
  gap: 2rem;
  padding: 0 2rem;
  margin-top: -60px;
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 5px solid white;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.profile-details {
  padding-top: 70px;
}

.profile-details h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.profile-bio {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.profile-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.profile-stats strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Profile Actions */
.profile-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.follow-btn {
  padding: 0.5rem 1.5rem;
}

.follow-btn.following {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

/* Fan Site Button */
.btn-fansite {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #ec4899, #f472b6);
  color: white;
  border: none;
  border-radius: var(--radius-md, 8px);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-fansite:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-fansite svg {
  flex-shrink: 0;
}

/* External Links */
.profile-external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.external-link-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.875rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.external-link-tag:hover {
  background: #e2e8f0;
  color: #1e293b;
}

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

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #64748b;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.social-link:hover {
  background: #f1f5f9;
  color: #1e293b;
}

/* Profile Links Container */
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.profile-links .social-link {
  width: auto;
  height: auto;
  padding: 0.375rem 0.875rem;
  background: #f1f5f9;
  border-radius: 9999px;
  font-size: 0.875rem;
  text-decoration: none;
}

.profile-links .social-link:hover {
  background: #e2e8f0;
}

/* Fansite Link - SEO重要リンク */
.profile-links .fansite-link {
  background: linear-gradient(135deg, #ec4899, #f472b6);
  color: white;
  font-weight: 500;
}

.profile-links .fansite-link:hover {
  background: linear-gradient(135deg, #db2777, #ec4899);
  color: white;
  opacity: 0.95;
}

/* Creator Works */
.creator-works {
  padding: 0 2rem 3rem;
}

.works-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.works-header h2 {
  font-size: 1.25rem;
}

.sort-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: white;
  font-size: 0.875rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    margin-top: -70px;
  }

  .profile-avatar {
    width: 120px;
    height: 120px;
  }

  .profile-details {
    padding-top: 0;
  }

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

  .creator-works {
    padding: 0 1rem 2rem;
  }

  .works-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}
