/* assets/css/fc-dashboard.css */
/* ファンクラブトップページのスタイル */

.fc-dashboard-page {
  max-width: 700px !important;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
}

/* ①ファンクラブヘッダー画像 */
.fc-dashboard-header-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

/* ②ファンクラブ名 */
.fc-dashboard-header {
  margin-bottom: 1.5rem;
  margin-left: calc(-1rem - 2rem) !important;
  margin-right: -1rem !important;
  padding-left: calc(1rem + 2rem) !important;
  padding-right: 1rem !important;
  text-align: left !important;
  width: calc(100% + 2rem + 1rem);
}

.fc-dashboard-fc-name-wrapper {
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 1rem;
  width: 100%;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  position: relative;
}

.fc-dashboard-fc-icon {
  width: 80px !important;
  height: 80px !important;
  aspect-ratio: 1 / 1;
  max-width: 80px !important;
  max-height: 80px !important;
  min-width: 80px !important;
  min-height: 80px !important;
  border-radius: 50% !important;
  object-fit: cover;
  flex: 0 0 80px;
  flex-shrink: 0;
  display: block !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  vertical-align: middle;
  border: 0;
}

/* .talent-post-content imgなどのスタイルを上書き */
.fc-dashboard-header .fc-dashboard-fc-icon,
.fc-dashboard-fc-name-wrapper .fc-dashboard-fc-icon {
  margin: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.fc-dashboard-fc-name {
  font-size: 1.5rem !important;
  font-weight: bold;
  color: #1f2937;
  margin: 0;
}

/* ③ファンクラブ紹介文ブロック */
.fc-dashboard-description-block {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 8px;
}

.fc-dashboard-description-content {
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* ファンクラブ外部リンクボタン群 */
.fc-dashboard-external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.fc-dashboard-external-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
  color: #111827;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.fc-dashboard-external-link:hover {
  background-color: #f3f4f6;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
  text-decoration: none !important;
  transform: translateY(-1px);
}

.fc-dashboard-external-link-name {
  white-space: nowrap;
}

/* ④【ボタン風リンク】ファンクラブ基本情報編集 */
.fc-dashboard-edit-link-container {
  margin-bottom: 2rem;
  text-align: center;
}

.fc-dashboard-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #ec4899;
  color: white;
  font-weight: bold;
  text-decoration: none !important;
  border-radius: 9999px;
  transition: background-color 0.2s;
}

.fc-dashboard-edit-link:hover {
  background-color: #db2777;
  text-decoration: none !important;
}

/* ⑤ファンクラブプランブロック */
.fc-dashboard-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

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

.fc-dashboard-plans-block {
  margin-top: 1rem;
}

.fc-dashboard-plans-header {
  margin-bottom: 1rem;
}

.fc-dashboard-plan-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background-color: #ec4899;
  color: white;
  font-weight: bold;
  text-decoration: none !important;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s;
}

.fc-dashboard-plan-add-btn:hover {
  background-color: #db2777;
  text-decoration: none !important;
}

.fc-dashboard-plans-scroll {
  max-height: 600px; /* 3件ほど見える高さ */
  overflow-y: auto;
  padding-right: 0.5rem;
}

.fc-dashboard-plan-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
}

.fc-dashboard-plan-thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.fc-dashboard-plan-thumbnail-placeholder {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 8px;
  color: #9ca3af;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.fc-dashboard-plan-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fc-dashboard-plan-title {
  font-size: 1rem;
  font-weight: bold;
  color: #1f2937;
  margin: 0;
}

.fc-dashboard-plan-details {
  font-size: 0.9rem;
  color: #6b7280;
}

.fc-dashboard-plan-description {
  font-size: 0.85rem;
  color: #4b5563;
  line-height: 1.5;
  margin-top: 0.25rem;
}

.fc-dashboard-plan-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.8rem;
  background-color: #f3f4f6;
  color: #6b7280;
  text-decoration: none !important;
  border-radius: 6px;
  font-size: 0.85rem;
  align-self: flex-start;
  margin-top: 0.5rem;
  transition: background-color 0.2s;
}

.fc-dashboard-plan-edit-btn:hover {
  background-color: #e5e7eb;
  text-decoration: none !important;
}

.fc-dashboard-plan-edit-btn i {
  color: #ec4899;
}

/* ⑥投稿一覧表示ブロック */
.fc-dashboard-posts-block {
  margin-top: 1rem;
}

.fc-dashboard-posts-filter {
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
}

.fc-dashboard-posts-filter-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
}

.fc-dashboard-posts-filter-form label {
  font-weight: bold;
  color: #374151;
  flex-shrink: 0;
}

.fc-dashboard-posts-filter-form select {
  padding: 0.5rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  max-width: 5.5em;
  box-sizing: border-box;
}

.fc-dashboard-posts-filter-form #fc-public-year {
  max-width: 5em;
}

.fc-dashboard-posts-filter-form #fc-public-month {
  max-width: 4em;
}

.fc-dashboard-posts-filter-form button[type="submit"] {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
}

.fc-dashboard-posts-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.fc-dashboard-posts-list-link {
  color: #3b82f6;
  text-decoration: underline;
  font-size: 0.9rem;
}

.fc-dashboard-posts-list-link:hover {
  color: #2563eb;
}

.fc-dashboard-posts-list-link-wrap {
  text-align: center;
  margin-top: 1.5rem;
  padding: 0.5rem 0;
}

.fc-dashboard-posts-list-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background-color: #3b82f6;
  color: white !important;
  font-weight: bold;
  text-decoration: none !important;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s;
}

.fc-dashboard-posts-list-btn:hover {
  background-color: #2563eb;
  color: white !important;
  text-decoration: none !important;
}

.fc-dashboard-post-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background-color: #3b82f6;
  color: white;
  font-weight: bold;
  text-decoration: none !important;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s;
}

.fc-dashboard-post-add-btn:hover {
  background-color: #2563eb;
  text-decoration: none !important;
}

.fc-dashboard-posts-scroll {
  max-height: 600px; /* 6件2カラムでスクロール可能な高さ */
  overflow-y: auto;
  padding-right: 0.5rem;
}

.fc-dashboard-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .fc-dashboard-page {
    max-width: 94% !important;
    padding: 1rem;
    margin-left: auto;
    margin-right: auto;
  }
  
  .fc-dashboard-header-image {
    height: 150px;
  }
  
  .fc-dashboard-header {
    margin-left: calc(-1rem - 1rem) !important;
    margin-right: -1rem !important;
    padding-left: calc(1rem + 1rem) !important;
    padding-right: 1rem !important;
    width: calc(100% + 1rem + 1rem);
  }
  
  .fc-dashboard-fc-name-wrapper {
    gap: 0.75rem;
  }
  
  .fc-dashboard-fc-icon {
    width: 70px !important;
    height: 70px !important;
    aspect-ratio: 1 / 1;
    max-width: 70px !important;
    max-height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    flex-basis: 70px;
    margin: 0 !important;
  }
  
  .fc-dashboard-fc-name {
    font-size: 1.2rem !important;
  }
  
  .fc-dashboard-plans-scroll {
    max-height: 500px;
  }
  
  .fc-dashboard-plan-card {
    flex-direction: column;
  }
  
  .fc-dashboard-plan-thumbnail,
  .fc-dashboard-plan-thumbnail-placeholder {
    width: 100%;
    height: 150px;
  }
  
  .fc-dashboard-posts-grid {
    grid-template-columns: 1fr; /* モバイルでは1カラム */
  }
  
  .fc-dashboard-posts-scroll {
    max-height: 500px;
  }
  
  .fc-dashboard-posts-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .fc-dashboard-post-add-btn {
    width: 100%;
    justify-content: center;
  }
}

/* プラン一覧ページ（fc-plans）用グリッド・ステータスラベル */
.fc-plan-list-page .fc-plan-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-height: none;
  overflow: visible;
}

.fc-plan-list-status-label {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 4px;
}

@media (max-width: 767px) {
  .fc-plan-list-page .fc-plan-list-grid {
    grid-template-columns: 1fr;
  }
}

/* 未ログイン時：画像にぼかし */
.fc-public-guest .fc-dashboard-header-image {
  filter: blur(8px);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}
.fc-public-guest .fc-dashboard-fc-icon {
  filter: blur(6px);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}
.fc-public-guest .fc-dashboard-plan-card img,
.fc-public-guest .fc-dashboard-plan-card .fc-dashboard-plan-thumbnail {
  filter: blur(8px);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}
.fc-public-guest .talent-post-card .thumbnail img {
  filter: blur(8px);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

/* fc-posts: 投稿一覧 / バックナンバー切替 */
.fc-posts-view-header {
  margin-bottom: 0.25rem;
}
.fc-posts-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}
.fc-posts-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  box-shadow: none;
}
.fc-posts-view-tab:hover,
.fc-posts-view-tab:focus,
.fc-posts-view-tab:focus-visible,
.fc-posts-view-tab:active {
  text-decoration: none !important;
  border-color: #fbcfe8;
  color: #be185d;
}
.fc-posts-view-tab.is-active {
  text-decoration: none !important;
  background: #fdf2f8;
  border-color: #f472b6;
  color: #9d174d;
}
.fc-posts-view-tab.is-active:hover,
.fc-posts-view-tab.is-active:focus {
  color: #9d174d;
}
.fc-posts-bn-panel {
  margin-top: 0.5rem;
}
.fc-posts-bn-lead {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4b5563;
}

.fc-posts-bn-archive-posts {
  margin: 1.25rem 0 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f3e8ff;
}
.fc-posts-bn-archive-posts--note-only {
  padding-top: 0.75rem;
  border-top: 1px solid #f3e8ff;
}
.fc-posts-bn-archive-heading {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: #1f2937;
}
.fc-posts-bn-archive-grid {
  margin-top: 0.25rem;
}
.fc-posts-bn-archive-grid .talent-post-card h3 a {
  text-decoration: none;
  color: #1e40af;
}
.fc-posts-bn-archive-grid .talent-post-card h3 a:hover {
  text-decoration: underline;
  color: #1d4ed8;
}
.fc-posts-bn-archive-empty {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #6b7280;
}

/* fc-public: バックナンバー対象投稿（タイトルリンクのみ・下の月次一覧と重複しにくい） */
.fc-public-bn-target-posts {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 1rem;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 10px;
}
.fc-public-bn-target-posts .fc-posts-bn-archive-heading {
  margin-bottom: 0.5rem;
}
.fc-public-bn-target-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.75;
  font-size: 0.95rem;
}
.fc-public-bn-target-list li {
  margin: 0.15rem 0;
}
.fc-public-bn-target-list a {
  color: #7c3aed;
  font-weight: 600;
  text-decoration: underline;
}

/* バックナンバー（fc-public 等） */
.fc-dashboard-bn-block--creator-view .fc-dashboard-bn-creator-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1f2937;
  font-weight: 600;
}
.fc-dashboard-bn-block {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: 10px;
  text-align: left;
}
.fc-dashboard-bn-block.fc-dashboard-section {
  margin-top: 0;
}
.fc-dashboard-bn-heading {
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  color: #be185d;
}
.fc-dashboard-bn-purchased-note {
  margin: 0 0 0.9rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #4b5563;
}
.fc-dashboard-bn-heading + .fc-dashboard-bn-purchased-note {
  margin-top: -0.35rem;
}
.fc-dashboard-bn-purchased-note + .fc-dashboard-bn-list {
  margin-top: 0.15rem;
}
.fc-dashboard-bn-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  line-height: 1.6;
}
.fc-dashboard-bn-list li {
  margin: 0.45rem 0;
}
a.fc-dashboard-bn-btn {
  display: inline-block;
  margin: 0.1rem 0;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fff !important;
  text-decoration: none !important;
  background: linear-gradient(180deg, #f472b6 0%, #ec4899 100%);
  border: 1px solid #db2777;
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(190, 24, 93, 0.12);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
a.fc-dashboard-bn-btn:hover {
  color: #fff !important;
  text-decoration: none !important;
  background: #db2777;
  border-color: #be185d;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.2);
}
a.fc-dashboard-bn-btn:focus-visible {
  outline: 2px solid #f472b6;
  outline-offset: 2px;
}
a.fc-dashboard-bn-btn:active {
  transform: scale(0.98);
}
.fc-dashboard-bn-notice p {
  margin: 0;
  line-height: 1.6;
  color: #4b5563;
  font-size: 0.95rem;
}
.purimall-bn-hint-block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.purimall-bn-hint-block .fc-dashboard-bn-heading {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
