/* New tools changelog — matches ai-news section tokens */
.ai-new-tools {
  margin-bottom: 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px 16px;
  box-shadow: var(--shadow-sm);
}

.ai-new-tools-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.ai-new-tools-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.ai-new-tools-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
  max-width: 56ch;
}

.ai-new-tools-updated {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  white-space: nowrap;
}

.ai-new-tools-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.ai-new-tools-tab {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.ai-new-tools-tab:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.ai-new-tools-tab.active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.ai-new-tools-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-new-tools-item {
  animation: ai-new-tools-fade-in 0.35s ease;
}

@keyframes ai-new-tools-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-new-tools-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ai-new-tools-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.ai-new-tools-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 3px;
}

.ai-new-tools-logo-fallback {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
}

.ai-new-tools-body {
  flex: 1;
  min-width: 0;
}

.ai-new-tools-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 4px;
}

.ai-new-tools-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
}

.ai-new-tools-badge.kind-new {
  background: #e8f5e9;
  color: #2e7d32;
}

.ai-new-tools-badge.kind-update {
  background: #fff3e0;
  color: #e65100;
}

html[data-theme="dark"] .ai-new-tools-badge.kind-new {
  background: rgba(46, 125, 50, 0.25);
  color: #81c784;
}

html[data-theme="dark"] .ai-new-tools-badge.kind-update {
  background: rgba(230, 81, 0, 0.2);
  color: #ffb74d;
}

.ai-new-tools-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.ai-new-tools-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}

.ai-new-tools-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ai-new-tools-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.ai-new-tools-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.ai-new-tools-footer a:hover {
  text-decoration: underline;
}

.ai-new-tools-subscribe {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: var(--bg);
}

.ai-new-tools-subscribe-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.ai-new-tools-subscribe-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ai-new-tools-subscribe input[type="text"] {
  flex: 1;
  min-width: 200px;
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 12px;
  font-family: inherit;
  color: var(--text-secondary);
}

.ai-new-tools-subscribe-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-secondary);
}

.ai-new-tools-subscribe-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ai-new-tools-subscribe-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin: 8px 0 0;
  line-height: 1.45;
}

.ai-new-tools-empty {
  text-align: center;
  padding: 28px 16px;
  color: var(--text-secondary);
  font-size: 13px;
}

.ai-new-tools-view-all {
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.ai-new-tools-view-all:hover {
  text-decoration: underline;
}

.ai-new-tools-page .main {
  max-width: 720px;
}
