/* css/result.css — 結果・相性結果画面 */

/* ── 自分の結果カード ── */
.result-fish-wrap {
  text-align: center;
  padding: var(--sp-lg) 0;
}

.result-fish-img {
  width: 260px;
  height: 260px;
  object-fit: contain;
  margin: 0 auto var(--sp-md);
  border-radius: var(--radius-lg);
  background: var(--color-accent);
  padding: var(--sp-md);
  box-shadow: var(--shadow-md);
}

.result-fish-img--placeholder {
  width: 260px;
  height: 260px;
  margin: 0 auto var(--sp-md);
  border-radius: var(--radius-lg);
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.result-fish-name {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary-dark);
  letter-spacing: 0.04em;
}

.result-catchcopy {
  margin-top: var(--sp-sm);
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.5;
}

.result-badges {
  display: flex;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
  flex-wrap: wrap;
}

.result-description {
  margin-top: var(--sp-lg);
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--sp-md) var(--sp-lg);
  box-shadow: var(--shadow-sm);
}

.desc-section {
  padding: var(--sp-sm) 0 var(--sp-md);
  border-top: 1px solid var(--color-border);
}

.desc-section:first-child {
  border-top: none;
  padding-top: 0;
}

.desc-section:last-child {
  padding-bottom: 0;
}

.desc-section__title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}

.desc-section p {
  margin: 0;
  line-height: 1.8;
}

/* ── アクションボタン群 ── */
.result-actions {
  margin-top: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.btn-share-x {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-md);
  background: #000;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, transform 0.1s;
}

.btn-share-x:hover {
  background: #333;
}

.btn-share-x:active {
  transform: scale(0.97);
}

.btn-share-x__icon {
  font-size: 1.1rem;
}

/* ── 相性結果画面 ── */
.compat-fish-pair {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.compat-fish-card {
  flex: 1;
  text-align: center;
}

.compat-fish-card__img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  margin: 0 auto var(--sp-sm);
  border-radius: var(--radius-md);
  background: var(--color-accent);
  padding: var(--sp-sm);
  box-shadow: var(--shadow-sm);
}

.compat-fish-card__img--placeholder {
  width: 110px;
  height: 110px;
  margin: 0 auto var(--sp-sm);
  border-radius: var(--radius-md);
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.compat-fish-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.compat-heart {
  font-size: 1.8rem;
  flex-shrink: 0;
}

/* ── 相性ランク ── */
.compat-rank-card {
  text-align: center;
  padding: var(--sp-lg);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--sp-lg);
}

.compat-rank {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  display: block;
  margin-bottom: var(--sp-sm);
}

.compat-rank--great { color: #E91E63; }
.compat-rank--good  { color: #FF8FAB; }
.compat-rank--ok    { color: #A07080; }

.compat-type {
  display: inline-block;
  padding: var(--sp-xs) var(--sp-md);
  background: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: var(--sp-md);
}

.compat-comment {
  font-size: 0.92rem;
  color: var(--color-text);
}

/* ── 再診断ボタン ── */
.btn-retry {
  display: block;
  width: 100%;
  padding: var(--sp-md);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  text-align: center;
  transition: border-color 0.2s, color 0.2s;
  margin-top: var(--sp-md);
}

.btn-retry:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

/* ── タイプコード表示 ── */
.result-typecode {
  background: var(--color-accent);
  border-radius: var(--radius-md);
  padding: var(--sp-md) var(--sp-lg);
  text-align: center;
  margin: var(--sp-md) auto;
  max-width: 280px;
}

.result-typecode__label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-xs);
}

.result-typecode__code {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  color: var(--color-primary-dark);
  margin: var(--sp-xs) 0;
}

.result-typecode__note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ── タイプコード入力画面 ── */
.compat-input-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.compat-input-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.compat-input-field__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
}

.compat-code-input {
  width: 100%;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  padding: var(--sp-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.compat-code-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.compat-code-input--readonly {
  background: var(--color-accent);
  color: var(--color-primary-dark);
  border-color: var(--color-accent);
  cursor: default;
}

/* ── TOPの相性診断リンク ── */
.top-compat-link {
  text-align: center;
  margin-top: var(--sp-lg);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--color-border);
}

.top-compat-link__text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-sm);
}

.btn-secondary {
  display: inline-block;
  padding: var(--sp-sm) var(--sp-lg);
  background: transparent;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}
