/* ==========================================================================
   view-gallery.css - Asset Gallery Grid & Media Cards
   Dooze Clip Generator / Clean Workspace (Gemini Borderless Style)
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.gallery-card {
  background: var(--surface);
  border: 0 !important;
  border-radius: var(--radius-card, 20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px -8px rgba(0, 0, 0, 0.4);
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-2px);
  background: var(--surface-raised, #282a2c);
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.6);
}

.gallery-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-badge-dur {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: monospace;
  border: 0 !important;
}

.gallery-badge-res {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(168, 199, 250, 0.22);
  backdrop-filter: blur(8px);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  border: 0 !important;
}

.gallery-content {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.gallery-prompt {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 0;
  font-size: 11.5px;
  color: var(--text-tertiary);
}

.gallery-profile-tag {
  color: var(--text-secondary);
  font-weight: 500;
}

.gallery-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-btn-action {
  background: rgba(255, 255, 255, 0.08);
  border: 0 !important;
  border-radius: var(--radius-pill, 999px);
  height: 30px;
  padding: 0 12px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 140ms ease;
  text-decoration: none;
  user-select: none;
}

.gallery-btn-action:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}
