/* hydev-addons.css — Addon Marketplace Panel Styles
 * Created: 2026-06-07
 */

/* ── Tabs ─────────────────────────────────────────────────────────── */
.hda-tabs {
  display: flex;
  gap: 4px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}
.hda-tab {
  padding: 6px 16px;
  border: none;
  background: transparent;
  color: var(--hd-muted, #888);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
}
.hda-tab:hover { background: rgba(255,255,255,0.06); color: var(--hd-text, #eee); }
.hda-tab.active { background: rgba(0,255,163,0.12); color: var(--hd-accent, #00ffa3); }

/* ── Search ───────────────────────────────────────────────────────── */
.hda-search-bar { margin-bottom: 12px; }
.hda-search {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--hd-text, #eee);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.hda-search:focus { border-color: var(--hd-accent, #00ffa3); }
.hda-search::placeholder { color: var(--hd-muted, #666); }

/* ── Category Pills ───────────────────────────────────────────────── */
.hda-categories {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hda-cat-pill {
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--hd-muted, #888);
  font-size: 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.hda-cat-pill:hover { border-color: var(--hd-accent, #00ffa3); color: var(--hd-text, #eee); }
.hda-cat-pill.active {
  background: rgba(0,255,163,0.12);
  border-color: var(--hd-accent, #00ffa3);
  color: var(--hd-accent, #00ffa3);
}

/* ── Addon Card Grid ──────────────────────────────────────────────── */
.hda-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hda-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.hda-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(0,255,163,0.25);
  transform: translateY(-1px);
}
.hda-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,255,163,0.1);
  border-radius: 10px;
  font-size: 22px;
  color: var(--hd-accent, #00ffa3);
}
.hda-card-body { flex: 1; min-width: 0; }
.hda-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.hda-card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--hd-text, #eee);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hda-card-desc {
  margin: 0;
  font-size: 12px;
  color: var(--hd-muted, #888);
  line-height: 1.4;
}
.hda-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.hda-tag {
  padding: 2px 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  font-size: 10px;
  color: var(--hd-muted, #888);
}

/* ── Badges ───────────────────────────────────────────────────────── */
.hda-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.hda-badge.free {
  background: rgba(0,255,163,0.12);
  color: var(--hd-accent, #00ffa3);
}
.hda-badge.installed {
  background: rgba(96,165,250,0.15);
  color: #60a5fa;
}

/* ── Empty State ──────────────────────────────────────────────────── */
.hda-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--hd-muted, #666);
}
.hda-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }
.hda-muted { font-size: 12px; opacity: 0.6; }

/* ── My Addons List ───────────────────────────────────────────────── */
.hda-my-list { display: flex; flex-direction: column; gap: 6px; }
.hda-my-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.hda-my-item:hover { background: rgba(255,255,255,0.07); }
.hda-my-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,255,163,0.1);
  border-radius: 8px;
  font-size: 18px;
  color: var(--hd-accent, #00ffa3);
}
.hda-my-info { flex: 1; }
.hda-my-info h4 { margin: 0; font-size: 13px; font-weight: 600; color: var(--hd-text, #eee); }
.hda-my-status {
  font-size: 11px;
  color: var(--hd-muted, #888);
}
.hda-my-status.active { color: var(--hd-accent, #00ffa3); }
.hda-my-configure {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  color: var(--hd-muted, #888);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s;
}
.hda-my-configure:hover {
  border-color: var(--hd-accent, #00ffa3);
  color: var(--hd-accent, #00ffa3);
}

/* ── Detail View ──────────────────────────────────────────────────── */
.hda-detail { padding: 0 2px; }
.hda-back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  background: none;
  border: none;
  color: var(--hd-muted, #888);
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 16px;
}
.hda-back:hover { color: var(--hd-accent, #00ffa3); }
.hda-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.hda-detail-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,255,163,0.1);
  border-radius: 14px;
  font-size: 28px;
  color: var(--hd-accent, #00ffa3);
}
.hda-detail-header h3 { margin: 0 0 4px; font-size: 18px; color: var(--hd-text, #eee); }
.hda-cat-label {
  font-size: 12px;
  color: var(--hd-muted, #888);
  text-transform: capitalize;
}
.hda-detail-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--hd-muted, #ccc);
  margin-bottom: 12px;
}
.hda-detail-actions { margin: 16px 0; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.hda-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.hda-btn-primary {
  background: var(--hd-accent, #00ffa3);
  color: #0a0a0a;
}
.hda-btn-primary:hover { filter: brightness(1.1); }
.hda-btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--hd-text, #eee);
  margin-top: 12px;
  width: 100%;
}
.hda-btn-secondary:hover { background: rgba(255,255,255,0.15); }
.hda-btn-danger {
  background: rgba(220,38,38,0.15);
  color: #f87171;
}
.hda-btn-danger:hover { background: rgba(220,38,38,0.25); }

/* ── Settings Form ────────────────────────────────────────────────── */
.hda-settings-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hda-settings-section h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--hd-text, #eee);
}
.hda-settings-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hda-field {}
.hda-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--hd-text, #ddd);
  margin-bottom: 4px;
}
.hda-req { color: #f87171; }
.hda-help {
  margin: 0 0 4px;
  font-size: 11px;
  color: var(--hd-muted, #666);
  line-height: 1.4;
}
.hda-input {
  width: 100%;
  padding: 8px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--hd-text, #eee);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.hda-input:focus { border-color: var(--hd-accent, #00ffa3); }

/* ── Toggle ───────────────────────────────────────────────────────── */
.hda-toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  cursor: pointer;
}
.hda-toggle input { opacity: 0; width: 0; height: 0; }
.hda-toggle-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 22px;
  transition: 0.2s;
}
.hda-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.hda-toggle input:checked + .hda-toggle-slider {
  background: var(--hd-accent, #00ffa3);
}
.hda-toggle input:checked + .hda-toggle-slider::before {
  transform: translateX(18px);
}

.hda-readonly {
  padding: 8px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  color: var(--hd-muted, #888);
  font-size: 12px;
}
