/**
 * @file        sg-photos.css
 * @description SynthGlobe photo pages after the Stitch mockups: upload T-07, photo details T-08, bulk editing T-09 (mobile first, light and dark through sg.css variables)
 *
 * @author      Thomas Dobler - SYNTHETIXMIND LTD
 * @company     SYNTHETIXMIND LTD, Paphos, Cyprus
 * @url         https://synthetixmind.com
 *
 * @uid         f3bb4cef-1512-4d7c-a5e2-051c8882d0d0
 * @version     0.0.0.1
 * @created     2026-12-02
 * @updated     2026-12-02
 *
 * @copyright   (c) 2026 by SYNTHETIXMIND LTD
 * @license     Proprietary — All rights reserved
 */

/* T-07 upload: target and Wi-Fi switch beside the drop area and the queue from 900 px. */
.sg-upload__layout {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.sg-upload__side,
.sg-upload__main {
  min-width: 0;
}
.sg-upload__side {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.sg-upload__heading {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin: 0 0 12px;
}
.sg-upload__storage {
  margin: 12px 0 0;
  font-size: 0.9rem;
}
.sg-drop__icon .sg-icon {
  width: 40px;
  height: 40px;
  color: var(--ink-muted);
}
.sg-drop__button {
  margin-top: 8px;
  pointer-events: none;
}
/* The queue heading appears only once the list has a file. */
.sg-upload__queue:not(:has(li)) .sg-upload__queue-title {
  display: none;
}
.sg-upload__list--compact .sg-upload__item {
  padding: 6px 10px;
}
@media (min-width: 900px) {
  .sg-upload__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: start;
  }
}

/* T-08 photo details: photo and its tools left, data right (the 3 : 2 grid comes from sg.css). */
.sg-photo-edit__stage,
.sg-photo-edit__tools {
  min-width: 0;
}
.sg-photo-toolbar {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}
.sg-photo-toolbar__row {
  display: grid;
  gap: 0 16px;
}
@media (min-width: 600px) {
  .sg-photo-toolbar__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.sg-photo-flag {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.sg-photo-flag .sg-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
.sg-photo-flag p {
  margin: 0;
}
.sg-photo-details__group {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}
.sg-photo-details__group h2 {
  font: 500 0.85rem var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 8px;
}
.sg-photo-delete {
  margin-top: 8px;
}

/* T-09 bulk editing: selection bar above the action bar and the grid. */
.sg-photo-bulk__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 12px;
}
.sg-photo-bulk__count {
  margin: 0;
  font-weight: 600;
}
.sg-photo-bulk__bar .sg-icon {
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}
.sg-photo-bulk .sg-bulk {
  margin-bottom: 16px;
}
.sg-bulk__group--position {
  display: block;
  width: 100%;
}
.sg-bulk__group--position .sg-map-pick {
  height: 220px;
}
.sg-thumbs--named .sg-thumb__name {
  display: block;
  margin-top: 4px;
  font: 0.75rem var(--font-mono);
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}
.sg-thumb__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
/* WHY: sg.css pins a thumbnail chip over the picture; with two chips they would overlap, so here they sit below it. */
.sg-thumb__chips .sg-chip {
  position: static;
}
.sg-chip--gps {
  color: var(--ink-muted);
}
