/* ==========================================================
   CLL JAPAN — Saved Page Styles (saved.css)
   ========================================================== */

/* ----------------------------------------------------------
   1. デザイントークン（CSS Variables）
---------------------------------------------------------- */
:root {
  --bg-primary:     #080808;
  --bg-secondary:   #101010;
  --bg-card:        #141414;
  --bg-hover:       #1c1c1c;
  --accent:         #e50914;
  --accent-hover:   #ff2020;
  --accent-dim:     rgba(229, 9, 20, 0.15);
  --text-primary:   #f0f0f0;
  --text-secondary: #999999;
  --text-muted:     #555555;
  --border:         #1e1e1e;
  --border-hover:   #333333;
  --gold:           #f5c518;
  --font-main:      'Noto Sans JP', 'Helvetica Neue', sans-serif;
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --transition:     0.18s ease;
}

/* ----------------------------------------------------------
   2. ベーススタイル
---------------------------------------------------------- */
body {
  background:             var(--bg-primary);
  color:                  var(--text-primary);
  font-family:            var(--font-main);
  line-height:            1.7;
  -webkit-font-smoothing: antialiased;
}

/* WPデフォルト要素を非表示 */
.site-header,
.site-branding,
.entry-title,
.page-title { display: none !important; }

/* ----------------------------------------------------------
   3. ページ全体ラッパー
---------------------------------------------------------- */
#saved-wrapper {
  max-width: 760px;
  margin:    0 auto;
  padding:   0 16px 80px;
}

/* ----------------------------------------------------------
   4. ページヘッダー
---------------------------------------------------------- */
#saved-header {
  padding:       28px 0 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.saved-label {
  font-size:      11px;
  font-weight:    700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color:          var(--accent);
  margin-bottom:  8px;
}
.saved-heading {
  font-size:     22px;
  font-weight:   800;
  color:         var(--text-primary);
  margin-bottom: 6px;
}
.saved-count { font-size: 12px; color: var(--text-muted); }
.saved-note {
  font-size:     11px;
  color:         var(--text-muted);
  margin-top:    6px;
  padding:       8px 12px;
  background:    var(--bg-card);
  border-radius: var(--radius-sm);
  border:        1px solid var(--border);
}

/* ----------------------------------------------------------
   5. クリアボタン
---------------------------------------------------------- */
#saved-clear-btn {
  display:       inline-flex;
  align-items:   center;
  gap:           6px;
  margin-top:    14px;
  font-size:     11px;
  color:         var(--text-muted);
  background:    transparent;
  border:        1px solid var(--border);
  border-radius: 20px;
  padding:       5px 12px;
  cursor:        pointer;
  transition:    color var(--transition), border-color var(--transition);
}
#saved-clear-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ----------------------------------------------------------
   6. ローディング
---------------------------------------------------------- */
#saved-loading {
  text-align: center;
  padding:    60px 20px;
  color:      var(--text-muted);
  font-size:  13px;
}
.saved-spinner {
  width:            28px;
  height:           28px;
  border:           3px solid var(--border);
  border-top-color: var(--accent);
  border-radius:    50%;
  animation:        spin .7s linear infinite;
  margin:           0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------
   7. 記事グリッド・カード
---------------------------------------------------------- */
#saved-grid {
  display:               grid;
  grid-template-columns: 1fr;
  gap:                   12px;
}

.saved-card {
  background:      var(--bg-card);
  border:          1px solid var(--border);
  border-radius:   var(--radius-md);
  overflow:        hidden;
  text-decoration: none;
  color:           inherit;
  display:         flex;
  flex-direction:  row;
  transition:      border-color var(--transition);
}
.saved-card:hover { border-color: var(--border-hover); }

.saved-card-thumb {
  width:       140px;
  flex-shrink: 0;
  overflow:    hidden;
  background:  #0d0d1a;
}
.saved-card-thumb img {
  width:           100%;
  height:          100%;
  object-fit:      cover;
  object-position: top;
  display:         block;
}
.saved-card-thumb-placeholder {
  width:           100%;
  height:          100%;
  min-height:      80px;
  background:      linear-gradient(135deg, #0d0d1a, #1a1a2e);
  display:         flex;
  align-items:     center;
  justify-content: center;
}
.saved-card-thumb-placeholder svg { opacity: .25; }

.saved-card-body {
  padding:         14px 16px;
  flex:            1;
  min-width:       0;
  display:         flex;
  flex-direction:  column;
  justify-content: space-between;
}
.saved-card-cat {
  font-size:      9px;
  font-weight:    700;
  color:          var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom:  6px;
}
.saved-card-title {
  font-size:           13px;
  font-weight:         700;
  color:               var(--text-primary);
  line-height:         1.45;
  display:             -webkit-box;
  -webkit-line-clamp:  2;
  -webkit-box-orient:  vertical;
  overflow:            hidden;
  margin-bottom:       8px;
}
.saved-card-meta {
  font-size:       10px;
  color:           var(--text-muted);
  display:         flex;
  align-items:     center;
  justify-content: space-between;
}

/* ----------------------------------------------------------
   8. 削除ボタン（カードごと）
---------------------------------------------------------- */
.saved-card-remove {
  background:  transparent;
  border:      none;
  color:       var(--text-muted);
  font-size:   16px;
  cursor:      pointer;
  padding:     2px 4px;
  line-height: 1;
  transition:  color var(--transition);
  flex-shrink: 0;
}
.saved-card-remove:hover { color: var(--accent); }

/* ----------------------------------------------------------
   9. ゼロ件表示
---------------------------------------------------------- */
#saved-empty {
  text-align: center;
  padding:    60px 20px;
  display:    none;
}
.saved-empty-icon  { font-size: 40px; margin-bottom: 16px; opacity: .4; }
.saved-empty-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.saved-empty-desc  { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.saved-empty-btn {
  display:         inline-flex;
  align-items:     center;
  gap:             6px;
  background:      var(--accent);
  color:           #fff;
  font-size:       13px;
  font-weight:     700;
  padding:         12px 24px;
  border-radius:   var(--radius-md);
  text-decoration: none;
  transition:      background var(--transition);
}
.saved-empty-btn:hover { background: var(--accent-hover); }

/* ----------------------------------------------------------
   10. フッター（single.phpと同一）
---------------------------------------------------------- */
#site-footer       { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 32px 16px 20px; }
.footer-inner      { display: flex; flex-direction: column; gap: 28px; }
.footer-logo img   { height: 28px; width: auto; margin-bottom: 10px; }
.footer-desc       { font-size: 11px; color: var(--text-muted); line-height: 1.8; max-width: 280px; }
.footer-cols       { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.footer-col-title  { font-size: 11px; font-weight: 700; color: var(--text-secondary); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.footer-col-list   { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-col-list a { font-size: 12px; color: var(--text-muted); text-decoration: none; }
.footer-col-list a:hover  { color: var(--text-primary); }
.footer-disclaimer { font-size: 10px; color: var(--text-muted); line-height: 1.7; padding: 10px 12px; background: #0d0d0d; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-top: 20px; }
.footer-bottom     { border-top: 1px solid var(--border); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.footer-copyright  { font-size: 10px; color: var(--text-muted); }
.footer-legal      { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-legal a    { font-size: 10px; color: var(--text-muted); text-decoration: none; }

/* ----------------------------------------------------------
   11. レスポンシブ
---------------------------------------------------------- */
@media (min-width: 600px) {
  .saved-card-thumb { width: 180px; }
  .saved-card-title { font-size: 14px; }
}

@media (min-width: 768px) {
  #saved-wrapper { padding: 0 24px 80px; }
  .saved-heading { font-size: 26px; }
  #site-footer   { padding: 40px 40px 24px; }
  .footer-inner  { flex-direction: row; gap: 40px; align-items: flex-start; }
  .footer-brand  { flex-shrink: 0; width: 220px; }
  .footer-cols   { flex: 1; grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
