/* Shutter Host Gear Plugin — Frontend Styles */
:root {
  --shg-bg:         #000000;
  --shg-card-bg:    #161616;
  --shg-card-hover: #1e1e1e;
  --shg-border:     #464646;
  --shg-border-hi:  #c48f56;
  --shg-accent:     #c48f56;
  --shg-text:       #ffffff;
  --shg-muted:      #a8a8a8;
  --shg-tag-bg:     #1a1a1a;
  --shg-tag-fave-bg:#2a1f0e;
  --shg-tag-fave-bd:#7a5830;
  --shg-tag-fave-tx:#c48f56;
  --shg-section-tx: #646464;
  --shg-sponsor-bg: #111111;
}

.shg-wrap * { box-sizing: border-box; }

/* Sponsor block */
.shg-sponsor {
  background: var(--shg-sponsor-bg);
  border: 1px solid var(--shg-border);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.shg-sponsor-logo img {
  max-height: 70px;
  display: block;
}
.shg-sponsor-body { flex: 1; min-width: 200px; }
.shg-sponsor-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--shg-text);
  margin: 0 0 4px;
}
.shg-sponsor-desc {
  font-size: 0.85rem;
  color: var(--shg-muted);
  margin: 0 0 6px;
  line-height: 1.5;
}
.shg-sponsor-link {
  font-size: 0.8rem;
  color: var(--shg-accent);
  text-decoration: none;
}
.shg-sponsor-link:hover { text-decoration: underline; }

/* Filter bar */
.shg-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}
.shg-filter-btn {
  background: var(--shg-tag-bg);
  border: 1px solid var(--shg-border);
  border-radius: 20px;
  color: #c0c0c0;
  font-size: 0.82rem;
  padding: 5px 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  font-family: inherit;
}
.shg-filter-btn:hover,
.shg-filter-btn:focus-visible {
  border-color: var(--shg-border-hi);
  color: var(--shg-text);
  outline: 2px solid var(--shg-accent);
  outline-offset: 2px;
}
.shg-filter-btn.active {
  background: var(--shg-border);
  color: var(--shg-text);
  border-color: var(--shg-border-hi);
  font-weight: 600;
}
.shg-item-count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--shg-section-tx);
}

/* Section */
.shg-section { margin-bottom: 8px; }
.shg-section-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--shg-section-tx);
  margin: 22px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--shg-tag-bg);
}

/* Gear grid */
.shg-gear-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Gear card — wide feature layout */
.shg-gear-card {
  background: var(--shg-card-bg);
  border: 1px solid var(--shg-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  transition: border-color 0.2s, background 0.2s;
}
.shg-gear-card:hover {
  border-color: var(--shg-border-hi);
  background: var(--shg-card-hover);
}
.shg-card-img {
  width: 120px;
  flex-shrink: 0;
  background: var(--shg-tag-bg);
  border-right: 1px solid var(--shg-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.shg-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}
.shg-card-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.shg-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.shg-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--shg-text);
  margin: 0;
}
.shg-card-brand {
  font-size: 0.78rem;
  color: var(--shg-accent);
  display: inline-block;
}
.shg-card-tagline {
  font-size: 0.85rem;
  color: var(--shg-muted);
  line-height: 1.4;
}
.shg-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.shg-card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.shg-tag {
  background: var(--shg-tag-bg);
  border: 1px solid var(--shg-border);
  border-radius: 20px;
  font-size: 0.68rem;
  padding: 2px 9px;
  color: #c0c0c0;
  white-space: nowrap;
}
.shg-tag-featured {
  background: var(--shg-tag-fave-bg);
  border-color: var(--shg-tag-fave-bd);
  color: var(--shg-tag-fave-tx);
}
.shg-product-link {
  font-size: 0.78rem;
  color: var(--shg-accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}
.shg-product-link:hover,
.shg-product-link:focus-visible { text-decoration: underline; outline: 2px solid var(--shg-accent); outline-offset: 2px; }

@media (max-width: 600px) {
  .shg-card-img { width: 80px; }
  .shg-card-name { font-size: 0.9rem; }
}
