/* ============================================
   MY GEAR - PAGE-SPECIFIC STYLESHEET
   ============================================
   Common styles moved to common.css
   This file contains only gear-specific styles
   ============================================ */

/* ============================================
   HEADER / HERO SECTION (page-specific)
   ============================================ */
.page-header {
  background: url('../../media/gallery/gear-header.webp') center 40% / cover no-repeat;
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
  margin-top: 40px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 2px 16px;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--color-text);
}

.count {
  color: var(--color-muted);
  font-size: 14px;
}

/* ============================================
   GRID LAYOUT
   ============================================ */
.grid {
  display: block;
}

/* ============================================
   GEAR CARD COMPONENT
   ============================================ */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Clickable card overlay - covers entire card but allows buttons to be clicked */
.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(10, 20, 40, .12);
}

/* Card Media (Image/Icon) */
.media {
  width: 80px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: white;
  padding: 8px;
  overflow: hidden;
}

.media svg {
  width: 32px;
  height: 32px;
  opacity: 0.6;
}

.media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

/* Card Body */
.body {
  padding: 0;
  display: grid;
  gap: 6px;
  min-width: 0; /* Prevents overflow */
}

.name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2px;
  color: var(--color-text);
}

.desc {
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.5;
}

/* Actions - above card overlay so buttons are clickable */
.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 2;
}

.actions .btn {
  background: #fff;
  color: var(--color-text);
  border: 1px solid var(--border-strong);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.actions .btn:hover {
  background: var(--color-brand);
  color: #fff;
  border-color: var(--color-brand);
  box-shadow: 0 4px 12px rgba(var(--color-brand-rgb), 0.3);
  transform: translateY(-2px);
}

/* ============================================
   TAGS
   ============================================ */
.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.5);
  color: var(--color-muted);
}

.tag.partner {
  border-color: #d97706;
  color: #b45309;
  background: #fef3c7;
}

.tag.aff {
  border-color: #059669;
  color: #047857;
  background: #d1fae5;
}

/* ============================================
   DISCLOSURE
   ============================================ */
.disclosure {
  margin-top: 32px;
  color: var(--color-muted);
  font-size: 14px;
  border-top: 1px dashed var(--border);
  padding-top: 16px;
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  section {
    margin-top: 28px;
  }

  .section-head {
    margin: 6px 0 12px;
  }

  .section-title {
    font-size: 22px;
  }

  .card {
    grid-template-columns: 65px 1fr;
    gap: 10px;
    padding: 12px;
    margin-bottom: 10px;
  }

  .media {
    width: 55px;
    height: 45px;
    padding: 6px;
  }

  .name {
    font-size: 16px;
  }

  .desc {
    font-size: 15px;
    line-height: 1.4;
  }

  .actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 6px;
    gap: 8px;
  }

  .tag {
    font-size: 11px;
    padding: 3px 8px;
  }

  .disclosure {
    margin-top: 24px;
    font-size: 13px;
    padding-top: 14px;
  }
}

@media (max-width: 480px) {
  section {
    margin-top: 20px;
  }

  .section-head {
    margin: 4px 0 10px;
  }

  .section-title {
    font-size: 20px;
  }

  .card {
    grid-template-columns: 55px 1fr;
    gap: 10px;
    padding: 10px;
    margin-bottom: 8px;
  }

  .media {
    width: 50px;
    height: 40px;
    padding: 5px;
  }

  .name {
    font-size: 16px;
  }

  .desc {
    font-size: 16px;
  }

  .actions {
    margin-top: 4px;
  }

  .btn {
    padding: 7px 12px;
    font-size: 13px;
  }

  .disclosure {
    margin-top: 20px;
    font-size: 12px;
    padding-top: 12px;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .page-header {
    background: none;
    color: var(--color-text);
    text-shadow: none;
    padding: 20px;
  }

  .card {
    break-inside: avoid;
  }
}
