/* ─── SellerTools 共通ヘッダー（全アプリ共通 / モバイル最適化） ─────────────
   各アプリの index.html から `<link rel="stylesheet" href="/css/app-header.css">`
   で読み込む。必ずアプリ個別の style.css の「後ろ」でロードすることで、
   同セレクタ・同優先度でのカスケードにより本ファイルの定義が優先される。
---------------------------------------------------------------------------- */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #1b2533 0%, #232f3e 35%, #232f3e 65%, #1b2533 100%);
  color: #fff;
  height: 54px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow:
    inset 0 -1px 0 rgba(255, 153, 0, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-logo {
  font-size: 0.85rem;
  color: #ff9900;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease;
}
.header-logo:hover { color: #ffb84d; }

.header-sep {
  color: #4a5568;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.header-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ─── タブレット・スマホ横 ─── */
@media (max-width: 768px) {
  .app-header {
    height: 50px;
    padding: 0 14px;
  }
  .header-left  { gap: 8px; }
  .header-right { gap: 6px; }
  .header-logo  { font-size: 0.78rem; letter-spacing: 0.5px; }
  .header-sep   { font-size: 0.82rem; }
  .header-title { font-size: 0.85rem; }
}

/* ─── スマホ縦（狭い画面）─── */
@media (max-width: 480px) {
  .app-header {
    height: 46px;
    padding: 0 10px;
  }
  /* 「Seller Tools」はコンパクトな "ST" バッジに置換 */
  .header-logo {
    font-size: 0;
    line-height: 0;
  }
  .header-logo::before {
    content: "ST";
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: #ff9900;
    background: rgba(255, 153, 0, 0.12);
    border: 1px solid rgba(255, 153, 0, 0.45);
    padding: 3px 7px;
    border-radius: 5px;
    line-height: 1;
  }
  .header-sep   { display: none; }
  .header-title { font-size: 0.82rem; }
}
