/* Base Layout and Core Styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Arimo Nerd Font Propo', monospace;
}

body {
  background-color: #1a1a1a;
  color: #e3e3e3;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/page/red\ blood\ cells.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: grayscale(100%);
  opacity: 0.7;
  z-index: -1;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #5b5b5b;
  box-shadow: inset 1px 1px 1px #222, inset -1px -1px 1px #222;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(0deg, #181818 0%, #4d4d4d 98%);
  border-radius: 3px;
  box-shadow: inset 1px 1px 1px #111;
}

::selection {
  background-color: #767676;
  color: white;
}

/* Global link colors */
a {
  color: #27F5BB;
  transition: color 0.3s ease;
}

a:visited {
  color: #D9BCF7;
}

a:hover {
  color: #27F5BB;
  opacity: 0.8;
}

/* Main layout structure */
.container {
  max-width: 60%;
  max-height: calc(100dvh - 24px);
  margin: 12px auto;
  display: flex;
  flex-direction: column;
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: linear-gradient(180deg, #000000 0%, #181818 98%);
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  padding: 10px;
  color: #e3e3e3;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.mobile-nav-toggle:hover {
  background: linear-gradient(180deg, #181818 0%, #333333 98%);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
}

.banner {
  background-color: #333;
  font-family: 'VCR OSD Mono', monospace !important;
  font-size: 30pt;
  color: white;
  text-align: right;
  padding: 20px;
  font-weight: bold;
  background-image: url("../images/page/impressions.jpg");
  background-size: 100%;
  background-position-y: 625px;
  height: 129px;
  border: 1px inset #e7e7e7;
  border-radius: 12px 12px 0px 0px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  text-shadow: 
    -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
  flex-shrink: 0;
}

.banner a {
  color: inherit;
  text-decoration: none;
  font-family: 'VCR OSD Mono', monospace !important;
}

.banner a:hover {
  color: inherit;
  text-decoration: none;
}

/* Content layout */
.content {
  display: flex;
  flex: 0 1 auto;
  min-height: 0;
  overflow: hidden;
  text-align: left;
}

.left-box {
  width: 20%;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  max-height: calc(100dvh - 200px);
  min-height: 0;
}

.right-box {
  width: 100%;
  background-color: #414141;
  padding: 6px;
  border-left: solid 1px #000000;
  box-shadow: inset 0 0 5px 0px #000000;
  border-radius: 0px 0px 10px 10px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  text-align: left;
}

/* Music player */
.music-player {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: #333;
  border: 1px solid #000000;
  background: linear-gradient(0deg, #181818 0%, #4d4d4d 98%);
  box-shadow: inset 0 0 5px #000000;
  flex-shrink: 0;
}

.marquee-wrapper {
  width: 200px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  border: 1px solid #ccc;
  background: #ffffff;
  box-shadow: inset 0 0 2px #454545;
  padding: 3px 0px 3px 6px;
  border-radius: 10px;
  font-size: 10px;
  color: #767676;
  margin: 5px;
}

.marquee-content {
  animation: marquee-scroll 8s linear infinite;
}

@keyframes marquee-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress {
  flex-grow: 1;
  height: 8px;
  margin: 0 20px;
  background: #d3d3d3;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 1px 1px 3px #a0a4a8;
}

.progress-bar {
  height: 100%;
  background: #838383;
  transition: width 0.2s;
  border-radius: 10px;
  box-shadow: inset 0 0 3px #252525;
}

/* Responsive Design for Mobile */
@media screen and (max-width: 1200px) {
  .container {
    max-width: 75%;
  }
  
  .banner {
    font-size: 24pt;
    padding: 15px;
  }
}

@media screen and (max-width: 900px) {
  .container {
    max-width: 90%;
  }
  
  .banner {
    font-size: 20pt;
    padding: 12px;
  }
}

/* Mobile Layout */
@media screen and (max-width: 768px) {
  .container {
    max-width: 95%;
    margin: 8px auto;
  }
  
  .banner {
    font-size: 18pt;
    padding: 10px;
    height: auto;
    min-height: 80px;
  }
  
  .content {
    flex-direction: column;
    position: relative;
  }
  
  /* Show mobile navigation toggle */
  .mobile-nav-toggle {
    display: block;
  }
  
  .mobile-nav-overlay {
    display: none;
  }
  
  .mobile-nav-overlay.active {
    display: block;
  }
  
  /* Left navigation - hidden by default on mobile */
  .left-box {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1001;
    transition: left 0.3s ease-in-out;
    padding: 80px 0 20px 0;
    overflow-y: auto;
    border-right: 2px solid #333;
  }
  
  .left-box.mobile-nav-open {
    left: 0;
  }
  
  /* Right box takes full width on mobile */
  .right-box {
    width: 100%;
    border-left: none;
    border-radius: 0 0 10px 10px;
  }
  
  /* Music player adjustments for mobile */
  .music-player {
    /* flex-direction: column; */
    gap: 10px;
    /* padding: 15px 10px; */
  }
  
  .marquee-wrapper {
    width: 100%;
    max-width: 280px;
  }
  
  .controls {
    gap: 8px;
  }
  
  .progress {
    margin: 0 10px;
  }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
  .container {
    max-width: 98%;
    margin: 5px auto;
  }
  
  .banner {
    font-size: 16pt;
    padding: 8px;
    text-align: center;
  }
  
  .left-box {
    width: 90%;
  }
  
  .music-player {
    padding: 10px 5px;
  }
  
  .marquee-wrapper {
    width: 100%;
    max-width: 250px;
  }
}

/* Ensure navigation links are touch-friendly on mobile */
@media screen and (max-width: 768px) {
  .link-box {
    padding: 12px 8px;
    font-size: 12pt;
    border-radius: 8px;
    margin: 2px 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .nav-title {
    padding: 15px;
    font-size: 14pt;
    margin: 0 8px 10px 8px;
    border-radius: 8px;
  }
}
