/* css/share.css — shared social-share button + popover, used on the homepage,
   bikepark/area pages, and hiking-area pages. Relies on the --clr-* variables
   already defined by each page's own stylesheet (app.css / trails.css). */

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  color: var(--clr-text);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.share-btn:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* Icon-only variant — matches the header's .theme-toggle-btn sizing (34x34) */
.share-icon-btn {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, border-color .15s;
  line-height: 1;
  flex-shrink: 0;
}
.share-icon-btn:hover {
  background: var(--clr-border);
  border-color: var(--clr-accent);
}

.share-popover {
  z-index: 2000;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

.share-popover-link {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: .85rem;
  color: var(--clr-text);
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.share-popover-link:hover {
  background: var(--clr-surface2);
}
