/* rogero.pag3.top — custom stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #e62929;
  --red-dark: #c01f1f;
  --bg: #1a1a1a;
  --bg2: #242424;
  --bg3: #2e2e2e;
  --text: #e8e8e8;
  --text-muted: #999;
  --border: #3a3a3a;
  --max-w: 820px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; color: #ff4444; }
h1, h2, h3 { line-height: 1.3; font-weight: 700; color: #fff; }
h1 { font-size: 1.9rem; margin-bottom: 1rem; }
h2 { font-size: 1.4rem; margin: 1.5rem 0 0.75rem; }
h3 { font-size: 1.1rem; margin: 1rem 0 0.5rem; }
p { margin-bottom: 0.9rem; }
ol, ul { margin: 0.5rem 0 0.9rem 1.5rem; }
li { margin-bottom: 0.3rem; }
strong { color: #fff; }
iframe { max-width: 100%; border: none; display: block; margin: 1rem 0; border-radius: 6px; }

/* ── Header ── */
header {
  background: var(--bg2);
  border-bottom: 2px solid var(--red);
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.6rem 0;
}
.logo {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo span { color: var(--red); }
.logo:hover { color: #fff; text-decoration: none; }

/* ── Nav ── */
nav { flex: 1; }
.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.1rem;
  margin: 0;
  padding: 0;
}
.nav-menu li { margin: 0; }
.nav-menu a {
  display: block;
  padding: 0.3rem 0.65rem;
  color: var(--text);
  font-size: 0.88rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active { background: var(--red); color: #fff; text-decoration: none; }

/* ── Lang switcher ── */
.lang-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-left: auto;
  flex-shrink: 0;
}
.lang-switcher a {
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.lang-switcher a:hover,
.lang-switcher a.current { color: #fff; border-color: var(--red); background: var(--red); text-decoration: none; }

/* ── Main content ── */
main {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  flex: 1;
}

/* ── Download button ── */
.download-btn {
  display: inline-block;
  background: var(--red);
  color: #fff !important;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  margin: 1.2rem 0;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 4px 15px rgba(230,41,41,0.35);
  text-decoration: none !important;
  letter-spacing: 0.2px;
}
.download-btn:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230,41,41,0.45);
  text-decoration: none !important;
}
.download-wrap { margin: 1.5rem 0; }

/* ── Warning box ── */
.notice {
  background: #2a1f1f;
  border-left: 3px solid var(--red);
  padding: 0.75rem 1rem;
  border-radius: 0 6px 6px 0;
  margin: 1rem 0;
  font-size: 0.92rem;
}

/* ── Version cards ── */
.version-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
  list-style: none;
  padding: 0;
}
.version-list li { margin: 0; }
.version-list a {
  display: block;
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s;
}
.version-list a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  text-decoration: none;
}

/* ── News sidebar / section ── */
.latest-news {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  margin: 2rem 0;
}
.latest-news h3 { margin-top: 0; font-size: 1rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.latest-news ul { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.latest-news li { margin: 0; border-bottom: 1px solid var(--border); }
.latest-news li:last-child { border-bottom: none; }
.latest-news a { display: block; padding: 0.55rem 0; color: var(--text); font-size: 0.9rem; }
.latest-news a:hover { color: var(--red); text-decoration: none; }

/* ── Breadcrumbs ── */
.breadcrumbs {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs span { color: var(--text-muted); margin: 0 0.3rem; }

/* ── HR ── */
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ── Footer ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  padding: 0;
  margin: 0;
}
.footer-nav a { color: var(--text-muted); font-size: 0.85rem; }
.footer-nav a:hover { color: var(--red); }
.footer-copy { color: var(--text-muted); }

/* ── News article ── */
article.news-post h1 { font-size: 1.6rem; }
article.news-post img { max-width: 100%; height: auto; border-radius: 6px; margin: 1rem 0; }
article.news-post p:first-of-type { font-size: 1.05rem; }

/* ── Tag / category pages ── */
.tag-list { list-style: none; padding: 0; margin: 1rem 0; }
.tag-list li { border-bottom: 1px solid var(--border); }
.tag-list a { display: block; padding: 0.6rem 0; color: var(--text); }
.tag-list a:hover { color: var(--red); text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  .header-inner { gap: 0.5rem; }
  .nav-menu { gap: 0.2rem 0.1rem; }
  .nav-menu a { font-size: 0.82rem; padding: 0.25rem 0.5rem; }
  .lang-switcher { gap: 2px; }
  .lang-switcher a { font-size: 0.65rem; padding: 2px 4px; }
  .download-btn { font-size: 1rem; padding: 0.7rem 1.5rem; }
  .version-list { grid-template-columns: repeat(3, 1fr); }
}
