/**
 * creator-profile.css
 * クリエイター／ユーザープロフィール共通レイアウト
 * マイページ・他者から見たクリエイターページ（/talent/ID）で共通利用
 */

/* ============================================
   共通コンテナ・ヘッダー
   ============================================ */

.creator-profile-container {
  max-width: 700px !important;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
}

/* アイコン画像とニックネーム */
.creator-profile-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.creator-profile-avatar-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.creator-profile-avatar {
  width: 100px !important;
  height: 100px !important;
  max-width: 100px !important;
  max-height: 100px !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: block;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.creator-profile-nickname {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1f2937;
  text-align: center;
}

/* 区切り線 */
.creator-profile-divider {
  border: none;
  border-bottom: 1px solid #e5e7eb;
  margin: 1.5rem 0;
  padding: 0;
}

/* セクション */
.creator-profile-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

.creator-profile-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.creator-profile-section-title {
  font-size: 1rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1rem;
  text-align: center;
}

/* プロフィールブロック（自己紹介など） */
.creator-profile-profile-block {
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
}

.creator-profile-profile-content {
  color: #4b5563;
  line-height: 1.6;
}

.creator-profile-profile-empty {
  color: #9ca3af;
  font-style: italic;
}

/* ============================================
   リンクエリア（縦並び・リスト風：マイページ用）
   ============================================ */

.creator-profile-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.creator-profile-link {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  text-decoration: none !important;
  color: #1f2937;
  transition: background-color 0.2s;
  position: relative;
  padding-left: 1.5rem;
}

/* ピンク色の●マーカー（リスト風リンク時） */
.creator-profile-link::before {
  content: '●';
  position: absolute;
  left: 0.5rem;
  color: #ec4899;
  font-size: 0.5rem;
  line-height: 1;
}

.creator-profile-link:hover {
  background-color: #f0f9ff;
  text-decoration: none !important;
}

.creator-profile-link span {
  font-size: 0.95rem;
  text-decoration: none !important;
}

/* ============================================
   ボタン風リンク（横並び：クリエイターページ用）
   ============================================ */

.creator-profile-links--buttons {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.creator-profile-links--buttons .creator-profile-link {
  padding: 0.75rem 1.25rem;
  padding-left: 1.25rem;
  background: #ec4899;
  color: #fff !important;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(236, 72, 153, 0.3);
}

.creator-profile-links--buttons .creator-profile-link::before {
  content: none;
}

.creator-profile-links--buttons .creator-profile-link span {
  color: #fff !important;
}

.creator-profile-links--buttons .creator-profile-link:hover {
  background: #db2777;
  text-decoration: none !important;
  color: #fff !important;
}

/* リンク先がない場合（#）の見た目 */
.creator-profile-links--buttons .creator-profile-link[href="#"] {
  background: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.creator-profile-links--buttons .creator-profile-link[href="#"]:hover {
  background: #6b7280;
}

/* ============================================
   レスポンシブ
   ============================================ */

@media (max-width: 768px) {
  .creator-profile-container {
    max-width: 94% !important;
    padding: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .creator-profile-avatar {
    width: 90px !important;
    height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
  }

  .creator-profile-nickname {
    font-size: 1.1rem;
  }

  .creator-profile-link {
    padding: 0.75rem 1rem;
  }

  .creator-profile-link span {
    font-size: 0.9rem;
  }

  .creator-profile-links--buttons {
    flex-direction: column;
  }

  .creator-profile-links--buttons .creator-profile-link {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
