/*
Theme Name: BTX Museum v3.4.2
Theme URI: https://example.com/btx-museum
Author: BTX MUSEUM
Description: BTX retro theme with Start menu, footer navigation 0←, date, and archives.
Version: 3.4.2
Text Domain: btx-museum
*/

/* === CUSTOM FONT === */
@font-face {
  font-family: 'EuropeanTeletextNuevo';
  src: url('fonts/EuropeanTeletextNuevo.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

:root {
  --btx-bg: #07184a;
  --btx-panel: #0f2a66;
  --btx-accent: #ffd500;
  --btx-light: #dfe9ff;
  --btx-border-dark: #03224f;
  --btx-border-light: #07307a;
  --page-width: 980px;
  --font-family: "EuropeanTeletextNuevo", monospace;
  --content-width: 70%;
  --sidebar-width: 30%;
}

/* === BASE === */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--btx-bg);
  color: var(--btx-light);
  font-family: var(--font-family);
  font-size: 18px;
  line-height: 1.45;
}

/* === LINKS === */
a, .sidebar a, .content a {
  color: var(--btx-accent);
  text-decoration: none;
}
a:hover, .sidebar a:hover, .content a:hover {
  text-decoration: underline;
}

/* === FRAME === */
.frame {
  max-width: calc(var(--page-width) + 64px);
  margin: 28px auto;
  padding: 12px;
  border-top: 8px solid var(--btx-border-dark);
  border-left: 8px solid var(--btx-border-dark);
  border-right: 8px solid var(--btx-border-dark);
  border-bottom: 8px solid var(--btx-border-dark);
  box-shadow: 0 8px 0 rgba(0,0,0,0.4);
}
.frame .site {
  background: var(--btx-panel);
  padding: 14px;
  border: 4px solid var(--btx-border-light);
}

/* === HEADER === */
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 6px;
}
.btx-logo-placeholder img {
  height: 56px;
}
.site-title {
  color: var(--btx-accent);
  font-size: 28px;
  margin: 0;
}

/* === MENU === */
.main-nav {
  margin-left: auto;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}
.main-nav a {
  color: var(--btx-accent);
  text-decoration: none;
  font-weight: 700;
}
.main-nav a:hover {
  text-decoration: underline;
}

/* === LAYOUT === */
.layout {
  display: flex;
  gap: 24px;
  padding: 18px 6px;
}
.content {
  width: var(--content-width);
}
.sidebar {
  width: var(--sidebar-width);
}

/* === CONTENT === */
.content .box {
  padding: 18px;
  border: 3px solid var(--btx-border-light);
  box-shadow: inset 0 0 0 2px var(--btx-border-dark);
}
.content h1 {
  color: var(--btx-accent);
  font-size: 24px;
}
.post-date {
  color: #fff;
  font-size: 14px;
  margin-top: 8px;
}

/* === SIDEBAR === */
.sidebar .box {
  padding: 12px;
  border: 2px solid var(--btx-border-light);
  background: transparent;
}
.sidebar h4 {
  color: var(--btx-accent);
}

/* === FOOTER === */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0000cc;
  color: var(--btx-accent);
  text-align: center;
  padding: 10px 12px;
  z-index: 9999;
  border-top: 4px solid var(--btx-border-dark);
}
.site-footer .inner {
  max-width: var(--page-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-footer a.back {
  color: var(--btx-accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 30px;
}
.site-footer a.back:hover {
  text-decoration: underline;
}
.site-footer .btx-number {
  font-size: 30px;
  font-weight: 700;
  color: var(--btx-accent);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }
  .content, .sidebar {
    width: 100%;
  }
  .site-footer .inner {
    flex-direction: column;
  }
}
