/* 1. Global Reset: Ensures consistent spacing across browsers */
/* ==================== GLOBAL RESET ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==================== BODY ==================== */

body {
  margin: 0;
  font-family: 'Special Elite', cursive;
  background: #0d1117;
  color: #c9d1d9;
  display: flex;
  height: 100vh;
  overflow: hidden;
  border:0;
  &::-webkit-scrollbar{display: none;}-ms-overflow-style: none;
  scrollbar-width:0;
}

/* ==================== SIDEBAR ==================== */

#sidebar-wrapper {
  width: 360px;
  display: flex;
  flex-direction: column;
  background: #161b22;
  border-right: 1px solid #30363d;
  height: 100vh;
  flex-shrink: 0;
}

#sidebar {
  flex: 1;
  overflow-y: auto;
  background: #000;
  border: 0;
}

#sidebar::-webkit-scrollbar {
  width: 2px;
}

#sidebar::-webkit-scrollbar-thumb {
  background: #30363d;
  border-radius: 2px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
  background: #4b535f;
}

/* For Firefox */
#sidebar {
  scrollbar-width: thin;
  scrollbar-color: #30363d transparent;
}

#sidebar-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  background: #161b22;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #30363d;
  display: flex;
  align-items: center;
}

#sidebar-header-title { 
  margin: 4px 0 0 0; 
  padding: 0 0 0 16px;
  font-size: 1.2rem; 
  font-weight: 400; 
  letter-spacing: 0; 
  text-align: left;
  color: #dd0000;
}

#sidebar-footer {
  position: sticky;
  bottom: 0;
  z-index: 10;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  background: #161b22;
  border-top: 1px solid #30363d;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#sidebar-footer-title { 
  margin:0 16px 0 0; 
  padding:8px 0 8px 8px; 
  font-size: 1.1rem; 
  font-weight:400; 
  letter-spacing: 0; 
  text-align:right; 
  color:#aaa;
}

#search {
  width:100%;
  margin:0;
  padding:8px 12px 6px 12px;
  border:1px solid #2F7A18;
  border-radius:none;
  font-family:'Special Elite';
  text-align:center;
  font-size:0.9em;
}

#search.active {
  border-radius:0;
}

/* ==================== SIDEBAR NAVIGATOR ==================== */

.nav-item {
  padding: 8px 8px 4px 24px;
  cursor: pointer;
  font-size: 1em;
  border-bottom: 1px dashed #30363d;
}

.nav-item:hover {
  background: #1e2229;
  border-right: 4px solid #1b6028;
  color: #fff;
}

.nav-item.active {
  background: #21262d;
  border-right: 8px solid #238636;
  color: #fff;
  font-weight: 600;
}


#default-content {
  flex-grow: 1;
  position: relative;
  overflow: hidden;
}

/* ==================== CONTENT AREA ==================== */

#content-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #161b22;
  height: 100vh;
  overflow: hidden;
}

#content-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  background: #161b22;
  padding: 16px;
  border-bottom: 1px solid #30363d;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

#content-header-title { 
  margin:0; 
  padding:0 0 0 16px;
  font-size: 1.2rem; 
  font-weight:400; 
  letter-spacing: 0; 
  text-align:left;
  text-transform: uppercase;
  color:#aaa;
}

#content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 30px;
  background: #0d1117;
  scrollbar-width: none;
}

#content::-webkit-scrollbar {
  display: none;
}

#content-footer {
  position: sticky;
  bottom: 0;
  z-index: 10;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  background: #161b22;
  border-top: 1px solid #30363d;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

#content-footer-title { 
  margin:0 16px 0 0; 
  padding:8px 0 8px 8px; 
  font-size: 1.1rem; 
  font-weight:400; 
  letter-spacing: 0; 
  text-align:right; 
  color:#aaa;
}

header {
  display:flex;
  position:sticky;
  top:0;
  z-index:10;
  justify-content:space-between;
  align-items:center;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  background:#161b22;
  margin:0;
  padding:0 0 0 16px;
  border-bottom:1px solid #30363d;
  font-size:1.2em;
  font-weight:400;
  color:#dd0000;
}

h1 {
  margin:4px 0;
  padding:8px;
  text-align:left;
  text-transform:uppercase;
  font-size:1em;
  font-weight:400;
  color:#dd0000;
}

h2 {
  margin:4px 0;
  padding:8px 16px;
  text-align:left;
  text-transform:uppercase;
  font-size:1em;
  font-weight:400;
  color:#dd0000;
}

h3 {
  margin:4px 0;
  padding:8px 8px 8px 16px;
  text-align:left;
  text-transform:uppercase;
  font-size:1.1em;
  font-weight:400;
  color:#58a6ff;
  /*border-top:dashed 1px #bbb;*/
  /*border-bottom:dashed 1px #bbb;*/
}

h4 {
  margin:4px 0;
  padding:8px;
  text-align:left;
  text-transform:uppercase;
  font-size:1em;
  font-weight:400;
  color:#bbb;
}

h5 {
  margin:4px 0 0 0;
  padding:8px 8px 8px 16px;
  text-align:left;
  text-transform:uppercase;
  font-size:1em;
  font-weight:400;
  color:#58a6ff;
  border-bottom:dashed 1px #30363d;
}

h6 {
  margin:4px 0;
  padding:8px;
  text-align:left;
  text-transform:uppercase;
  font-size:1em;
  font-weight:400;
  color:#58a6ff;
}

footer {
  display: flex;
  position: sticky;
  bottom: 0;
  z-index: 10;
  justify-content: flex-end;
  align-items: center;
  height: 48px;
  background: #161b22;
  border-top: 1px solid #30363d;
  padding: 0 20px;
  font-size: 1.2em;
  font-weight: 400;
  color: #dd0000;
  text-align: right;
  flex-shrink: 0;
}

.hero-image {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.36);
  z-index: 1;
}

.floating-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  padding: 20px;
  color: #fff;
  z-index: 2;
  text-shadow: 0 0 10px rgba(0,0,0,1);
}

.floating-title h1 {
  margin:0;
  padding:64px 64px 48px 64px;
  background:rgba(0, 0, 0, 0.75);
  font-size:3.8em;
  color:#dd0000;
  text-transform:uppercase;
}

.floating-title p {
  font-size: 1.4em;
  margin: 0;
  color: #ddd;
}

/* ==================== GENERAL CONTENT STYLING ==================== */

text {
  margin:16px 0;
  font-size:1em;
}

.title {
  top:0;
  z-index:100;
  height:48px;
  background:#161b22;
  margin:0;
  padding:0;
  border-bottom:1px solid #30363d;
  display:flex;
  justify-content:space-between;
  align-items:center;

}

p {
  margin:16px 0;
  padding:0 0 0 16px;
  font-size:1em;
}

input {
  width:100%;
  margin-bottom:20px;
  padding:12px;
  background:#0d1117;
  border:1px solid #30363d;
  border-radius:none;
  color:#c9d1d9;
  font-size:1em;
  box-sizing:border-box;
}

.card {
  margin:0;
  padding:0;
  border:0;
  background:#0A0C0F;
  line-height:1.5;
}

.card h2 {
  color:#58a6ff;
  margin-top:0;
  font-size:1.5em;
  font-weight: 400;
}

strong {
  color:#8ddb8d;
}

.hidden {
  display:none;
}

.container { 
  display:flex;
  height:100vh;
}

.block {
  flex:1;
  background-size:cover;
  background-position:center;
}

.highlight {
  background-color:#000;color:white;
}

.overlay {
  height:100%; 
  background:rgba(0,0,0,0.75); 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  text-align:center; 
  padding:16px 16px -16px 16px;
}

a {
  color:none;
  background-color:none;
  font-weight:400;
  text-decoration:none;
}

a:link {
  color:#fff;
}

a:visited {
  color:#fff;
}

a:hover {
  color:#fff;
}

a:active {
  color:#fff;
}

button {
  display:inline-block;
  width:20%;
  margin:0;
  padding:16px 12px 12px 12px;
  background:#000;
  color:#aaaa;
  border:1px solid #B8910A;
  border-radius:none;
  font-family:'Special Elite';
  font-size:0.8em;
  transition:background 0.5s ease;
}

button:hover  {
  background:#21262d;
  cursor:pointer;
  color:#fff;
  transition:color 0.5s ease;
}

.img {
  max-width:100%;
  margin:0;
  padding:0;
  height: auto;
  display: block;
  border-radius:none;
  border:1px solid #30363d;
}
.bg-image, .bg-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
/*
  .bg-image {
  position: relative;
  display: inline-block;
  max-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
*/

.bg-image .overlay {
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background-color:rgba(0, 0, 0, 0.55);
  border:none;
}

#details {
  height:100vh;
  min-height: 500px;
  margin:0;
  padding:24px;
  background:#0A0C0F;
  border:0;
  border-radius:0;
}

.weapon-detail {
  display:flex;
  gap:30px;
  flex-wrap:wrap;
}

.weapon-image {
  flex:1;
  min-width:320px;
}

.weapon-image img {
  width:100%;
  max-width:520px;
  border:1px solid #444;
  border-radius:4px;
}

.weapon-stats {
  flex:2;
  min-width:340px;
}

.weapon-stats h2 {
  margin:0;
}

.weapon-stats p {
  margin:0;
  color:#2F7A18;
  border-top: 1px dashed #30363d;
  border-bottom: 1px dashed #30363d;
}

.weapon-stats strong {
  color:#fff;
  letter-spacing:1.1px;
}

.component-select, .attachment-select {
  width: 100%;
  padding: 10px;
  margin: 8px 0 12px 0;
  background: #21262d;
  color: #c9d1d9;
  border: 1px solid #30363d;
  font-family: 'Special Elite';
}

.stats-box {
  margin-top: 10px;
  padding: 12px;
  background: #161b22;
  border: 1px solid #2F7A18;
  min-height: 60px;
  font-size: 0.95em;
}

/* Mobile - Stack vertically */

@media (max-width:900px) {
  .weapon-detail {flex-direction:column;}
}