body {
  font-family: 'Poppins', sans-serif;
  background: #f8fbfd;
  color: #333;
  padding: 1rem;
}

/* === Category Sections === */
/* === Ensure capitalization persists on all devices === */
.gear-section h3,
.category-block h3,
.item-label strong {
  text-transform: capitalize !important;
}

.gear-section {
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem;
  margin-bottom: 0.2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.gear-section h3 {
  color: #5b8ac8;
  margin-bottom: 0.5rem;
}

/* === Item Labels and Dropdowns === */
.item-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-label sup {
  font-size: 0.8rem;
}

.dropdown-row {
  margin-bottom: 1rem;
}

.dropdown-row select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  background-color: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.dropdown-row select:focus {
  border-color: #5b8ac8;
  outline: none;
}

/* === Tooltip Styling (fixed) === */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip i.fas.fa-question-circle {
  color: #2196f3;
  font-size: 0.9rem;
  vertical-align: middle;
}

/* Tooltip box — positioned relative to icon */
.tooltip .tooltiptext {
  position: absolute;
  bottom: 125%; /* show above the icon */
  left: 50%;
  transform: translateX(-50%);
  width: max(200px, 60vw);
  max-width: 280px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  text-align: center;
  font-size: 0.9rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 9999;
  pointer-events: none; /* prevent accidental re-triggers */
}

/* When visible via JS */
.tooltip .tooltiptext.visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* Optional arrow */
.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #ccc transparent transparent transparent;
}

/* === Submit Button === */

/* === Buttons Row === */
.button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem; /* closer together */
  margin: 1.2rem 0;
}

/* === Shared Button Styles === */

#submitBtn {
  min-width: 150px;
  text-align: center;
  border: none;
  border-radius: 25px;
  padding: 12px 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: #333;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


#resetBtn {
  min-width: 150px;
  text-align: center;
  border: none;
  border-radius: 25px;
  padding: 12px 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: #333;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* === Individual Button Colors (same gradient direction) === */
#submitBtn {
  background: linear-gradient(to right, #a1c4fd, #c2e9fb);
}

#resetBtn {
  background: linear-gradient(to left, #fbd3e9, #bb377d);
}

/* === Hover Effects === */
#submitBtn:hover,
#resetBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  opacity: 0.9;
}


/* === Results Area === */
#results {
  margin-top: 1.5rem;
}

.category-block {
  background: #fdfdfd;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.category-block h3 {
  color: #5b8ac8;
  margin-bottom: 1rem;
}

.rec-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

.rec-card img {
  max-width: 200px;
  border-radius: 8px;
}

.rec-info h4 {
  margin: 0.5rem 0;
  color: #333;
  font-weight: 600;
}

.rec-info a.product-link {
  color: #5b8ac8;
  font-weight: 600;
  text-decoration: none;
}

.rec-info a.product-link:hover {
  text-decoration: underline;
}
.rec-info {
  text-align: center;
}

.rec-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #333;
}

.rec-product {
  margin-bottom: 0.75rem;
}

.rec-info a.product-link {
  color: #5b8ac8;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.rec-info a.product-link:hover {
  text-decoration: underline;
}

/* Smooth fade-in for the results heading */
.results-heading {
  text-align: center;
  color: #333;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-6px);
  animation: fadeInHeading 0.6s ease forwards;
}

@keyframes fadeInHeading {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.learn-more {
  color: #2196f3;
  font-weight: 500;
  text-decoration: none;
}

/* === Responsive === */
@media (max-width: 600px) {
  .dropdown-row select {
    font-size: 1rem;
  }

  /* Ensure capitalization also applies on mobile */
  .gear-section h3,
  .category-block h3,
  .rec-info a.product-link {
    text-transform: capitalize;
  }
}
/* === Trophy icon overlay === */
.image-wrapper {
  position: relative;
  display: inline-block;
}

.image-wrapper img {
  display: block;
  border-radius: 8px;
}

.trophy-icon {
  position: absolute;
  top: -10px;
  left: -10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.trophy-icon i.fa-trophy {
  color: #FFD700; /* gold color */
  font-size: 1.5rem;
}

/* === Accordion styling === */
/* === Accordion styling (mobile-safe) === */
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #eef4fc;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  transition: background 0.3s;
}

.accordion-header:hover {
  background: #e1ecfa;
}

.accordion-header h3 {
  color: #5b8ac8;
  margin: 0;
  font-size: 1.1rem;
}

.accordion-icon {
  color: #5b8ac8;
  transition: transform 0.3s ease;
}

.category-block.active .accordion-icon {
  transform: rotate(180deg);
}

/* Accordion content area — mobile-safe, no height limits */
.accordion-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-block.active .accordion-content {
  display: block;
  opacity: 1;
  animation: fadeSlideIn 0.35s ease;
}

/* Optional smooth fade/slide animation */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
