/* === FEEDIGITAL LCD + Liquid Glass palette ===
   - H1/Logo: Orbitron (fallbacks)
   - Body/UI: Satoshi (fallbacks)
   - Base: greyscale LCD with blurred gradient
   - Accents: Navy (#001F3F) and Maroon (#800000)
*/

/* -------- Base document -------- */
html, body {
  margin: 0;
  padding: 0;
  font-family: "Satoshi", "Inter", system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans",
               sans-serif;
  font-size: .80em;
  color: #E6E6E6;
  background: radial-gradient(1200px 800px at 20% 15%, #4b4f54 0%, #2f3337 45%, #1a1d20 100%) fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 80% 20%, rgba(255,255,255,0.10), rgba(255,255,255,0) 60%),
    radial-gradient(700px 500px at 10% 80%, rgba(0,0,0,0.25), rgba(0,0,0,0) 60%);
  filter: blur(18px);
  opacity: .9;
  z-index: -1;
}

/* -------- Layout containers -------- */
.container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.header {
  flex: 1;
  background: #d98806e0;
  color: #E6E6E6;
  display: flex;
  align-items: center;
  justify-content: left;
  font-weight: 900;
  font-style: normal;
  padding-left: 15px;
}

.header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 6.5em;
  color: transparent;
  background: #E6E6E6;
  background-clip: text;
  -webkit-background-clip: text;
  font-weight: 800;
  filter: drop-shadow(inset 0 2px 6px rgba(0,0,0,0.6));
}

h1 {
  font-family: "Orbitron", "Eurostile", "Microgramma",
               "Bank Gothic", "Arial Black", Impact, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

/* -------- Carousel -------- */
.carousel-container {
  flex: none;
  height: 50vh;
  margin-bottom: 20vh;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  display: flex;
  overflow-x: auto;
  padding: 1rem;
  gap: 1rem;
  scroll-behavior: smooth;
}

.cover {
  min-width: 200px;
  width: 440px;
  background: rgba(20, 22, 25, 0.25);
  color: #F0F2F4;
  border: 1px solid rgba(255,255,255,0.10);
  border-top-left-radius: 12px;
  border-top-right-radius: 72px;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
  padding: 1rem;
  cursor: crosshair;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 90%;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.cover h1 {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 0 0.5rem 0;
}

.cover blockquote, .cover p { margin: 0; }
blockquote { font-style: italic; }
.cover.active { transform: scale(1.05); z-index: 10; }

/* -------- Accordion -------- */
.accordion {
  display: flex;
  position: absolute;
//  background: rgba(255,255,255,0.06);

  background: rgba(25, 25, 25, 0.46);

  color: #D0D3D6;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  padding: 0rem;
  animation: growIn 0.4s ease-out;
  gap: 1rem;
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.accordion .cover-preview {
  background: rgba(20, 22, 25, 0.9);
  color: #F0F2F4;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.10);
  flex: 2;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.accordion .cover-preview h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 3.7rem;
  margin: 0;
  font-family: "Orbitron", sans-serif;
}
.accordion .cover-preview blockquote { font-size: 1rem; margin: 0 0 0.5rem 0; color: #A9AEB4; }
.accordion .cover-preview p { font-size: 1.5rem; margin: 0; }

/* --- DEFINITIVE FIX for scrolling columns --- */
.column {
  flex: 1;
  padding: 1rem;
  min-width: 200px;
  box-sizing: border-box;
  overflow-y: auto; /* Enables vertical scrolling when content overflows */
  display: flex;
  flex-direction: column;
  /* justify-content: flex-end; <-- This line was removed to allow content to start from the top and scroll correctly */
}

.column a{ color: white; font-weight: 800; text-decoration: none; }
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1010;
  color: #E6E6E6;
}
@media (max-width: 768px) {
  .accordion { flex-direction: column; }
  .accordion .cover-preview { flex: none; width: 100%; }
}
@keyframes growIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
#leftCol   { background: rgba(230,230,235,0.04); }
#rightCol  { background: rgba(230,230,235,0.03); }
#foreignCol{ background: rgba(230,230,235,0.02); }
#leftCol h3, #rightCol h3 { margin:.2em 0 0; font-size:1rem; }
.cover.left     { border-left: 6px solid #001F3F; }
.cover.right    { border-left: 6px solid #800000; }
.cover.foreign  { border-left: 6px solid rgba(255,255,255,0.22); }

/* -------- Scrollbar & Clock -------- */
.carousel-container::-webkit-scrollbar,
.column::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}
.carousel-container::-webkit-scrollbar-track,
.column::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
}
.carousel-container::-webkit-scrollbar-thumb,
.column::-webkit-scrollbar-thumb {
    background: #001F3F;
    border-radius: 6px;
}
.carousel-container::-webkit-scrollbar-thumb:hover,
.column::-webkit-scrollbar-thumb:hover {
    background: #800000;
}

#date-time {
  position: fixed;
  bottom: 15px;
  right: 20px;
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5em;
  font-weight: 800;
  color: rgba(230,230,230,0.2);
  text-align: right;
  display:inline-block;
  width: 28ch;
  pointer-events: none;
  z-index: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.clock-display {font-family: 'Orbitron', sans-serif;}


/* --- Collapsible Section Styles --- */
.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
    position: relative;
}
.collapsible-header h3 {
    margin: 0;
}


.collapsible-indicator {
    font-size: 1.5em;
    font-weight: bold;
    color: #aaa;
    display: inline-block;
}
.collapsible-content {
    overflow: hidden;
    max-height: 0; /* Content is hidden by default */
    transition: max-height 0.3s ease-out;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.2);
    margin-left: 4px;
}
.collapsible-content.is-open {
    max-height: 1000px; /* Animate to open */
}

