/* --- THE GRID BASE --- */
body {
  background-color: #0a0a0a;
  color: #d1d1d1;
  font-family: 'Courier New', Courier, monospace;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- HEADER --- */
.loft-header {
  padding: 20px;
  background: #111;
  border-bottom: 1px solid #333;
  text-align: center;
}

.loft-header h1 {
  margin: 0;
  color: #ffb86c; /* Our core amber */
  letter-spacing: 6px; /* Spaced out for that retro-future feel */
  font-size: 1.8rem;
  text-transform: uppercase;
  
  /* The Glow Layering */
  text-shadow: 
    0 0 5px rgba(255, 184, 108, 0.4),
    0 0 10px rgba(255, 184, 108, 0.2),
    0 0 20px rgba(255, 184, 108, 0.1);
    
  /* A subtle flicker animation */
  animation: flicker 4s infinite alternate;
}

/* The "Pulse" of the loft */
@keyframes flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: 
      0 0 5px rgba(255, 184, 108, 0.4),
      0 0 10px rgba(255, 184, 108, 0.2);
  }
  20%, 24%, 55% {        
    text-shadow: none;
    color: #444; /* Dims for a split second like an old neon sign */
  }
}

/* --- THE GRID WRAPPER --- */
.grid-wrapper {
  display: grid;
  grid-template-columns: 250px 1fr;
  flex-grow: 1;
}

/* --- SIDEBAR --- */
.sidebar {
  background: #0d0d0d;
  border-right: 1px solid #333;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.nav-links a {
  display: block;
  color: #bd93f9;
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid #1a1a1a;
}

.nav-links a:hover {
  color: #f1fa8c;
}

/* --- MAIN CONTENT --- */
.content-main {
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #050505;
}

.container {
  max-width: 600px;
  width: 100%;
  background: #161616;
  padding: 25px;
  border: 1px solid #333;
}

/* --- MUSIC PLAYER --- */
.music-player { padding: 10px; background: #000; border: 1px dashed #444; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.record-spin { width: 30px; height: 30px; background: #222; border-radius: 50%; border: 1px solid #333; display: flex; justify-content: center; align-items: center; animation: spin 3s linear infinite; }
.record-dot { width: 8px; height: 8px; background: #ffb86c; border-radius: 50%; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.song-info { font-size: 0.8em; }

/* --- THE BUTTON SHELF --- */
.button-shelf {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid #222;
}

.button-shelf h4 {
  font-size: 0.7em;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, 88px);
  gap: 5px;
}

.empty-slot {
  width: 88px;
  height: 31px;
  background: #050505;
  border: 1px dashed #222;
}

.button-note {
  font-size: 0.6em;
  color: #444;
  margin-top: 10px;
}

/* --- THE PIXEL BUTTON --- */
.loft-pixel-button {
  width: 86px;
  height: 29px;
  border: 1px solid #1a1a1a;
  background-color: #0d0d0d;
  background-image: linear-gradient(0deg, #111 50%, transparent 50%),
                    linear-gradient(90deg, #111 50%, transparent 50%);
  background-size: 2px 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(255, 184, 108, 0.2);
}

.loft-pixel-button span { font-size: 6px; color: #bd93f9; letter-spacing: 2px; line-height: 1; }
.loft-pixel-button strong { font-size: 11px; color: #ffb86c; letter-spacing: 1px; line-height: 1.1; font-weight: normal; }

/* --- POLAROID --- */
.polaroid { 
  background: #fdfdfd; 
  padding: 15px 15px 35px 15px; 
  margin-top: 25px; 
  color: #222; 
  text-align: center; 
  font-size: 13px; 
  transform: rotate(-1deg); 
  max-width: 300px; 
  margin-left: auto;
  margin-right: auto;
}
.polaroid img { 
  width: 100%; 
  height: auto; 
  display: block; 
  margin-bottom: 15px; 
}
  /* --- THE BLOG (THE FREQUENCY) --- */
.blog-container {
  max-width: 700px;
  width: 100%;
}

.post {
  background: #111;
  border: 1px solid #222;
  padding: 30px;
  margin-bottom: 40px;
  position: relative;
}

.post-date {
  font-size: 0.7em;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.post-title {
  color: #ffb86c;
  margin-top: 0;
  font-size: 1.4rem;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 10px;
}

.post-content p {
  line-height: 1.6;
  color: #ccc;
}

/* Styling for Lux's quotes in the blog */
blockquote {
  border-left: 3px solid #bd93f9;
  margin: 20px 0;
  padding: 10px 20px;
  background: #0d0d0d;
  font-style: italic;
  color: #bd93f9;
}
  /* --- RESPONSIVE MODE (For Phones) --- */
@media screen and (max-width: 768px) {
  
  /* Stack the Sidebar on top of the Content */
  .grid-wrapper {
    display: flex;
    flex-direction: column;
  }

  /* Make the sidebar full width */
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #333;
    box-sizing: border-box;
  }

  /* Make the content area full width */
  .content-main {
    padding: 20px;
  }

  /* Shrink the container slightly for small screens */
  .container {
    padding: 15px;
  }

  /* Align the button grid to the center on mobile */
  .button-grid {
    justify-content: center;
  }
}
  /* --- THE VAULT: TERMINAL AESTHETIC --- */
.terminal-frame {
  position: relative;
  background: #0a0a0a;
  border: 2px solid #333;
  padding: 30px;
  font-family: 'Courier New', Courier, monospace;
  color: #ffb86c; /* Keeping it amber */
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 0 15px rgba(255, 184, 108, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 600px;
}

/* The Scanline Effect */
.scanlines {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
              linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 3px 100%;
  pointer-events: none;
  z-index: 2;
}

.terminal-header {
  font-size: 0.8rem;
  margin-bottom: 20px;
  opacity: 0.8;
}

.directory {
  display: block;
  background: rgba(255, 184, 108, 0.1);
  padding: 2px 5px;
  margin-top: 15px;
  font-weight: bold;
}

.data-entry {
  margin: 10px 0 20px 15px;
  line-height: 1.4;
}
  
  
}
.polaroid img { width: 100%; height: auto; display: block; margin-bottom: 15px; }