/* 釣果詳細ページ全体のコンテナ */
.fishing-report-show-container {
  max-width: 800px;
  max-height: 100%;
  margin: 10px auto;
  padding: 20px;
  font-family: var(--font-family-base);
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

/* 釣果画像のスタイル */
.fishing-report-image-large {
  width: 100%;
  max-height: 50vh;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 15px;
  cursor: pointer; /* ライトボックス用：クリック可能を示す */
}

/* 釣果詳細情報のコンテナ */
.fishing-report-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ヘッダー情報（時間帯アイコン、ユーザー名、リンクコピー） */
.fishing-report-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fishing-report-header .copy-link-button {
  margin-left: auto;
}

.time-of-day-icon {
  width: 24px;
  height: 24px;
  color: #606770;
}

.fishing-report-user-name {
  font-size: 1.1em;
  font-weight: bold;
}

/* ユーザー名リンクのスタイル */
.fishing-report-user-name a {
  text-decoration: none;
  color: inherit; /* 親要素の文字色を継承 */
}

/* 釣果コメント */
.fishing-report-comment {
  font-size: 1em;
  color: #333;
  white-space: pre-wrap; /* 改行を反映させる */
}

/* 魚情報のセクション */
.fish-info-section {
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
  margin-top: 5px;
}

.fish-info-section h3 {
  font-size: 1.1em;
  margin-bottom: 8px;
  color: #1c1e21;
}

.fish-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.fish-info-item {
  background-color: #f0f2f5;
  padding: 8px;
  border-radius: 6px;
}

.fish-info-label {
  font-weight: bold;
  font-size: 0.9em;
  color: #606770;
  display: block;
  margin-bottom: 5px;
}

.fish-info-value {
  font-size: 1em;
}

/* AI判定結果: 青色で強調表示 */
.fish-info-value.ai-fish-name {
  color: #1877f2;
  font-weight: 500;
}

/* アクションエリア（戻るリンク、削除リンク） */
.fishing-report-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #e0e0e0;
}

/* 戻るリンク */
.fishing-report-actions .back-link {
  color: #1877f2;
  text-decoration: none;
}

.fishing-report-actions .back-link:hover {
  text-decoration: underline;
}

/* 削除リンク */
.fishing-report-actions .delete-link {
  color: #d9534f;
  text-decoration: none;
}

.fishing-report-actions .delete-link:hover {
  text-decoration: underline;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .fishing-report-show-container {
    margin: 5px;
    padding: 15px;
    max-height: calc(100% - 10px);
  }

  .fish-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Time-specific icon colors */
.time-of-day-icon.morning {
  color: #FFC107; /* Amber */
}

.time-of-day-icon.day {
  color: #2196F3; /* Blue */
}

.time-of-day-icon.night {
  color: #3F51B5; /* Indigo */
}

/* 送信ボタンの非活性時のスタイル */
.login-form input[type="submit"]:disabled,
.login-form button.login-form__submit:disabled {
  background-color: #a0aec0; /* A neutral gray */
  cursor: not-allowed;
}

/* ライトボックス（全画面画像表示） */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: var(--z-index-modal);
  cursor: pointer;
}

.lightbox-overlay.hidden {
  display: none;
}

.lightbox-image {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

/* リンクコピーボタン */
.copy-link-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background-color: #f0f2f5;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
  color: #606770;
}

.copy-link-button:hover {
  background-color: #e4e6e9;
  color: #1877f2;
}

.copy-link-button:active {
  background-color: #dddfe2;
}

.copy-link-button svg {
  width: 20px;
  height: 20px;
}

/* コピー成功時のツールチップ */
.copy-tooltip {
  background-color: #1c1e21;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.85em;
  z-index: var(--z-index-notification);
  animation: tooltip-fade-in 0.2s ease-out;
  pointer-events: none;
  white-space: nowrap;
}

.copy-tooltip.fade-out {
  animation: tooltip-fade-out 0.3s ease-out forwards;
}

/* エラー時のツールチップ */
.copy-tooltip-error {
  background-color: #d9534f;
}

@keyframes tooltip-fade-in {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes tooltip-fade-out {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-5px);
  }
}
