/* updates.ktown.team — minimal */

:root {
  --navy: #070A61;
  --blue: #0075F2;
  --golden: #070A61;
  --bg: #FAFAFA;
  --text: #070A61;
  --text-mid: #070A61;
  --text-light: #8A8DB5;
  --border: #E8E8E8;
  --green: #2D8C5C;
  --red: #C45454;
}

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

body {
  font-family: 'Sofia Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--text-mid); text-decoration: none; }
a:hover { color: var(--text); }
button { font-family: inherit; }

/* Header — thin bar */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.site-logo {
  font-family: 'Cubano', sans-serif;
  font-size: 1rem;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.site-logo span {
  color: var(--golden);
  font-weight: 400;
}

.lang-switch {
  display: flex;
  gap: 0.4rem;
}
.lang-switch a {
  color: var(--text-light);
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
  text-decoration: none;
}
.lang-switch a.current {
  color: var(--navy);
}
.lang-switch a:hover {
  color: var(--navy);
}

/* Main */
main {
  flex: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

.page-intro {
  margin-bottom: 1.5rem;
}
.page-intro h1 {
  font-family: 'Sofia Pro', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.1rem;
}
.page-intro p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Release block */
.release {
  margin-bottom: 2rem;
}

.release-date {
  font-family: 'Sofia Pro', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Section card — no card styling, just grouped */
.update-card {
  margin-bottom: 1.25rem;
}

.update-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.update-card h3 a {
  color: var(--text);
}
.update-card h3 a:hover {
  color: var(--blue);
}

.update-card ul {
  list-style: none;
  padding: 0;
}

/* Badge — hidden */
.badge { display: none; }

/* --- Items --- */

.item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}
.item:last-child {
  border-bottom: none;
}

/* Vote column */
.item-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
  flex-shrink: 0;
  padding-top: 2px;
}

.vote-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.5rem;
  color: var(--text-light);
  padding: 0;
  line-height: 1;
}
.vote-btn:hover { color: var(--text); }
.vote-btn.vote-up.active { color: var(--green); }
.vote-btn.vote-down.active { color: var(--red); }
.vote-btn:disabled { opacity: 0.3; }

.vote-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.3;
  text-align: center;
}
.vote-count.positive { color: var(--green); }
.vote-count.negative { color: var(--red); }

/* Content column */
.item-content {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.item-text {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.5;
}

.comment-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  color: var(--text-light);
  padding: 0;
  margin-left: 0.5rem;
}
.comment-toggle:hover {
  color: var(--text-mid);
}

/* Comment panel */
.comment-panel {
  width: 100%;
  margin-top: 0.4rem;
  padding-left: 28px;
}

.comment-list {
  margin-bottom: 0.5rem;
}

.comment {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}
.comment:last-child {
  border-bottom: none;
}
.comment-meta {
  font-size: 0.7rem;
  margin-bottom: 0.1rem;
}
.comment-meta strong {
  color: var(--text);
  font-weight: 600;
}
.comment-time {
  color: var(--text-light);
  margin-left: 0.35rem;
}
.comment p {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.4;
}

.no-comments {
  font-size: 0.75rem;
  color: var(--text-light);
  font-style: italic;
}

/* Comment form */
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.comment-author {
  font-family: inherit;
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
  width: 180px;
  max-width: 100%;
}
.comment-author:focus { border-color: var(--text-light); }

.comment-body {
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
  resize: vertical;
  min-height: 50px;
}
.comment-body:focus { border-color: var(--text-light); }

.comment-submit {
  align-self: flex-start;
  background: var(--text);
  color: #fff;
  border: none;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.comment-submit:hover { background: var(--navy); }
.comment-submit:disabled { opacity: 0.4; cursor: not-allowed; }

/* Footer — minimal */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: var(--text-light);
  font-size: 0.75rem;
}
.footer-links a:hover { color: var(--text-mid); }
.site-footer p {
  font-size: 0.7rem;
  color: var(--text-light);
}
.site-footer p a { color: var(--text-light); }

/* Dark mode — AMOLED */
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #FFFFFF;
    --blue: #4DA3FF;
    --golden: #FFFFFF;
    --bg: #000000;
    --text: #E0E0E0;
    --text-mid: #B0B0B0;
    --text-light: #666;
    --border: #1A1A1A;
    --green: #4ADE80;
    --red: #F87171;
  }
  .comment-author,
  .comment-body {
    background: #0A0A0A;
    color: var(--text);
  }
  .comment-submit {
    background: #E0E0E0;
    color: #000;
  }
  .comment-submit:hover {
    background: #FFF;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .site-header { padding: 0.5rem 1rem; }
  main { padding: 1rem 1rem 2rem; }
  .page-intro h1 { font-size: 1.15rem; }
  .update-card h3 { font-size: 0.8rem; }
  .item-text { font-size: 0.8rem; }
  .item-vote { width: 24px; }
  .comment-panel { padding-left: 24px; }
  .comment-author { width: 100%; }
}
