:root {
  --bg-color: #ffffff;
  --text-color: #222;
  --heading-color: #565b57;
  --link-color: #2c3e50;
  --nav-color: #555;
}

[data-theme="dark"] {
  --bg-color: #1d1e22;
  --text-color: #d4d4dc;
  --heading-color: #fef3d2;
  --link-color: #468189;
  --nav-color: #468189;
}

/* === GLOBAL LAYOUT === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-color);
  font-size: 18px;
}

main {
  max-width: 650px;
  padding: 2rem 1rem;
  margin: 0 auto;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
  font-weight: 600;
  color: var(--heading-color);
  line-height: 1.2;
  margin-top: 2rem;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

p {
  margin: 1.25rem 0;
}

/* === LINKS & NAV === */
a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #393f4d;
}

nav a {
  margin: 0 1rem;
  font-size: 0.9rem;
  color: var(--nav-color);
  text-transform: uppercase;
}

nav a:hover {
  color: #393f4d;
}

/* === HEADER / FOOTER === */
header,
footer {
  text-align: center;
  margin-bottom: 3rem;
  color: #393f4d;
  font-size: 13px;
}

/* === COMPONENTS === */
/* === POST HEADER STYLING === */
.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 1rem 0;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ccc;
}

.author-avatar.fallback {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: white;
  background-color: #888;
  font-size: 1.2rem;
}

.author-text {
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--text-color);
}

.author-name {
  font-weight: bold;
  text-transform: uppercase;
}

.post-date {
  font-style: italic;
  color: #666;
}

.post-extras {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.comment-count {
  font-weight: bold;
}

.share-links a {
  margin-left: 0.3rem;
  text-decoration: none;
  font-size: 1.1rem;
}

.subtitle {
  font-size: 1.2rem;
  color: var(--heading-color);
  font-weight: 400;
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
}

.featured-image-inline {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  margin-top: 1.5rem;
  border-radius: 10px;
}

/* === POST TITLE === */
.post-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
}

.byline {
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #468189;
  margin-bottom: 1rem;
}

.featured-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  margin-bottom: 2rem;
  border-radius: 8px;
}

.comment-section {
  max-width: 640px;
  margin: 2rem auto 1rem;
}

.comment-hint {
  font-size: 0.80rem;
  color: #666;
  border-left: 2px solid #ccc;
  padding: 0.1rem 0.5rem;
  background-color: #f9f9f9;
  border-radius: 4px;
  line-height: 1.3;
}

.remark42__powered-by {
  display: none;
}

/* === VOTING SYSTEM === */
/* === SEASON VOTING === */
#season-voting {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

#season-voting h3 {
  margin-bottom: 0.5rem;
}

#season-voting .vote-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  justify-items: center;
}

#season-voting .vote-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
}

/* === NOTE VOTING === */
#note-voting {
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#note-voting .vote-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  justify-items: center;
  margin-top: 1rem;
}

#note-voting .vote-label {
  text-align: center;
  max-width: 100px;
}

#note-voting .note-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin: 0.3rem auto;
  display: block;
  border-radius: 6px;
}

/* === SHARED VOTE BUTTON === */
.vote-button {
  margin-top: 1.5rem;
  padding: 0.5rem 1.2rem;
  border: none;
  background-color: #222;
  color: #fff;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.vote-button:hover {
  background-color: #444;
}

/* === RESPONSIVE TWEAKS === */
@media (max-width: 500px) {
  #note-voting .note-image {
    width: 50px;
    height: 50px;
  }

  .vote-row {
    gap: 0.7rem;
  }
}

/* === RESULT BARS === */
.result-bar {
  width: 100%;
  margin: 0.5rem 0;
  background-color: #eee;
  border-radius: 6px;
  position: relative;
  height: 2rem;
  overflow: hidden;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.result-bar.show {
  opacity: 1;
  transform: translateY(0);
}

.result-fill {
  background-color: #468189;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 0%;
  transition: width 0.8s ease;
  border-radius: 6px 0 0 6px;
}

.result-label {
  position: relative;
  z-index: 2;
  padding: 0 0.75rem;
  font-weight: bold;
  color: #222;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

