html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Source Sans Pro", sans-serif; background-color: #f4f4f4; }
h2 { text-align: center; font-size: 2em; font-weight: 700; color: #2c3e50; margin-bottom: 0.75em; text-transform: none; letter-spacing: 1px; border-bottom: 3px solid #2ecc71; display: inline-block; padding-bottom: 5px; white-space: nowrap; }
h3 { font-size: 1.4rem; font-weight: 600; color: #34495e; margin-top: 0.5em; margin-bottom: 0.5em; text-transform: capitalize; }

header {
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  max-width: 1200px;
  margin: 0 auto;height:40px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

.logo { text-decoration: none !important;
  font-size: 1.4rem;
  font-weight: 700;
  color: #000;
  letter-spacing: 1px;
  cursor: pointer;
  margin-left: 10px;
}
.logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.logo img {
  width: 38px;
  height: 38px;
  vertical-align: middle;
}

header nav {
  display: flex;
  justify-content: center;
  background: #fff;
}

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

nav ul li { background-color: #fff;
  position: relative;
  text-align: center;
  min-width: 70px;
}

nav ul li a {
  display: block;
  font-size: 0.8em;
  padding: 10px 5px;
  text-decoration: none;
  color: #666;
  font-weight: 600;
  transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li.active > a {
  background: #2ecc71;
  color: #fff;
}

nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border-radius: 0 0 5px 5px;
  min-width: 200px;
  z-index: 1000;
}

nav ul li:hover ul {
  display: block;
}

nav ul li ul li a {
  text-transform: none;
  font-size: 0.75em;
  padding: 10px;
  text-align: left;
}
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1100;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: #333;
  margin: 4px 0;
  transition: 0.3s;
}

.arrow-toggle {display: none;}

.hero {
  max-width: 1200px;
  height: 300px;
  margin: 40px auto 0 auto;
  border-radius: 5px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ===== TABLE CONTROLS / TABLE PAGING ===== */
.table-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  padding: 10px 12px;
  background: #f8f9fa;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
}

.table-controls-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.table-controls-centre {
  text-align: center;
  font-weight: 600;
  color: #333;
}

.table-controls-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.table-controls .filter-controls {
  margin: 0;
}

.table-controls .row-counter {
  margin: 0;
  font-size: 0.95em;
  color: #333;
  text-align: center;
  font-weight: 600;
}

.table-controls .pager-info {
  font-weight: 600;
  color: #333;
}

.table-controls .pager-btn {
  background: #2ecc71;
  color: #fff;
  border: 0;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

.table-controls .pager-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}

.table-controls .pager-btn:disabled {
  background: #bbb;
  color: #eee;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.table-controls-bottom .table-controls-centre {
  display: block;
  text-align: center;
}

.table-controls .pager-page {
  font-weight: 600;
  color: #333;
  min-width: 80px;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 800px) {
  .table-controls {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
  }

  .table-controls-left,
  .table-controls-centre,
  .table-controls-right {
    justify-content: center;
  }

  .table-controls-right {
    flex-wrap: wrap;
  }

  .table-controls-bottom .table-controls-centre {
    display: block;
  }

  .table-controls .pager-btn {
    padding: 7px 12px;
    font-size: 0.9em;
  }
}


.filter-item.active {
  outline: 3px solid #2ecc71;
  box-shadow: 0 0 12px rgba(46, 204, 113, 0.45);
}

.counter-section {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  max-width: 1160px;
  margin: 20px auto;
  flex-wrap: wrap;
}
.counter-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.counter-wrapper h2 {
  margin-bottom: 15px;
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
}
.counter-items {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-around;
}
.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
  margin: 10px;
  padding: 20px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.counter-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.counter-item i {
  margin-bottom: 10px;
  color: #2ecc71;
  font-size: 2rem;
}
.counter-info span {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 5px;
}
.counter-info h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #555;
}
.counter-image {
  flex-shrink: 0;
  width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 12px;
    padding: 0px;
}
.counter-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
}



/* ===== SUMMARY ===== */
.summary { max-width: 1150px; margin: 20px auto; padding: 25px; border: 1px solid rgba(0,0,0,0.15); border-radius: 12px; background: #fff; }
.summary h2 { font-size: 2rem; font-weight: 700; color: #2c3e50; margin-bottom: 20px; text-align: left; border-bottom: 3px solid #2ecc71; display: inline-block; padding-bottom: 5px; }
.summary-top { text-align: left; font-size: 1.05rem; margin-bottom: 25px; color: #555; }
.summary-container { margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.summary-item { background: #fff; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 15px; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.summary-item:hover { transform: translateY(-6px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.summary-title { font-size: 1.2rem; font-weight: 600; color: #2c3e50; margin-bottom: 20px; text-align: center; }
.summary-item img { width: 100%; max-width: 100%; aspect-ratio: 1/1; object-fit: contain; border-radius: 8px; margin-bottom: 5px; background: #f9f9f9; }
.summary-content { flex: 1; font-size: 0.95rem; color: #666; margin-bottom: 15px; line-height: 1.5; text-align: justify; display: flex; flex-direction: column; justify-content: flex-start; }
.summary-icons { display: flex; justify-content: space-around; font-size: 0.9rem; color: #2c3e50; border-top: 1px solid rgba(0,0,0,0.1); padding-top: 10px; }
.summary-icons span { display: flex; align-items: center; gap: 5px; font-weight: 600; }
.summary-icons i { color: #2ecc71; }
.caption-subtle { text-align:center; font-size: 0.85em; font-style: italic; color: #666; margin-bottom: 10px; }
.summary-desc { text-align: center; font-size: 14px; color: #333; }

.caption-desc, .caption-subdesc { display: block; line-height: 1.4em; }
.caption-desc { font-size: 1em; font-weight: 600; margin-bottom: 10px; text-align:center; }
.caption-subdesc { font-size: 0.9em; color: #444; margin-top: auto; text-align:center; }

#greatest {
  max-width: 500px;
  height: 280px;
  object-fit: contain;
  width: 100%;
  display: block;
  margin: 0 auto; /* centers the image within the card */
  margin-bottom: 10px;
}

/* Individual summary image limits */
#summary2 .summary-container { grid-template-columns: repeat(auto-fit, minmax(400px, 4fr)); }
#summary2 .summary-item img { max-width: 500px; max-height: 500px; }
#summary2  #greatest img { max-width: 500px; max-height: 330px; aspect-ratio: 3/2 }
#summary3 .summary-container { grid-template-columns: repeat(auto-fit, minmax(300px, 4fr)); }
#summary3 .summary-item img { max-width: 330px; max-height: 330px; }
#summary4 .summary-container { grid-template-columns: repeat(auto-fit, minmax(250px, 4fr)); }
#summary4 .summary-item img { max-width: 250px; max-height: 250px; }

/* ===== DETAIL ===== */
#detail { background: #fff; padding: 20px; margin: 20px auto; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); max-width: 1160px; }
.detail-container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.detail-pair { display: flex; flex-direction: column; align-items: center; max-width: 580px; border: 1px solid rgba(0,0,0,0.05); border-radius: 5px; padding: 10px; text-align: center; }
.detail-items-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.detail-item img, .detail-pair img { width: 260px; aspect-ratio: 1/1; object-fit: contain; border-radius: 12px; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.detail-item:hover img, .detail-pair img:hover { transform: scale(1.03); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }



/* ===== DISPLAY IMAGE PAGING ===== */
.display-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 25px 0;
  flex-wrap: wrap;
}

.display-pager .pager-btn {
  background: #2ecc71;
  color: white;
  padding: 9px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

.display-pager .pager-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}

.display-pager .pager-btn.disabled {
  background: #bbb;
  color: #eee;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.display-pager .pager-info {
  font-weight: 600;
  color: #333;
}


/* ===== Lightbox layout ===== */
#lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.88);
  z-index: 3000;
}

.lightbox-inner {
  position: relative;
  display: inline-block;
  max-width: 90vw;
  max-height: 85vh;
}

#lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

/* Red X: top-right of image, just outside */
.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #d32f2f;
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
  z-index: 3003;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.lightbox-close:hover {
  background: #b71c1c;
}

/* Flip: bottom-right of image, just outside */
#flip-btn {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 19px;
  background: #2ecc71;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  z-index: 3002;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

#flip-btn:hover {
  background: #27ae60;
}

#lightbox-caption {
  margin-top: 52px;
  color: #fff;
  font-size: 16px;
  text-align: center;
}

/* ===== DISPLAY ===== */
#display { background: #fff; padding: 20px; margin: 20px auto; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); max-width: 1160px; }
.display-container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-start; align-items: flex-start; }
.display-grid { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start;}
.display-item { margin:0 auto; max-width: 300px; position: relative; }
.display-item img { width: 260px; height: 260px; aspect-ratio: 1/1; object-fit: contain; border-radius: 12px; transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: default; }
.display-caption { text-align: center; font-size: 14px; color: #333; max-width: 260px;}
.display-subcaption { text-align: center; font-size: 12px; color: #333; max-width: 260px;}
.display-icons { text-align: center; font-size: 12px; margin-bottom: 20px; color: #666; }
.display-icons i { margin: 0 2px 0 10px; color: #2ecc71; }
.display-caption .grade, .grade { font-size: 12px; color: #777; display: block; margin-top: 2px; text-align: center; }

/* Profile Section Container */
#profile {
  position: relative;
  max-width: 1200px;
  height: 500px;
  object-fit: contain;
  margin: 20px auto;
  overflow: hidden;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
#profile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: inherit;
  z-index: 0;
}
#profile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 12px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.85) 100%
  );
  pointer-events: none;
}
/* Background Image Layer */
#profile .background {
  position: absolute;
  inset: 0;  top:0; left:0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.5;
  filter: blur(4px) brightness(0.85);
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}

#profile .small-bg {
 position:absolute; top:50px; left:50px; width:100px; height:100px; border-radius:50%;  z-index:2;

  border: 3px solid #2ecc71;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.4);
  background-size: cover;
  background-position: center;
  float: left;
  margin-right: 30px;
}

/* Foreground Content */
#profile .content {
  position: relative;
  z-index: 3; /* above background + gradient */
   padding: 20px;
  margin: 60px 40px 20px 200px;
  color: #1a2530;
  border-radius: 16px; /* slightly more rounded */
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  
  /* New background for readability */
  background: rgba(255, 255, 255, 0.4); /* faint white */
  backdrop-filter: blur(6px); /* subtle glass effect */
}

#profile h2 {
  font-size: 1.8em;
  font-weight: 700;
  color: #1a2530;
  margin-bottom: 10px;
  border-bottom: 3px solid #2ecc71;
  display: inline-block;
}

#profile h3 {
  font-size: 1.2em;
  color: #2ecc71;
  text-transform: uppercase;
  margin-bottom: 15px;
}

#profile p {
  font-size: 1.05em;
  line-height: 1.8;
  max-width: 900px;
}

#profile .content p {
  font-size: 1.05em;
  line-height: 1.8;
  max-width: 900px;
  
  /* New vertical line */
  border-left: 2px solid #2ecc71; /* green line */
  padding-left: 12px; /* space between text and line */
  margin-right: 0; /* optional: remove default spacing */
}

#profile p strong {
  color: #2c3e50;
  font-weight: 700;
}

/* ===== SELECTOR ===== */
.selector-container {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-width: 1160px;
  margin: 20px auto;
  padding: 20px;
}
.selector-container h2 {
  font-size: 2em;
  font-weight: 700;
  color: #2c3e50;
  margin: 5px;
  border-bottom: 3px solid #2ecc71;
  display: inline-block;
  padding-bottom: 5px;
}
.selector-scroll {
  display: flex;
  flex-wrap: wrap;          /* default: wrapped layout */
  gap: 10px;
  overflow-x: hidden;       /* no horizontal scroll by default */
  overflow-y: hidden;
  padding: 5px;
  margin: 5px auto;
  transition: all 0.3s ease;
}
.selector-scroll.scrolling {
  flex-wrap: nowrap;        /* single row */
  overflow-x: auto;         /* allow horizontal scroll */
  scroll-behavior: smooth;
}
.selector-container.expanded {
  max-height: 9999px;
  opacity: 1;
}

/* Horizontal scroll only when JS forces flex-wrap: nowrap */
#goatSelector {
  display: flex;
  flex-wrap: wrap;                 /* default to wrapped layout */
  overflow-x: hidden;              /* no scroll unless active GOAT */
  gap: 12px;
  scroll-behavior: smooth;
  padding: 20px;
}

/* Active GOAT highlight */
.selector-item.active {
  border: 3px solid #007bff;
  box-shadow: 0 0 10px rgba(0,123,255,0.4);
  transform: scale(1.02);
  background: rgba(46, 204, 113, 0.5);
}

/* Each GOAT box */
.selector-item {
  flex: 0 0 auto;
  width: 200px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 5px;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.selector-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.selector-item img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.selector-info .name {
  font-weight: bold;
  font-size: 0.9em;
}

.selector-info .sport {
  font-style: italic;
  font-weight: normal;
  font-size: 0.75em;
}


/* ===== FILTER ITEMS ===== */
.filter-item { width: 200px; border: 1px solid rgba(0,0,0,0.1); border-radius: 5px; padding: 10px; text-align: left; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; }
.filter-item:hover { transform: translateY(-3px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }
.filter-item img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.filter-info .name { font-weight: bold; }

/* ===== WANTLIST/TRADELIST CONTAINERS ===== */
#wantlist .filter-items, #tradelist .filter-items { display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-start; margin-bottom: 20px; }
#wantlist .filter-item:hover, #tradelist .filter-item:hover { transform: translateY(-3px); }
#wantlist .filter-item img, #tradelist .filter-item img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }

/* ===== TABLES ===== */
.section { width: 95%; max-width: 1160px; overflow-x: auto; background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); gap: 20px; margin-left: 10px; margin: 20px auto; }
.section table { width: 100%; border-collapse: collapse; }
.section th, .section td { border: 1px solid #ddd; padding: 2px; text-align: left; font-weight: normal; font-size: 12px}
.section th { background-color: #f2f2f2; }
.section input { width: 100%; padding: 4px; margin-bottom: 4px; box-sizing: border-box; }

/* ===== DROPDOWN STYLING ===== */
#collection-filter, #sport-filter { width: 100%; padding: 6px 8px; border-radius: 5px; border: 1px solid #ccc; background-color: #fff; cursor: pointer; transition: all 0.3s ease; }
#collection-filter:hover, #sport-filter:hover { border-color: #2ecc71; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }

/* ===== TICK TOGGLE ===== */
.tick-toggle { display: inline-block; padding: 4px 10px; border-radius: 5px; cursor: pointer; user-select: none; transition: all 0.3s; font-weight: bold; color: white; background-color: gray; }
.tick-toggle.all { background-color: gray; }
.tick-toggle.yes { background-color: #2ecc71; }
.tick-toggle.no  { background-color: #e74c3c; }
.tick-toggle:hover { opacity: 0.85; }

/* ===== FILTER CONTROL BUTTON ===== */
#wantlist #clearFiltersBtn, #tradelist #clearFiltersBtn { padding: 8px 15px; border: none; border-radius: 5px; background-color: #2ecc71; color: white; font-weight: bold; cursor: pointer; transition: background 0.3s ease; }
#wantlist #clearFiltersBtn:hover, #tradelist #clearFiltersBtn:hover { background-color: #27ae60; }
.section #tradelist-table th:nth-child(7),
.section #tradelist-table th:nth-child(8),
.section #tradelist-table th:nth-child(9),
.section #tradelist-table td:nth-child(7),
.section #tradelist-table td:nth-child(8),
.section #tradelist-table td:nth-child(9) {
  text-align: center; min-width: 40px;
}

.section #tradelist-table th:nth-child(6),
.section #tradelist-table td:nth-child(6) {
  text-align: center; max-width: 80px;
}

.section #tradelist-table th:nth-child(5),
.section #tradelist-table td:nth-child(5) {
  text-align: center; max-width: 120px;
}

.section #tradelist-table th:nth-child(3),
.section #tradelist-table td:nth-child(3),
.section #tradelist-table th:nth-child(4),
.section #tradelist-table td:nth-child(4) {
  text-align: center; max-width: 100px;
}

.row-counter { font-size: 0.9em; margin-bottom: 8px; color: #555; text-align: left; }


/* ===== FOOTER ===== */
footer { text-align: center; background: #fff; max-width: 1160px; margin: 10px auto; padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
footer .footer-column { flex: 1 1 200px; display: flex; flex-direction: column; align-items: center; }
footer .footer-column:first-child { flex: 2 1 300px; }
footer .footer-column:first-child p { margin: 0; }
footer .footer-column h3 { text-transform: uppercase; margin-bottom: 10px; }
footer .footer-column p, footer .footer-column a { text-decoration: none; color: #666; margin-bottom: 5px; transition: color 0.3s ease, text-decoration 0.3s ease; }
footer .footer-column p span a { display: inline; }
footer .footer-column a { display: block; font-weight: 500; }
footer .footer-column a:hover { color: #2ecc71; }

/* Back to top */
#backToTop { display: none; position: fixed; bottom: 20px; right: 20px; z-index: 999; width: 50px; height: 50px; border: none; border-radius: 50%; background-color: #2ecc71; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.3); display: flex; align-items: center; justify-content: center; transition: background 0.3s, transform 0.3s; }
#backToTop:hover { background-color: #27ae60; transform: translateY(-3px); }
#backToTop svg { width: 20px; height: 20px; stroke: white; stroke-width: 2.5; }

#lightbox-img {
  transition: transform 0.3s ease;
  transform-origin: center center;
  z-index: 2000;
  cursor: zoom-in;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) { 

  li.has-sub:hover > ul {
    display: none; /* disable hover opening on mobile */
  }

  nav#menu li ul {
    display: none;
  }
  nav#menu li.open > ul {
    display: block;
  }


/* ===== HERO SECTION ===== */
.hero {
  max-height: 150px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.display h2 { font-size: 18px;}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
}

/* ===== HAMBURGER ===== */
.hamburger {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 32px;              /* clickable area */
  height: 32px;             /* make full square target */
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1200;
  transition: transform 0.3s ease;
}

.hamburger .bar {
  display: block;
  width: 26px;
  height: 3px;
  margin: 4px 0;
  background-color: #333;   /* default bar color */
  border-radius: 2px;
  transition:
    transform 0.35s ease,
    opacity 0.25s ease,
    background-color 0.25s ease;
}

/* === Open state turns bars into X === */
.hamburger.open .bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background-color: #2ecc71;
}

.hamburger.open .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  background-color: #2ecc71;
}


/* Logo on right */
.logo {
  order: 2;
}
header {height:40px}
header nav#menu {display: block}

/* ===== INLINE DROPDOWN WITH ANIMATION ===== */
nav ul li {
  position: relative;
}

/* make dropdown part of normal flow (no absolute positioning) */
/* Inline dropdown (pushes content down) */
nav ul li ul {
  display: none;              /* hidden by default */
  position: relative;         /* stay in normal flow */
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border-radius: 0 0 5px 5px;
  margin-top: 0;
  padding: 0;
  width: 100%;
}

nav ul li:hover > ul {
  display: block;             /* reveal submenu inline */
}

nav ul li ul li a {
  display: block;
  text-align: left;
  font-size: 0.85em;
  padding: 8px 12px;
  color: #555;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav ul li ul li a:hover {
  background: #2ecc71;
  color: #fff;
}


/* when hovered/opened */
nav ul li:hover > ul,
nav ul li.open > ul {
  max-height: 500px; /* large enough to fit submenu */
  opacity: 1;
  visibility: visible;
}



/* Menu sliding from left */
nav#menu {
  position: fixed;
  top: 40px;
  left: 0;
  width: 250px;
  background: #fff;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: auto;                        /* allow natural height but constrain by max-height */
  max-height: calc(100vh - 40px);      /* viewport height minus header */
  -webkit-overflow-scrolling: touch;   /* smooth scrolling on iOS */
  overflow-y: auto;
  bottom: 0;  
  z-index: 1000;
  font-size: 18px;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

nav#menu.open {
  transform: translateX(0);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.08); /* show only when visible */
}

/* Stack menu items in one column */
nav#menu ul {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  list-style: none;
}

nav#menu li {
  width: 100%;
  position: relative;
}

nav#menu ul li ul li { font-size: 16px;margin: 0;}
nav#menu li > a {
  display: block;
  padding: 10px;
  text-align: left;              /* ensure left alignment */
  box-sizing: border-box;
  color: #333;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}
nav#menu li > a:hover {
  background: #f5f5f5;
  color: #2ecc71;
}
nav#menu li.has-sub > a {
  padding-right: 60px; /* adjust if you want more/less gap */
  box-sizing: border-box;
}


li.has-sub {
  position: relative;
}

li.has-sub > a {
  display: flex;
  align-items: center;   /* vertically center text and arrow */
  justify-content: space-between;
  padding: 10px 35px 10px 15px; /* space for arrow */
  text-decoration: none;
  color: #333;
  font-weight: 600;
}




li.has-sub.open > .arrow-toggle,
li.has-sub > .arrow-toggle:hover {
  background: rgba(0,0,0,0.03); /* subtle hover/bg - optional */
}
nav#menu li.has-sub ul li > a {
  font-weight: 500;
  font-size: 12px;
  padding: 5px 10px;
  color: #555;
}
nav#menu li.has-sub ul li > a:hover {
  background: #e8f5e9;
  color: #2ecc71;
}


li.has-sub > .arrow-toggle:hover {
  background: #e0e0e0; /* subtle highlight */
}

nav#menu li:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Submenu */
li.has-sub > ul {
  display: none;        /* hidden until hover or toggle */
  position: relative;   /* stays in normal flow */
  margin: 0;
  padding: 0 0 0 5px;  /* indent for submenu items */
  border-left: 10px solid #e0e0e0;
  background: #f8f9fa;
}
li.has-sub.open > ul {
  display: block; /* shows inline, pushes items down */
}



li.has-sub:hover > ul,
li.has-sub.open > ul {
  display: block;  /* only open when hovered or toggled */
}
li.has-sub.open > .arrow-toggle {
	  display: flex !important;
	  vertical-align:top;
  color: #2ecc71;
}
nav#menu li.has-sub:hover > a {
  background: #f0fdf4;
  color: #27ae60;
}
nav#menu li {
  cursor: pointer;
}
/* Submenu links */
nav#menu li li > a {
  padding: 10px 24px;
  font-size: 15px;
  color: #555;
  font-weight: 500;
  transition: background 0.25s ease;
}

nav#menu li li > a:hover {
  background: rgba(46, 204, 113, 0.15);
  color: #222;
}

nav#menu li.active > a {
  background: #2ecc71;
  color: #fff;
}

.logo img {
  width: 32px;
  height: 32px;
  vertical-align: middle; /* optional extra safety */
}








  h2 { font-size: 18px; }

#profile {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px;
  margin: 20px auto;
}

#profile .background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: blur(3px) brightness(0.8);
  z-index: 0;
  border-radius: 10px;
}

.selector-container {padding: 0}
.selector-item { width: 160px; padding: 5px 2px 5px 2px; text-align: left; }
.selector-item img { width: 40px; height: 40px; }
.selector-item .name { font-size: 0.8em; }
.selector-item .sport { font-size: 0.6em; }

#profile .profile-inner {
  position: relative; /* stacking context for small-bg */
  display: flex;
  flex-direction: column;
  align-items: center; /* center content horizontally */
  width: 100%;
}

#profile .small-bg {
	position: absolute;top: 0; left: 50%;   transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;           /* fixed height */
  border-radius: 50%;
  border: 3px solid #2ecc71;
  background-size: cover;
  background-position: center;
  transform: translateX(-50%);
  z-index: 3;              /* above content */
}

#profile .content {
  max-width: 400px;
  text-align: center;
  padding: 30px 0 10px 0;
  border-radius: 10px;margin: 0 auto;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
  margin-top: 40px; /* space for small-bg overlap */
}

#profile .content p {padding: 0 5px; border: none; font-size: 0.8em; text-align:left;
}
#profile h2 {
  font-size: 1.5em;
  margin-bottom: 8px;
  border-bottom: 2px solid #2ecc71;
}

#profile h3 {
  font-size: 1em;
  margin-bottom: 10px;
}


#profile .background {
  filter: blur(3px) brightness(0.8);
}


  /* Existing responsive tweaks */
  .counter-section {
    flex-direction: column;
    align-items: center;
  }


.detail-caption .display-caption {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers everything horizontally */
  text-align: center;
  gap: 5px;max-width: 300px;
}

.detail-caption .grade {
  display: block;
  margin: 0 auto;
  font-weight: 600;
  font-size: 12px;max-width: 300px;
}
.detail-items-row{gap:5px;}
.display-item { margin:0 auto; max-width: 190px }
.display-caption {max-width: 190px}
.display-subcaption {max-width: 190px}
.display-caption .grade {max-width: 190px}
  #summary2 .summary-container { grid-template-columns: repeat(auto-fit, minmax(350px, 4fr)); }
  #summary2 .summary-item img { max-width: 350px; max-height: 350px; }
  #summary4 .summary-container { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
  #summary4 .summary-item img { max-width: 350px; max-height: 350px; }
  .display-item img { width: 180px; height: 180px; }
  .detail-item img { width: 180px; height: 180px; }
  .counter-row { justify-content: center; }

  .selector-container { justify-content: flex-start; }

#wantlist .filter-item, #tradelist .filter-item { width: 180px; border: 1px solid rgba(0,0,0,0.1); border-radius: 5px; padding: 5px; text-align: left; cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; gap: 5px; align-items: center; text-decoration: none; color: inherit; }
.filter-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }


  /* FOOTER adjustments */
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 40px 0 30px 0;gap:0px;
    margin-top: 40px;
    background-color: #fff;font-size:0.8em;
  }
  

  footer .footer-column {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 350px;
    margin: 0 auto 10px auto;
  }
  footer .footer-column:first-child { flex: 0 0 auto; }
  footer .footer-column:last-child { margin-bottom: 0; }
  
  
  
  
  .counter-section {
  display: flex;
  gap: 20px;
  align-items: flex-start; /* align image top with counters */
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  max-width: 1160px;
  margin: 20px auto;
  flex-wrap: wrap;
}
.counter-wrapper h2 {
  margin-bottom: 5px;
  margin-top: 5px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  text-align: center;
}
.counter-wrapper {margin-left:auto;margin-right:auto;}
.counter-items {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: space-around;
}
.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 80px;
  margin: 5px auto;
  padding: 5px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.counter-item i {
  margin-bottom: 10px;
  color: #2ecc71;
  font-size: 1.5rem;
}
.counter-info span {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 5px;
}
.counter-info h3 {
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
}
  
    nav#menu li.has-sub { position: relative; }

  /* show and center the arrow only on mobile */
nav#menu li.has-sub > .arrow-toggle {
  display: flex !important;
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;        /* clickable area width requested */
  height: 40px;       /* fills the li (matches top menu item height) */
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 9999;
  align-items: flex-start;  /* glyph will be placed from the top */
  justify-content: center;
}

/* pseudo-element glyph: keep it compact and aligned to top */
/* Glyph placed with a fixed top offset so it doesn't move when toggled */
nav#menu li.has-sub > .arrow-toggle::after {
  content: "▶";        /* right-pointing closed glyph */
  position: absolute;
  top: 15px;           /* fixed distance from top of li — tweak this to taste */
  left: 50%;
  transform: translateX(-50%); /* horizontal center inside the 50px area */
  font-size: 16px;
  line-height: 1;
  color: #555;
  transition: color .18s ease, transform .18s ease;
}

/* Open state — same top so glyph stays aligned; only content/color changes */
nav#menu li.has-sub.open > .arrow-toggle::after {
  content: "▼";        /* down-pointing open glyph */
  color: #2ecc71;
  top: 15px;           /* keep same value as closed state */
  font-size: 16px;
}

  /* optional subtle background on hover / open */
  nav#menu li.has-sub > .arrow-toggle:hover,
  nav#menu li.has-sub.open > .arrow-toggle {
    background: rgba(0,0,0,0.03);
  }

nav#menu li.has-sub > ul {
  /* leave it in normal flow (so it pushes down), but cap the submenu height */
  max-height: calc(100vh - 110px);     /* s.t. submenu fits below header + room for parent */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


/* Prevent right-left scrolling when submenu opens */
nav#menu,
nav#menu ul,
nav#menu li,
nav#menu li.has-sub > ul {
  max-width: 100vw;       /* never exceed viewport width */
  overflow-x: hidden;     /* disable horizontal scrolling */
  box-sizing: border-box; /* include padding/border in width */
}

/* Also ensure body doesn’t scroll sideways when menu open */
body {
  overflow-x: hidden;
}

  
}


