/* public/css/gallery.css */

.gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery__main {
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, #1e1e1e, #0c0c0c);
  border-radius: var(--radius);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0% 100%);
}

.gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s;
}

.gallery__empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--fg-faint);
  text-transform: uppercase;
}

.gallery__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery__thumb {
  width: 60px;
  height: 72px;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: border-color 0.15s;
  position: relative;
  flex-shrink: 0;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery__thumb--active {
  border-color: var(--acid);
}

.gallery__thumb:hover {
  border-color: var(--border-bright);
}

.gallery__badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(205,255,26,0.85);
  color: #0c0c0c;
  font-size: 8px;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 0;
}

.gallery__add {
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.gallery__add summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--fg-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  list-style: none;
}

.gallery__add summary:hover {
  color: var(--acid);
}

.gallery__manage {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.gallery__manage summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--fg-faint);
  list-style: none;
}

.gallery__manage-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.gallery__manage-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery__manage-item img {
  width: 36px;
  height: 44px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}

/* --- Счётчик банок --- */
.can-counter {
  margin-top: 20px;
  padding: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.can-counter__total {
  display: flex;
  align-items: center;
  gap: 8px;
}

.can-counter__icon {
  font-size: 24px;
}

.can-counter__num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--acid);
  line-height: 1;
}

.can-counter__label {
  font-size: 11px;
  color: var(--fg-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  max-width: 80px;
  line-height: 1.3;
}

.can-counter__my {
  display: flex;
  align-items: center;
  gap: 10px;
}

.can-counter__btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--border-bright);
  background: transparent;
  color: var(--fg);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
}

.can-counter__btn:hover {
  border-color: var(--acid);
  color: var(--acid);
}

.can-counter__btn--plus {
  border-color: var(--acid);
  color: var(--acid);
}

.can-counter__btn--plus:hover {
  background: var(--acid);
  color: #0c0c0c;
}

.can-counter__my-count {
  text-align: center;
  min-width: 48px;
}

.can-counter__my-count span:first-child {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}

.can-counter__my-label {
  font-size: 10px;
  color: var(--fg-faint);
  text-transform: uppercase;
}

/* --- Лидерборд выпивших --- */
.drinkers-list {
  margin-top: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.drinkers-list__title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  font-weight: 700;
  padding: 8px 12px 6px;
  border-bottom: 1px solid var(--border);
}

.drinkers-list__rows {
  display: flex;
  flex-direction: column;
}

.drinkers-list__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.drinkers-list__row:last-child {
  border-bottom: none;
}

.drinkers-list__rank {
  color: var(--fg-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  min-width: 24px;
}

.drinkers-list__user {
  flex: 1;
  color: var(--fg-dim);
}

.drinkers-list__count {
  color: var(--acid);
  font-size: 13px;
}
