/*
Theme Name: Syun44m X-Style
Theme URI: https://www.syun44m.com
Author: SHUNICHI
Description: A clean X (Twitter)-like dark theme for syun44m.com. Auto-updated by Claude daily.
Version: 1.0
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #000;
  color: #e7e9ea;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  display: flex;
  min-height: 100vh;
}

a { color: #1d9bf0; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== サイドバー ===== */
.sidebar {
  width: 240px;
  padding: 16px 12px;
  position: fixed;
  height: 100vh;
  border-right: 1px solid #2f3336;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 100;
}

.site-logo {
  font-size: 26px;
  font-weight: 900;
  padding: 10px 16px 16px;
  letter-spacing: -1px;
  color: #fff;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  transition: background 0.2s;
  color: #e7e9ea;
  text-decoration: none;
}
.nav-item:hover { background: #1d1f23; text-decoration: none; }
.nav-item.current-cat, .nav-item.current-menu-item { font-weight: 700; }
.nav-icon { font-size: 20px; width: 24px; text-align: center; }

.sidebar-profile {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 0.2s;
}
.sidebar-profile:hover { background: #1d1f23; }

.site-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d9bf0, #7856ff);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 15px; color: #fff;
  flex-shrink: 0;
}

.profile-name { font-weight: 700; font-size: 14px; }
.profile-handle { color: #71767b; font-size: 12px; }

/* ===== メインコンテンツ ===== */
.main-wrap {
  margin-left: 240px;
  flex: 1;
  max-width: 598px;
  min-height: 100vh;
  border-right: 1px solid #2f3336;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 20px;
  border-bottom: 1px solid #2f3336;
  z-index: 50;
}

.site-header h1 { font-size: 20px; font-weight: 800; color: #fff; }
.site-header p { font-size: 12px; color: #71767b; margin-top: 2px; }

/* ===== 記事カード ===== */
.post-card {
  padding: 14px 18px;
  border-bottom: 1px solid #2f3336;
  transition: background 0.15s;
  cursor: pointer;
}
.post-card:hover { background: #080808; }

.post-card-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.post-type-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.icon-news    { background: #ffd70022; }
.icon-invest  { background: #00ba7c22; }
.icon-kpop    { background: #ff69b422; }
.icon-daily   { background: #1d9bf022; }
.icon-ai      { background: #7856ff22; }
.icon-apple   { background: #71767b22; }
.icon-default { background: #1d9bf022; }

.post-meta { flex: 1; min-width: 0; }
.post-author { font-weight: 700; font-size: 14px; color: #e7e9ea; }
.post-author-sub { display: inline; color: #71767b; font-size: 13px; font-weight: 400; }
.post-date { color: #71767b; font-size: 13px; }

.post-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-news    { background: #ffd70020; color: #ffd700; }
.badge-invest  { background: #00ba7c20; color: #00ba7c; }
.badge-kpop    { background: #ff69b420; color: #ff69b4; }
.badge-daily   { background: #1d9bf020; color: #1d9bf0; }
.badge-ai      { background: #7856ff20; color: #7856ff; }
.badge-apple   { background: #71767b20; color: #a0a0a0; }
.badge-default { background: #1d9bf020; color: #1d9bf0; }

.post-title {
  font-size: 15px;
  font-weight: 700;
  color: #e7e9ea;
  margin-bottom: 6px;
  line-height: 1.4;
}

.post-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.post-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: #c4c8cc;
  flex: 1;
}

.post-thumbnail {
  flex-shrink: 0;
  width: 120px;
  height: 80px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #2f3336;
}

.post-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #16181c;
}

.post-thumb-placeholder.icon-news    { background: linear-gradient(135deg, #1a2a1a, #2a3a1a); }
.post-thumb-placeholder.icon-invest  { background: linear-gradient(135deg, #1a2a1a, #1a3a2a); }
.post-thumb-placeholder.icon-kpop    { background: linear-gradient(135deg, #2a1a2a, #3a1a2a); }
.post-thumb-placeholder.icon-daily   { background: linear-gradient(135deg, #1a1a2a, #1a2a3a); }
.post-thumb-placeholder.icon-ai      { background: linear-gradient(135deg, #1a1a2a, #2a1a3a); }
.post-thumb-placeholder.icon-apple   { background: linear-gradient(135deg, #1a1a1a, #2a2a2a); }

.thumb-icon {
  font-size: 32px;
  opacity: 0.85;
}

.post-excerpt a { color: #1d9bf0; }
.post-excerpt table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 8px 0; }
.post-excerpt th { background: #16181c; color: #71767b; padding: 6px 10px; text-align: left; border: 1px solid #2f3336; }
.post-excerpt td { padding: 6px 10px; border: 1px solid #2f3336; }
.post-excerpt .up { color: #00ba7c; font-weight: 700; }
.post-excerpt .down { color: #f4212e; font-weight: 700; }

.post-actions {
  display: flex;
  gap: 28px;
  color: #71767b;
  font-size: 13px;
  margin-top: 10px;
}

.post-action {
  display: flex; align-items: center; gap: 5px;
  cursor: pointer; transition: color 0.2s;
  background: none; border: none; color: #71767b; font-size: 13px;
}
.post-action:hover { color: #1d9bf0; }

/* ===== 右サイドバー ===== */
.right-sidebar {
  width: 320px;
  padding: 16px;
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.widget-box {
  background: #16181c;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.widget-box h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: #fff; }

.trend-row {
  padding: 9px 0;
  border-bottom: 1px solid #2f3336;
  cursor: pointer;
}
.trend-row:last-child { border-bottom: none; }
.trend-row:hover .trend-name { color: #1d9bf0; }
.trend-label { font-size: 11px; color: #71767b; }
.trend-name { font-weight: 700; font-size: 14px; color: #e7e9ea; transition: color 0.2s; }
.trend-count { font-size: 11px; color: #71767b; }

.widget-footer { color: #71767b; font-size: 11px; padding: 6px 4px; }

/* ===== 個別記事 ===== */
.single-post { padding: 20px 20px; }
.single-post h1 { font-size: 22px; font-weight: 800; margin-bottom: 12px; line-height: 1.4; }
.single-post .post-content { font-size: 15px; line-height: 1.75; }
.single-post .post-content h2 { font-size: 18px; font-weight: 800; margin: 20px 0 10px; border-bottom: 1px solid #2f3336; padding-bottom: 6px; }
.single-post .post-content h3 { font-size: 16px; font-weight: 700; margin: 16px 0 8px; }
.single-post .post-content ul, .single-post .post-content ol { padding-left: 20px; margin: 10px 0; }
.single-post .post-content li { margin-bottom: 6px; }
.single-post .post-content table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13px; }
.single-post .post-content th { background: #16181c; color: #71767b; padding: 8px 12px; border: 1px solid #2f3336; text-align: left; }
.single-post .post-content td { padding: 8px 12px; border: 1px solid #2f3336; }
.single-post .post-content .up { color: #00ba7c; font-weight: 700; }
.single-post .post-content .down { color: #f4212e; font-weight: 700; }
.back-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; color: #1d9bf0; font-size: 14px; margin-bottom: 16px; }

/* ===== レスポンシブ ===== */
@media (max-width: 1280px) { .right-sidebar { display: none; } }
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-wrap { margin-left: 0; max-width: 100%; border-right: none; }
}
