/* ======================
   CUSTOM FONTS
   ====================== */
@font-face {
  font-family: 'E4Digital';
  src: url('/fonts/E4 Digital Final.ttf') format('truetype');
}

@font-face {
  font-family: 'DotGothic';
  src: url('/fonts/DotGothic16-Regular.ttf') format('truetype');
}

/* ======================
   PAGE BACKGROUND
   ====================== */
body {
  margin: 0;
  min-height: 100vh;
  background-image: url(/images/pink_test.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  font-family: 'DotGothic', Arial, sans-serif;
}

/* ======================
   TYPOGRAPHY HELPERS
   ====================== */
h1, h2, h3, h4, h5, h6,
.title-font {
  font-family: 'E4Digital', Arial, sans-serif;
}

.body-font {
  font-family: 'DotGothic', Arial, sans-serif;
}

/* ======================
   OUTER FRAME
   ====================== */
.outer-frame {
  width: 95%;
  max-width: 1400px;
  background: #ff4fa3;
  border: 8px solid #000;
  border-radius: 18px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ======================
   TOP BANNER
   ====================== */
.top-banner {
  width: 100%;
  height: 150px;
  background-color: #ff6fbf;
  border-bottom: 8px solid #000;
  background-image: url(/images/border_circuits.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
  box-sizing: border-box;
  position: relative;
}

.banner-content {
  width: 100%;
  display: flex;
  align-items: center;
  padding-left: 240px; /* Aligns with iframe start (nav width + borders) */
}

.site-title {
  font-family: 'E4Digital', Arial, sans-serif;
  font-size: 56px;
  color: #000;
  text-shadow: 
    -2px -2px 0 #fff,
    2px -2px 0 #fff,
    -2px 2px 0 #fff,
    2px 2px 0 #fff,
    -2px 0 0 #fff,
    2px 0 0 #fff,
    0 -2px 0 #fff,
    0 2px 0 #fff;
}

/* ======================
   NOW PLAYING BOX
   ====================== */
.now-playing-box {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(to bottom, #ff79b8 0%, #ffb6d3 50%, #fff 100%);
  border: 3px solid #000;
  width: 380px;
}

.now-playing-label {
  background: #ff4fa3;
  color: #000;
  font-family: 'E4Digital', Arial, sans-serif;
  font-size: 12px;
  padding: 4px 8px;
  border-bottom: 3px solid #000;
  text-align: left;
}

.now-playing-content {
  display: flex;
  padding: 8px;
  gap: 8px;
  align-items: center;
}

.now-playing-video {
  width: 80px;
  height: 60px;
  flex-shrink: 0;
  background: #000;
  border: 3px solid #000;
  box-sizing: border-box;
}

.now-playing-video iframe {
  width: 100%;
  height: 100%;
}

.now-playing-info {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.now-playing-title {
  font-family: 'E4Digital', Arial, sans-serif;
  font-size: 11px;
  margin: 0 0 4px 0;
  color: #000;
}

.now-playing-track {
  font-family: 'DotGothic', monospace;
  font-size: 11px;
  margin: 0;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* Player Controls */
.player-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.control-btn {
  background: #ff4fa3;
  border: 2px solid #000;
  border-radius: 3px;
  width: 24px;
  height: 24px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}

.control-btn:hover {
  background: #ff79b8;
}

.volume-slider {
  flex: 1;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: #7a145a;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #ff4fa3;
  border: 2px solid #000;
  border-radius: 50%;
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: #ff4fa3;
  border: 2px solid #000;
  border-radius: 50%;
  cursor: pointer;
}

/* ======================
   CONTENT AREA (below banner)
   ====================== */
.window-row {
  display: grid;
  grid-template-columns: 230px 1fr 230px;
  gap: 0;
  width: 100%;
  min-height: 70vh;
  box-sizing: border-box;
}

/* ======================
   SIDE WINDOWS
   ====================== */
.side-window {
  background: #7a145a;
  padding: 15px;
  padding-top: 40px;
  box-sizing: border-box;
  position: relative;
  overflow: auto;
}

.side-window.left {
  border-right: 5px solid #000;
}

.side-window.right {
  border-left: 5px solid #000;
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ======================
   CENTER WINDOW
   ====================== */
.center-window {
  background: #e9bfe9;
  padding: 0;
  box-sizing: border-box;
  border: 10px solid #000;
}

/* ======================
   IFRAME (center content)
   ====================== */
.content-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #e9bfe9;
  display: block;
}

/* ======================
   PANEL LABELS
   ====================== */
.panel-label {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #ff4fa3;
  color: #000;
  font-family: 'E4Digital', Arial, sans-serif;
  font-size: 18px;
  padding: 6px 10px;
  border: 3px solid #000;
  border-top: none;
  border-radius: 0;
  text-align: center;
}

/* ======================
   NAV MENU
   ====================== */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-btn {
  display: block;
  background: linear-gradient(to bottom, #ff79b8 0%, #ffb6d3 50%, #fff 100%);
  background-attachment: fixed;
  color: #000;
  text-decoration: none;
  padding: 10px 15px;
  border: 3px solid #000;
  border-radius: 6px;
  font-family: 'E4Digital', Arial, sans-serif;
  font-weight: normal;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.nav-btn:hover {
  background: linear-gradient(to bottom, #ff79b8 0%, #ffb6d3 50%, #fff 100%);
  background-attachment: fixed;
  filter: brightness(1.1);
  transform: translateX(3px);
}

.nav-btn:active {
  transform: translateX(1px);
}

/* ======================
   RIGHT SIDEBAR - WINDOW BOXES
   ====================== */
.right-window {
  background: #0a0a0a;
  border: 3px solid #000;
  position: relative;
  box-sizing: border-box;
}

.right-window-label {
  background: #ff4fa3;
  color: #000;
  font-family: 'E4Digital', Arial, sans-serif;
  font-size: 12px;
  padding: 4px 8px;
  border-bottom: 3px solid #000;
  text-align: left;
}

/* ======================
   STATUS BOX
   ====================== */
.status-box {
  min-height: 80px;
  background: linear-gradient(to bottom, #ff79b8 0%, #ffb6d3 50%, #fff 100%);
}

.status-content {
  padding: 8px;
  color: #000;
  font-family: 'DotGothic', monospace;
  font-size: 12px;
}

/* ======================
   BLINKIES BOX
   ====================== */
.blinkies-box {
  background: linear-gradient(to bottom, #ff79b8 0%, #ffb6d3 50%, #fff 100%);
}

.blinkies-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 5px;
}

.blinkie {
  width: 100%;
  height: auto;
}

/* ======================
   BADGES BOX
   ====================== */
.badges-box {
  background: linear-gradient(to bottom, #ff79b8 0%, #ffb6d3 50%, #fff 100%);
}

.badges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 5px;
}

.badge {
  width: 100%;
  height: 31px;
  object-fit: fill;
  display: block;
}

/* ======================
   BUTTONS BOX
   ====================== */
.buttons-box {
  background: linear-gradient(to bottom, #ff79b8 0%, #ffb6d3 50%, #fff 100%);
}

.buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 5px;
}

.button-88x31 {
  width: 100%;
  height: 31px;
  object-fit: fill;
  display: block;
}

/* ======================
   WEBRINGS BOX
   ====================== */
.webrings-box {
  min-height: 60px;
  background: linear-gradient(to bottom, #ff79b8 0%, #ffb6d3 50%, #fff 100%);
}

.webrings-content {
  padding: 8px;
  color: #ff4fa3;
  font-family: 'DotGothic', monospace;
  font-size: 11px;
  text-align: center;
}

/* ======================
   CUSTOM SCROLLBARS
   ====================== */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #7a145a;
  border: 2px solid #000;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #ff79b8 0%, #ffb6d3 50%, #fff 100%);
  border: 2px solid #000;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #ff9fcf 0%, #ffc8e0 50%, #fff 100%);
}

::-webkit-scrollbar-corner {
  background: #7a145a;
}

/* Firefox */
* {
  scrollbar-width: auto;
  scrollbar-color: #ff79b8 #7a145a;
}

/* ======================
   RESPONSIVE SCALING
   ====================== */
/* Auto-scale the page to fit smaller viewports */
@media screen and (max-width: 1400px) {
  html {
    zoom: 0.85;
  }
}

@media screen and (max-width: 1200px) {
  html {
    zoom: 0.75;
  }
}

@media screen and (max-width: 1000px) {
  html {
    zoom: 0.65;
  }
}

@media screen and (max-width: 850px) {
  html {
    zoom: 0.55;
  }
}

@media screen and (max-width: 700px) {
  html {
    zoom: 0.45;
  }
}
