:root {
  --text: #000000;
  --link: #0000ff;
  --link-visited: #551a8b;
  --accent: #ff0000;

  /* Narrower -> less “empty” space in sidebars */
  --side-col: clamp(140px, 10vw, 160px);

  /* GeoCities-ish blue (more opaque) */
  --side-blue-a: #d7dcff;
  --side-blue-b: #b6beff;
  --side-blue-c: #9fa9ff;

  /* Winamp footer height */
  --player-h: 72px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-bottom: var(--player-h);

  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 12px;
  color: var(--text);

  background-color: #000;
  background-image: url("../assets/bg/bckgrnd1_seamless.gif");
  background-repeat: repeat;
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Decorative side columns (independent from the tiled background) --- */
html {
  position: relative;
}

html::before,
html::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  width: var(--side-col);
  pointer-events: none;
  z-index: 0;

  /* Retro, more solid + subtle stripes */
  background: linear-gradient(
      to bottom,
      var(--side-blue-a) 0%,
      var(--side-blue-b) 55%,
      var(--side-blue-a) 100%
    ),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.45) 0px,
      rgba(255, 255, 255, 0.45) 1px,
      rgba(0, 0, 0, 0) 1px,
      rgba(0, 0, 0, 0) 7px
    ),
    linear-gradient(to right, var(--side-blue-c) 0%, rgba(0, 0, 0, 0) 70%);

  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

html::before {
  left: 0;
  border-right: 2px solid rgba(0, 0, 0, 0.18);
}

html::after {
  right: 0;
  transform: scaleX(-1);
  border-left: 2px solid rgba(0, 0, 0, 0.18);
}

/* Content above overlays */
.page {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0; /* no side padding => side content sits inside columns */
}

/* --- Layout --- */
.layout {
  width: 100%;
  display: grid;
  grid-template-columns: var(--side-col) minmax(0, 1fr) var(--side-col);
  gap: clamp(10px, 1.2vw, 16px);
  align-items: start;
  padding-block: clamp(10px, 2vw, 18px);
}

/* Sidebar padding: tighter */
.col-left {
  padding: 8px 6px;
  justify-self: start;
}

.col-right {
  padding: 10px 6px;
  justify-self: end;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Main content panel */
.col-main {
  position: relative;
  min-width: 0;

  background: rgba(255, 255, 255, 0.78);
  border: 2px solid #000;
  padding: 12px;

  max-width: 900px;
  justify-self: center;
  width: 100%;
}

/* --- Pieces --- */
.logo {
  display: block;
  width: min(130px, 100%);
  height: auto;
}

.welcome-img {
  display: block;
  width: min(160px, 100%);
  height: auto;
  margin: 10px 0;
}

.title-img {
  display: block;
  width: min(306px, 100%);
  margin: 0 auto;
}

.nav-title {
  margin: 10px 0 6px 0;
  font-weight: bold;
  color: var(--accent);
  font-size: 12px;
}

.nav a {
  color: var(--link);
  text-decoration: underline;
}

.nav a:visited {
  color: var(--link-visited);
}

.center {
  text-align: center;
}

.box {
  background: #ffffff;
  border: 2px solid #000;
  padding: 8px;
  margin: 10px 0;
}

.col-main .box {
  border-width: 1px;
}

.box-title {
  font-weight: bold;
  margin-bottom: 6px;
}

.box-right {
  border-width: 1px;
  width: min(240px, 100%);
  text-align: left;
}

.list {
  margin: 0;
  padding-left: 18px;
}

.tiny {
  font-size: 11px;
  line-height: 1.35;
}

.clock {
  margin: 0;
}

.clock-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 4px 0;
  flex-wrap: wrap;
}

.clock-label {
  display: inline-block;
  min-width: 48px;
}

.clock input {
  max-width: 100%;
}

/* badge area: now with spacing */
.badge-row {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* --- Responsive --- */
@media (max-width: 980px) {
  .layout {
    grid-template-columns: var(--side-col) minmax(0, 1fr);
    grid-template-areas:
      "left main"
      "right right";
  }

  .col-left {
    grid-area: left;
  }
  .col-main {
    grid-area: main;
  }
  .col-right {
    grid-area: right;
    align-items: flex-end;
  }
}

@media (max-width: 720px) {
  :root {
    --player-h: 84px;
  }

  html::before,
  html::after {
    width: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "left"
      "main"
      "right";
  }

  .col-left,
  .col-right {
    padding: 10px;
    align-items: flex-start;
    justify-self: stretch;
  }

  .logo {
    width: min(160px, 100%);
  }

  .welcome-img {
    width: min(220px, 100%);
  }
}

/* --- 2000s snow overlay --- */
#snow-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* --- Winamp footer --- */
.winamp {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--player-h);
  z-index: 12000;

  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 180px;
  align-items: center;
  gap: 10px;

  padding: 8px 12px;

  /* Winamp-ish bevel + gradient */
  background: linear-gradient(#d9d9d9, #bdbdbd);
  border-top: 3px solid #ffffff;
  box-shadow: 0 -2px 0 #000, 0 -4px 0 rgba(0, 0, 0, 0.15);

  font-family: Verdana, Tahoma, Arial, sans-serif;
  color: #000;
}

.winamp-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.winamp-btn {
  width: 44px;
  height: 34px;
  border: 2px outset #c0c0c0;
  background: #e6e6e6;
  cursor: pointer;
  font-weight: 700;
}

.winamp-btn:active {
  border: 2px inset #c0c0c0;
}

.winamp-mid {
  min-width: 0;
}

.winamp-title {
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 12px;
}

.winamp-marquee {
  margin-top: 3px;
  border: 1px solid #000;
  background: #fff;
  padding: 3px 6px;

  overflow: hidden;
  height: 22px;
  line-height: 16px;
  position: relative;
}

.winamp-marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  will-change: transform;
  animation: marquee-scroll 5s linear infinite;
  padding-left: 100%;
}

.winamp-marquee-text {
  white-space: nowrap;
  padding-right: 28px;
  font-size: 12px;
}

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

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  .winamp-marquee-inner {
    animation: none;
  }
}

.winamp-status {
  margin-top: 4px;
  font-size: 11px;
  min-height: 14px;
}

.winamp-right {
  display: flex;
  justify-content: flex-end;
}

.winamp-vol {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
}

.winamp-vol input {
  width: 120px;
}

/* Tiny “EQ” animation */
.winamp-eq {
  display: inline-flex;
  gap: 3px;
  align-items: flex-end;
  width: 40px;
  height: 24px;
}

.winamp-eq span {
  width: 6px;
  height: 6px;
  background: #1bd400;
  border: 1px solid #000;
  animation: eq 0.6s infinite ease-in-out;
  animation-play-state: paused;
}

.winamp.is-playing .winamp-eq span {
  animation-play-state: running;
}

.winamp-eq span:nth-child(2) {
  animation-delay: 0.1s;
}
.winamp-eq span:nth-child(3) {
  animation-delay: 0.2s;
}
.winamp-eq span:nth-child(4) {
  animation-delay: 0.05s;
}
.winamp-eq span:nth-child(5) {
  animation-delay: 0.15s;
}

@keyframes eq {
  0% {
    height: 6px;
  }
  50% {
    height: 22px;
  }
  100% {
    height: 8px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .winamp {
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto auto;
    height: var(--player-h);
  }

  .winamp-right {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .winamp-vol input {
    width: 160px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .winamp-marquee {
    animation: none;
  }
  .winamp-eq span {
    animation: none;
  }
}

/* --- Header stack (main) --- */
.header-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.uc-strip {
  display: block;
  width: min(100%, 574px);
  height: auto;
  image-rendering: pixelated;
}

.welcome-main {
  display: block;
  width: min(260px, 100%);
  height: auto;
  margin: 10px auto 0 auto;
  image-rendering: pixelated;
}

/* --- (ESKİ HALİYLE) STATUS --- */
.status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.status-label {
  font-weight: 700;
}

.status-icon {
  display: block;
  image-rendering: pixelated;
}

/* --- NEW: extra gif/button layout helpers --- */
.side-section {
  margin-top: 10px;
}

.buttons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.buttons-grid img {
  image-rendering: pixelated;
}

.blinkies-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.blinkies-row img {
  image-rendering: pixelated;
}

.my-button {
  display: inline-block;
}

.hit-row img {
  image-rendering: pixelated;
}

.new-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  width: 28px;
  height: auto;
  image-rendering: pixelated;
}

.divider-img {
  display: block;
  margin: 10px 0;
  width: 100%;
  max-width: 100%;
  image-rendering: pixelated;
}

.divider-main {
  margin: 12px 0;
}

.buttons-wall {
  margin: 10px 0 6px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.buttons-wall img {
  image-rendering: pixelated;
}
