/* Shared exploration controls for personal collections (Photos + Notes). */

.explore-panel {
  margin: 0 0 1.5rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 76%, transparent);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
}

.explore-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: .8rem;
}

.explore-summary {
  margin: 0;
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
}

.explore-summary span {
  color: var(--muted);
  font-weight: 500;
}

.explore-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.6fr) repeat(2, minmax(130px, .7fr));
  gap: 10px;
  align-items: end;
}

.explore-form--notes {
  grid-template-columns: minmax(180px, 1.45fr) repeat(3, minmax(105px, .55fr));
}

.explore-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.explore-label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.explore-input,
.explore-select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-1);
  color: var(--text);
  font: inherit;
  font-size: .9rem;
  padding: .55rem .7rem;
}

.explore-input::placeholder { color: var(--muted); }

.explore-input:focus-visible,
.explore-select:focus-visible,
.explore-button:focus-visible,
.explore-link:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--link) 68%, transparent);
  outline-offset: 2px;
}

.explore-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: .85rem;
}

.explore-button,
.explore-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-1);
  color: var(--text);
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1;
  padding: .55rem .8rem;
  text-decoration: none;
  cursor: pointer;
}

.explore-button:hover,
.explore-link:hover {
  border-color: color-mix(in srgb, var(--link) 50%, var(--border));
  background: color-mix(in srgb, var(--link) 10%, var(--surface-1));
  color: var(--link);
}

.explore-link { margin-left: auto; }

.explore-empty {
  margin: 1.2rem 0;
  padding: 2rem 1.2rem;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-2) 62%, transparent);
  text-align: center;
}

.explore-empty h2 {
  margin: 0 0 .35rem;
  font-size: 1.1rem;
}

.explore-empty p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 720px) {
  .explore-panel {
    width: calc(100% + 16px);
    margin-left: -8px;
    padding: .85rem;
  }

  .explore-form { grid-template-columns: 1fr 1fr; }
  .explore-field:first-child { grid-column: 1 / -1; }
  .explore-actions { flex-wrap: nowrap; overflow-x: auto; padding: 2px 2px 5px; }
  .explore-actions > * { flex: 0 0 auto; }
  .explore-link { margin-left: 0; }
}

@media (max-width: 420px) {
  .explore-form { grid-template-columns: 1fr; }
  .explore-field:first-child { grid-column: auto; }
}
