/**
 * winamp.css — classic Winamp 2.x skin for the section "boxes".
 * Turns every .section into a little beveled Winamp window with a
 * pinstriped titlebar, LCD-green title text, and a shade/collapse button.
 */

/* ---- window frame ---- */
/* windows stack flush against each other */
.section {
  margin-bottom: 0;
}

/* tighten the gutter between the two columns when they're side by side */
@media (min-width: 992px) {
  .sections-wrapper .primary {
    padding-right: 3px;
  }
  .sections-wrapper .secondary {
    padding-left: 3px;
  }
}

.section .section-inner {
  padding: 0;
  /* navy = the window frame / gutter color between the outer and inner borders */
  background: #20223a;
  /* continuous Winamp window frame — same slate/navy bevel as the titlebar */
  border-top: 1px solid #e4e4eb;
  border-left: 1px solid #b9bac9;
  border-right: 1px solid #3a3b52;
  border-bottom: 1px solid #0a0b16;
  box-shadow: inset 1px 1px 0 #4a4c66, inset -1px -1px 0 #101120,
              0 2px 6px rgba(0, 0, 0, 0.5);
  border-radius: 0;
  overflow: hidden;
}

/* ---- titlebar ---- */
.winamp-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  height: 20px;
  padding: 0 3px;
  cursor: default;
  user-select: none;
  /* dark navy with a subtle vertical gradient = the Winamp main-window titlebar */
  background: linear-gradient(to bottom, #2a2c44 0%, #1f2138 55%, #17182a 100%);
  /* frame lives on .section-inner now; titlebar only needs a divider below it */
  border: 0;
  border-bottom: 1px solid #0a0b16;
}

/* far-left lightning-bolt Winamp logo */
.winamp-logo {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin: 0 2px 0 1px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  /* Winamp-style lightning mark */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 7.5 L7 1 L5.5 5 L11 4.5 L5 11 L6.5 7 Z' fill='%23d9d6c7' stroke='%236f7488' stroke-width='0.5' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* gold "grip" bars that flank the title and stretch to fill space */
.winamp-grip {
  flex: 1 1 auto;
  height: 8px;
  min-width: 12px;
  margin: 0 5px;
  border-radius: 2px;
  border: 1px solid #0d0e18;
  /* stacked gold lines with dark grooves */
  background-image: repeating-linear-gradient(
    to bottom,
    #fff8df 0, #fff8df 1px,
    #d5cfaf 1px, #d5cfaf 2px,
    #4c442b 2px, #4c442b 3px
  );
  background-position: center;
  box-shadow: inset 0 1px 0 #fffbe8, inset 0 -1px 0 #2e2b13;
}

.winamp-title {
  flex: 0 0 auto;
  font-family: "Courier New", Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  color: #eae7d6;
  text-shadow: 0 1px 1px #000, 0 0 1px #000;
  padding: 0 2px;
}

/* ---- shade / collapse button (tiny beveled Winamp button) ---- */
.winamp-btn {
  flex: 0 0 auto;
  width: 14px;
  height: 13px;
  margin-left: 2px;
  padding: 0;
  cursor: pointer;
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  line-height: 11px;
  color: #d9d6c7;
  background: linear-gradient(to bottom, #3a3c56, #1c1d30);
  border-top: 1px solid #5f627e;
  border-left: 1px solid #5f627e;
  border-right: 1px solid #0a0b16;
  border-bottom: 1px solid #0a0b16;
  text-shadow: 0 -1px 0 #000;
}

.winamp-btn:hover {
  color: #fffbe8;
}

.winamp-btn:active {
  background: linear-gradient(to bottom, #1c1d30, #3a3c56);
  border-top: 1px solid #0a0b16;
  border-left: 1px solid #0a0b16;
  border-right: 1px solid #5f627e;
  border-bottom: 1px solid #5f627e;
}

.winamp-btn:focus {
  outline: 1px dotted #7fd7a4;
  outline-offset: 1px;
}

/* ---- body ---- */
/* the content sits in its own recessed (sunken) frame, inset from the outer
   window frame by a thin navy gutter — the "additional border" on each pane */
.winamp-body {
  margin: 3px;
  padding: 19px;
  background: #232323;
  /* sunken bevel: dark top-left, light bottom-right (opposite of the raised frame) */
  border-top: 1px solid #101120;
  border-left: 1px solid #101120;
  border-right: 1px solid #4a4c66;
  border-bottom: 1px solid #4a4c66;
  box-shadow: inset 1px 1px 0 #000, inset -1px -1px 0 #2f3150;
}

/* the original heading is now shown in the titlebar */
.winamp-body > .heading {
  display: none;
}

/* collapsed = "windowshade" mode: only the titlebar remains */
.section.winamp-collapsed .winamp-body {
  display: none;
}
.section.winamp-collapsed .section-inner {
  box-shadow: inset 1px 1px 0 #4a4c66, inset -1px -1px 0 #101120,
              0 1px 3px rgba(0, 0, 0, 0.5);
}
.section.winamp-collapsed .winamp-titlebar {
  border-bottom: none;
}
