/* =========================
   TiSLY Base Style
   ========================= */

body {
  margin: 0;
  padding: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #0b2a4a, #0a4f7a);
  color: #ffffff;
}

/* ===== タイトル ===== */
h2 {
  margin-bottom: 12px;
}

/* ===== ボタン ===== */
button {
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  margin-right: 8px;
}

.primary {
  background: #1da1f2;
  color: #fff;
}

.ghost {
  background: #2c4f6d;
  color: #fff;
}

/* ===== ステータス ===== */
#status {
  margin: 12px 0;
  font-size: 14px;
}

/* =========================
   ヘッダー & ロゴ
   ========================= */

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* ★ ロゴサイズ（基準：250px） */
.logo {
  width: 250px;
  height: 250px;
  object-fit: contain;
  display: block;
}

/* =========================
   ロゴ発光アニメーション
   ========================= */

/* INFO（青） */
@keyframes logoGlowInfo {
  0%   { filter: drop-shadow(0 0 0 rgba(0,180,255,0)); }
  50%  { filter: drop-shadow(0 0 14px rgba(0,180,255,0.95)); }
  100% { filter: drop-shadow(0 0 0 rgba(0,180,255,0)); }
}

/* ALERT（赤） */
@keyframes logoGlowAlert {
  0%   { filter: drop-shadow(0 0 0 rgba(255,70,70,0)); }
  50%  { filter: drop-shadow(0 0 18px rgba(255,70,70,1)); }
  100% { filter: drop-shadow(0 0 0 rgba(255,70,70,0)); }
}

.logo.glow-info {
  animation: logoGlowInfo 1.2s ease-out;
}

.logo.glow-alert {
  animation: logoGlowAlert 1.4s ease-out;
}

/* =========================
   カード共通
   ========================= */

.card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  cursor: pointer;
  user-select: none;
}

/* ===== レベル別 ===== */
.card.info {
  border-left: 5px solid #4da6ff;
}

.card.warning {
  border-left: 5px solid #ffcc00;
}

.card.alert {
  border-left: 6px solid #ff3b3b;
  box-shadow: 0 0 0 1px rgba(255,59,59,.25),
              0 10px 30px rgba(255,59,59,.18);
}

/* ===== カード中身 ===== */
.card-title {
  font-weight: bold;
  margin-bottom: 6px;
}

.card-meta {
  font-size: 13px;
  opacity: 0.9;
}

.card-time {
  font-size: 13px;
  opacity: 0.8;
  white-space: nowrap;
}

/* =========================
   未読アニメーション
   ========================= */

.card.unread {
  position: relative;
  animation: unreadPulse 0.9s ease-in-out infinite;
}

.card.unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: #ff4d4d;
  box-shadow: 0 0 12px rgba(255, 77, 77, 0.9);
}

@keyframes unreadPulse {
  0%   { transform: translateY(0); filter: brightness(1); }
  50%  { transform: translateY(-1px); filter: brightness(1.15); }
  100% { transform: translateY(0); filter: brightness(1); }
}


/* 詳細（閉じた状態） */
.card-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease;//アコーディオンの時間
  margin-top: 8px;
  font-size: 13px;
  color: #ddd;
}

/* 開いた状態 */
.card.open .card-detail {
  max-height: 200px; /* 中身より大きければOK */
  opacity: 1;
}
