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

.fc-dashboard-page {
  max-width: 700px !important;
  margin: 0 auto;
  padding: 2rem 1rem;
  background: #ffffff;
  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;
  max-width: 80px !important;
  max-height: 80px !important;
  border-radius: 50% !important;
  object-fit: cover;
  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: #f9fafb;
  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.5);
  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.5);
}

.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.5);
  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-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;
    max-width: 70px !important;
    max-height: 70px !important;
    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;
}
