:root {
  --dark-theme-shadow: rgba(0, 0, 0, 0.4);

  --item-card-bg: #1b1b1b;
  --item-card-tc: #ffffff;

  --unique-tag: linear-gradient(to right, #f38e00, #885100);
  --ancient-tag: linear-gradient(to right, #640aff, #3b0696);
  --chromas-tag: linear-gradient(to right, #ff0000, #ffa500, #ffff00, #00ff00, #00ffff, #0000ff, #9400d3);
  --godly-tag: linear-gradient(to right, #ff00b3, #950069);
  --legendary-tag: linear-gradient(to right, #dc0005, #810003);
  --rare-tag: linear-gradient(to right, #00c800, #007400);
  --uncommon-tag: linear-gradient(to right, #00ffff, #009696);
  --common-tag: linear-gradient(to right, #6a6a6a, #3e3e3e);
  --vintage-tag: linear-gradient(to right, #e6c800, #857300);
}

@font-face {
  font-family: 'Futuramc';
  src: url('/assets/fonts/futuramc.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Fredoka One';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/fredoka.ttf') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Poppins';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/assets/fonts/Poppins-Regular.ttf') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
  font-family: sans-serif;
  background-color: #111;
  color: #eee;
  margin: 0;
  padding: 1rem;
}

/* Header */
header {
  font-family: 'Futuramc';
  font-size: 33px;
  text-align: center;
  margin-bottom: 2rem;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding: 20px;
  text-align: center;
}

.category-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 10px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-button {
  max-width: 170px;
  max-height: 200px;
  margin: auto;
}

.category-button img {
  width: 100%;
  border-radius: 8px;
}

.category-button span {
  margin-top: 6px;
  padding: 4px 8px;
  font-weight: bold;
  color: white;
  border-radius: 8px;
  font-size: 0.85rem;
}

/* Hover Effects */
.category-button:hover,
.trade-item-box:hover,
.item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px var(--dark-theme-shadow);
}

/* Rarity Tag Colors */
.uniques span      { background: var(--vintage-tag); }
.ancients span     { background: var(--ancient-tag); }
.chromas span      { background: var(--chromas-tag); }
.godlies span      { background: var(--godly-tag); }
.legendaries span  { background: var(--legendary-tag); }
.rares span        { background: var(--rare-tag); }
.uncommons span    { background: var(--uncommon-tag); }
.commons span      { background: var(--common-tag); }
.vintages span     { background: var(--vintage-tag); }

/* Item Grid */

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(204px, 1fr));
  gap: 12px;
  justify-content: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

/* .item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12px, 1fr));
  gap: 225px;
  justify-content: center;
  padding: 40px 20px;
  max-width: 1280px;
  margin: 0 auto;
} */

.item-card {
  height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #1a1a1a;
  border-radius: 16px;
  padding: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  
  color: white;
  
  
  box-shadow: 0 4px 12px var(--dark-theme-shadow);

  
  justify-content: space-between;
  
}

/* .item-card {
  width: 240px;
  height: 340px;
  background: #1a1a1a;
  color: white;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 4px 12px var(--dark-theme-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
} */


.item-card img {
  width: 100%;
  max-height: 130px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 12px;
}


.item-card p {
  font-size: 0.85rem;
  line-height: 1.2;
  margin: 2px 0;
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
}

.value-up {
  color: #3fcf3f;
  font-weight: bold;
}

.value-down {
  color: #ff4e4e;
  font-weight: bold;
}

/* Trade Calculator */
.trade-calculator {
  background: #1a1a1a;
  color: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 10px var(--dark-theme-shadow);
  margin-top: 20px;
}

.your-offer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 17px;
  padding: 20px;
}

.trade-area {
  display: inline;
  width: 100%;
}

.trade-item-box {
  background: var(--item-card-bg);
  color: var(--item-card-tc);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 10px var(--dark-theme-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  position: relative;           /* Not fixed/sticky */
  z-index: 1;                   /* Lower than the sidebar */
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  border-top: 1px solid #333;
  padding-top: 20px;
}

.footer-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  border-left: 1px solid #333;
}

.footer-section:first-child {
  border-left: none;
}

.footertext,
.footerNav,
.footertext-small {
  font-family: 'Futuramc';
  color: #fff;
}

.footertext {
  font-size: 2rem;
}

.footerNav {
  font-size: 1.5rem;
  margin: 6px 0;
  display: block;
}

.footertext-small {
  font-size: 1.2rem;
  color: #aaa;
}

.footer-icons img {
  margin: 6px;
  width: 35px;
  transition: transform 0.2s ease;
  border: none;
}

.footer-icons img:hover {
  transform: scale(1.1);
}

.footer-icons a {
  text-decoration: none;
  outline: none;
  border: none;
}

.footer-icons a:focus,
.footer-icons a:active {
  outline: none;
  border: none;
}

/* Sidebar */
.sidebar {
  position: fixed;              /* Fixed = overlays everything */
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;                /* Full height */
  background-color: #1a1a1a;
  color: white;
  padding: 20px;
  box-shadow: 4px 0 8px rgba(0, 0, 0, 0.3);
  transform: translateX(0);     /* Default for wide screens */
  transition: transform 0.3s ease;
  z-index: 1000;                /* HIGHER than everything else */
  overflow-y: auto;           /* Enable vertical scrolling */
  overflow-x: hidden;         /* Prevent horizontal scrolling */
  padding-right: 0.5rem;      /* Optional: some space on the right */
  scrollbar-width: thin;      /* Firefox: thin scrollbar */
  scrollbar-color: #888 transparent; /* Firefox scrollbar style */
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

.sidebar h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #fff;
  text-align: center;
}

.sidebar a {
  display: block;
  color: white;
  padding: 10px 0;
  text-decoration: none;
  font-size: 1.2rem;
  font-family: 'Fredoka One', sans-serif;
}

.sidebar a:hover {
  text-decoration: underline;
}

/* Sidebar toggle button */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  background: #1a1a1a;
  color: white;
  border: none;
  font-size: 1.5rem;
  padding: 10px;
  z-index: 1100;
}

/* Main content */
.main-content {
  margin-left: 250px;
  padding: 20px;
  background: #111;
  color: #eee;
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 0.5rem;
  padding: 0;
  margin: 0;
  border: none; /* optional: removes default border */
  cursor: pointer;        /* optional: hand cursor on hover */
}

.sidebar-toggle:hover {
  transform: scale(1.1);
}

/* Responsive: overlay style */
@media (max-width: 1100px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: flex;
  }

  .main-content {
    margin-left: 0;
  }
}

/* Hide button again if screen is larger than 1100px (optional clarity) */
@media (min-width: 1101px) {
  .sidebar-toggle {
    display: none !important;
  }
}

.sidebar-section {
  margin-bottom: 20px;
}

.sidebar-heading {
  font-weight: bold;
  color: white;
  margin: 12px 0 8px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.sidebar-section a {
  display: flex;
  align-items: center;
  color: white;
  padding: 8px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.sidebar-section a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  object-fit: contain;
}


/* Search Bar */
.search-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.search-bar {
  width: 100%;
  max-width: 700px;
  display: flex;
  align-items: center;
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 10px var(--dark-theme-shadow);
  color: white;
  border-color:rgba(0, 0, 0);
  font-family: "Fredoka One";
}

.up {
  color: #28a745; /* green */
  font-weight: bold;
}
.down {
  color: #dc3545; /* red */
  font-weight: bold;
}
.new {
  color: #6f42c1; /* purple */
  font-weight: bold;
}
.stat-change {
  color: #ffc107; /* yellow/orange */
  font-style: italic;
}
.update-log {
  font-family: fredoka, sans-serif;
  margin: 2rem;
}
.update-section h3 {
  margin-top: 1.5rem;
}
