/*
Theme Name: RecordsOnline Dark Theme
Theme URI: https://recordsonline.store
Description: Custom Dark DJ Crate & Bargain Index Theme for WooCommerce
Author: records-online
Version: 1.0.0
*/

:root {
  --bg-color: #0a0a0b;
  --card-bg: #121214;
  --sidebar-bg: #0d0d0f;
  --accent-lime: #a2ff00;
  --accent-color: #a2ff00; /* Maps to theme switcher */
  --text-main: #f0f0f0;
  --text-muted: #88888e;
  --border-color: #26262a;
  --sidebar-width: 260px;
}

/* --- THEME SWITCHER PALETTES --- */
body.theme-red { --accent-color: #ff3333; --accent-lime: #ff3333; }
body.theme-orange { --accent-color: #ff8000; --accent-lime: #ff8000; }
body.theme-brown { --accent-color: #cc8844; --accent-lime: #cc8844; }
body.theme-lime { --accent-color: #a2ff00; --accent-lime: #a2ff00; }
body.theme-amber { --accent-color: #ffb000; --accent-lime: #ffb000; }
body.theme-cyan { --accent-color: #00e5ff; --accent-lime: #00e5ff; }

body.bg-dark-charcoal { --bg-color: #0a0a0b; --card-bg: #121214; --sidebar-bg: #0d0d0f; }
body.bg-deep-obsidian { --bg-color: #000000; --card-bg: #0d0d0f; --sidebar-bg: #050505; }
body.bg-slate-gray { --bg-color: #121619; --card-bg: #1a1f24; --sidebar-bg: #151a1f; }
body.bg-espresso { --bg-color: #14110f; --card-bg: #1c1815; --sidebar-bg: #171412; }
body.bg-midnight-blue { --bg-color: #0a0e14; --card-bg: #111721; --sidebar-bg: #0d121a; }
body.bg-deep-wine { --bg-color: #140a0a; --card-bg: #1c1212; --sidebar-bg: #170d0d; }

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg-color) !important;
  color: var(--text-main) !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-main);
  text-decoration: none;
}

a:hover {
  color: var(--accent-lime);
}

/* --- SITENWIDE APPLICATION SHELL (Centered & Boxed Console) --- */
.site-wrapper {
  display: flex;
  width: 100%;
  max-width: 1600px; /* Squeezes the website toward the center on wide displays */
  margin: 0 auto;    /* Centers the entire console */
  min-height: calc(100vh - 110px);
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.sitewide-left-pane {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  border-right: 1px solid var(--border-color);
  padding: 20px 16px;
  flex-shrink: 0;
}

.sitewide-left-pane h3 {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.sitewide-left-pane ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitewide-left-pane li a {
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 4px;
  color: var(--text-main);
  transition: background 0.15s ease;
}

.sitewide-left-pane li a:hover {
  background: rgba(162, 255, 0, 0.1);
  color: var(--accent-lime);
}

/* Balanced Right Console Pane */
.sitewide-right-pane {
  width: 240px;
  min-width: 240px;
  background-color: var(--sidebar-bg);
  border-left: 1px solid var(--border-color);
  padding: 20px 16px;
  flex-shrink: 0;
}

.sitewide-right-pane h3 {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.sitewide-main-content {
  flex: 1;
  padding: 20px;
  overflow-x: auto;
}

/* --- HEADER & TOP BANNER --- */
.top-utility-banner {
  background: #000;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  height: 34px;
  font-size: 11px;
}

.announcement-ticker {
  color: var(--accent-lime);
  font-weight: bold;
}

.top-banner-player {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-play-btn {
  background: var(--accent-lime);
  color: #000;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: bold;
}

.site-header-nav {
  background: #101012;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo h1 {
  font-size: 20px;
  font-weight: 900;
  margin: 0;
  color: #fff;
}

.brand-logo h1 span {
  color: var(--accent-lime);
}

.search-box input {
  width: 380px;
  background: #000;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 12px;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-lime);
}

.crate-btn {
  background: var(--accent-lime);
  color: #000;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 12px;
  border: none;
  cursor: pointer;
}

/* --- DJ INVENTORY TABLE --- */
.dj-inventory-table-container {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  background: var(--card-bg);
}

table.crate-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

table.crate-table th {
  background: #161619;
  color: var(--text-muted);
  padding: 10px 12px;
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-color);
}

table.crate-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  vertical-align: middle;
}

table.crate-table tr:hover td {
  background-color: rgba(162, 255, 0, 0.03);
}

/* Table Column Widths & Containment */
.col-cover { width: 60px; text-align: center; }
.col-title { min-width: 200px; }
.col-audio { width: 300px; }
.col-label { width: 140px; color: var(--text-muted); }
.col-format { width: 80px; color: var(--text-muted); }
.col-genre { width: 140px; font-size: 11px; }
.col-condition { width: 80px; color: var(--text-muted); }
.col-price { width: 90px; text-align: right; font-weight: bold; color: var(--accent-lime); }
.col-action { width: 100px; text-align: center; }

.crate-table img.record-thumb {
  width: 42px !important;
  height: 42px !important;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  display: block;
  margin: 0 auto;
}

.btn-add-crate {
  background: var(--accent-lime);
  color: #000;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 3px;
  font-size: 11px;
  display: inline-block;
}

.btn-add-crate:hover {
  background: #fff;
  color: #000;
}