/* AI News Daily */
:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --text: #e8eaed;
  --muted: #9aa0a6;
  --accent: #6c9eff;
  --accent-hover: #8ab4ff;
  --border: #2d3140;
  --top-badge: #ff6b35;
}

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

body {
  font-family: "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.has-ad-sidebars .site-wrapper {
  display: grid;
  grid-template-columns: 160px minmax(0, 800px);
  gap: 1.5rem;
  align-items: start;
}

.has-ad-sidebars.has-ad-sidebar-right .site-wrapper {
  grid-template-columns: 160px minmax(0, 800px) 160px;
}

.main-content {
  min-width: 0;
}

.container { max-width: 800px; margin: 0 auto; padding: 1.5rem 0; }

.ad-sidebar {
  position: sticky;
  top: 1.5rem;
  width: 160px;
  min-height: 600px;
}

.ad-bottom {
  margin: 2rem 0 1rem;
  text-align: center;
  overflow: hidden;
}

header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

header h1 { font-size: 1.75rem; font-weight: 700; }
header h1 a { color: var(--text); text-decoration: none; }
header p { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

.date-badge {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.share-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.share-label {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.share-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

.share-btn--x:hover { border-color: #e7e9ea; color: #e7e9ea; }
.share-btn--facebook:hover { border-color: #1877f2; color: #1877f2; }
.share-btn--line:hover { border-color: #06c755; color: #06c755; }
.share-btn--copy:hover { border-color: var(--accent); color: var(--accent); }

section { margin-bottom: 2.5rem; }

h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

h2.top-heading::before { content: "🔥 "; }

.top-list { list-style: none; counter-reset: top; }
.top-list li {
  counter-increment: top;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1rem 1rem 3rem;
  margin-bottom: 0.75rem;
  position: relative;
}
.top-list li::before {
  content: counter(top);
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: var(--top-badge);
  color: #fff;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.top-list a { font-weight: 600; font-size: 1.05rem; }

.category-block { margin-bottom: 2rem; }
.category-block h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.article-card h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.article-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; }
.article-card .meta { font-size: 0.8rem; color: var(--muted); }

.archive-list { list-style: none; }
.archive-list li { margin-bottom: 0.4rem; }

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.placeholder-msg {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
}
.placeholder-msg h2 { border: none; font-size: 1.5rem; color: var(--text); }

@media (max-width: 1100px) {
  .has-ad-sidebars .site-wrapper {
    display: block;
    max-width: 800px;
  }

  .ad-sidebar {
    display: none;
  }

  .container { padding: 1rem 0; }
}

@media (max-width: 600px) {
  .site-wrapper { padding: 0 1rem; }
  header h1 { font-size: 1.4rem; }
}
