:root {
  --bg-color: #f3f4f6;
  --text-color: #1f2937;
  --card-bg: #ffffff;
  --link-color: #2563eb;
  --interest-green: #10b981;
  --interest-yellow: #facc15;
  --interest-red: #ef4444;
}

body.dark {
  --bg-color: #111827;
  --text-color: #f3f4f6;
  --card-bg: #1f2937;
  --link-color: #60a5fa;
}

body {
  margin: 0;
  font-family: sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  padding: 1rem;
}

.container {
  max-width: 768px;
  margin: 0 auto;
}

.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  overflow-x: auto;
  margin-top: 0.5rem;
}

.tabs::-webkit-scrollbar {
	height: 6px;
}

.tabs::-webkit-scrollbar-thumb {
	background: #444;
	border-radius: 4px;
}


/*
.tab-button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.2s;
}*/

.IL { background-color: white; color: red; }
.IS { background-color: red; color: white; }
.HS { background-color: white; color: black; }
.AI { background-color: purple; color: yellow; }
.Yle { background-color: #00b4c8; color: white; }
.Reu { background-color: white; color: black; }
.Phy { background-color: black; /*#212529;*/ color: white; }
.All { background-color: #3b82f6; color: white; }
.tab-button.latest { background-color: #2563eb; color: white; }
.tab-button.interesting { background-color: #10b981; color:white; }

.card {
  background-color: var(--card-bg);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  cursor: pointer;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.card-title {
  display: flex;
    justify-content: space-between;
	align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  width: 100%;
  transition: background-color 0.2s ease;
}

.card-title .headline {
	flex: 1;
	word-break: break-word;
}

.card-title .source-tag {
	white-space: nowrap;
	flex-shrink: 0;
}



.source-tag {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 0.25rem;
}


.reactions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.reactions span {
  font-size: 0.9rem;
}

.reactions .interest-green { color: var(--interest-green); }
.reactions .interest-yellow { color: var(--interest-yellow); }

button.reaction-button {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s;
}

button.reaction-button:hover {
  transform: scale(1.1);
}

.card-body {
  margin-top: 0.5rem;
}

.card-body p {
  margin-bottom: 0.5rem;
}

.card-body a {
  color: var(--link-color);
  text-decoration: none;
}

.card-body a:hover {
  text-decoration: underline;
}



.card-title:hover {
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

body.dark .card-title:hover {
  background-color: rgba(255, 255, 255, 0.05);
}


.reaction-button:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.card-body a:hover {
  text-decoration: underline;
  color: var(--link-color);
}

.card-category {
  font-size: 0.8rem;
  color: #6b7280; /* soft gray */
  margin-top: 0.25rem;
}

body.dark .card-category {
  color: #9ca3af;
}


.tab-button {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
  margin: 2px;
}

.tab-button.active {
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

body.dark .tab-button.active {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.tab-button:hover {
  opacity: 1;
  filter: brightness(1.1);
}


.gauge {
	display: none;
	max-width: 2em;
}



.disclosure-icon {
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.2s ease;
}

.disclosure-icon.expanded {
  transform: rotate(90deg);
}


.new-articles-banner {
  background-color: #2563eb;
  color: #fff;
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  border: 1px solid #555;
  cursor: pointer;
}

.new-articles-banner:hover {
  background-color: #3070f5;
}


.hidden {
  display: none;
}


@keyframes flash-highlight {
  0% { background-color: #2c2cb8; }
  30% { background-color: #46a; }
  100% { background-color: var(--card-bg) }
}

.card.flash {
  animation: flash-highlight 1.2s ease-out;
}


.site-footer {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  font-size: 0.9rem;
  color: #aaa;
}

.about-link {
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.about-link:hover {
  color: #fff;
  text-decoration: underline;
}

.space {
	display: inline-block;
	width: 1em;
}
