/**
 * エゴサ回避・伏字強度メーター スタイル (stealth-meter.scss)
 * 2026年鑑定士査定Task 9-1・Retro-OS調・150行以下厳守
 */
.stealth-meter-container {
  background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 4px;
  padding: 10px; margin-top: 10px; font-family: inherit;

  .meter-head {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
    .meter-title {
      display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: #0f172a;
      .meter-icon { font-size: 16px; }
    }
    .meter-rank-badge {
      font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 3px;
      background: #e2e8f0; color: #334155; border: 1px solid #cbd5e1; letter-spacing: 0.5px;
      &.rank-s { background: #dcfce7; color: #15803d; border-color: #86efac; }
      &.rank-a { background: #e0f2fe; color: #0369a1; border-color: #7dd3fc; }
      &.rank-b { background: #fef9c3; color: #854d0e; border-color: #fde047; }
      &.rank-c, &.rank-e { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
    }
  }

  .meter-gauge-wrap {
    margin-bottom: 8px;
    .gauge-track {
      height: 12px; background: #e2e8f0; border-radius: 6px; overflow: hidden;
      border: 1px solid #cbd5e1; margin-bottom: 4px;
      .gauge-bar {
        height: 100%; width: 0%; background-color: #dc2626;
        transition: width 0.35s ease, background-color 0.35s ease;
      }
    }
    .gauge-stats {
      display: flex; justify-content: space-between; align-items: center; font-size: 13.5px;
      .gauge-val {
        font-size: 16px; font-weight: 800; color: #0f172a;
        .unit { font-size: 12px; margin-left: 2px; color: #64748b; }
      }
      .gauge-status-text { color: #475569; font-weight: 600; }
    }
  }

  .meter-breakdown {
    display: flex; justify-content: space-between; gap: 4px; padding: 8px 10px;
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 3px;
    margin-bottom: 8px; font-size: 13px; color: #475569;
    .bd-item {
      display: flex; align-items: center; gap: 4px;
      .bd-dot { width: 6px; height: 6px; border-radius: 50%; background: #94a3b8; }
      b { color: #0f172a; }
    }
  }

  .sns-preview-box {
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 4px; padding: 10px;
    .sns-preview-head {
      display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
      .user-avatar {
        font-size: 14px; background: #f1f5f9; width: 22px; height: 22px;
        display: flex; align-items: center; justify-content: center; border-radius: 50%;
      }
      .user-meta {
        flex: 1; display: flex; gap: 6px; align-items: baseline;
        .user-name { font-size: 13.5px; font-weight: 700; color: #0f172a; }
        .user-id { font-size: 12px; color: #64748b; }
      }
      .sns-logo { font-size: 13px; font-weight: 800; color: #0f172a; }
    }
    .sns-preview-body {
      font-size: 14.5px; line-height: 1.5; color: #64748b;
      padding: 6px 0; word-break: break-all; min-height: 24px;
    }
    .sns-preview-hint {
      font-size: 12.5px; color: #64748b; margin-top: 4px;
      border-top: 1px dashed #e2e8f0; padding-top: 4px;
    }
  }
}

@media (max-width: 599px) {
  .stealth-meter-container {
    padding: 8px;
    .meter-breakdown { flex-direction: column; gap: 4px; font-size: 12.5px; }
  }
}
