/* ===================================================
   PORTFÓLIO PÚBLICO (CARDS)
   =================================================== */
.portfolio-card {
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease;
}

.portfolio-card:hover {
  transform: translateY(-3px);
}

.portfolio-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--surface-1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-thumb img {
  transform: scale(1.04);
}

.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(12, 13, 16, 0.75);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  opacity: 0;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.portfolio-card:hover .play-badge {
  opacity: 1;
}

.portfolio-card-title {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  margin-top: 10px;
}

/* ===================================================
   CLIENTES & FOTOGRAFIA (CARDS E MINIATURAS)
   =================================================== */
.client-gallery-card {
  display: flex;
  flex-direction: column;
}

.client-gallery-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.client-gallery-category {
  font-size: 11.5px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: -4px;
  margin-bottom: 10px;
}

.client-main-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.client-main-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.client-thumbs-carousel {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.client-thumbs-carousel::-webkit-scrollbar {
  height: 3px;
}
.client-thumbs-carousel::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 2px;
}

.client-thumb-item {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  background-color: var(--surface-1);
  border: 1.5px solid transparent;
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.client-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-thumb-item.active {
  border-color: var(--text-main);
}

.client-thumb-item:hover {
  opacity: 0.8;
}

/* ===================================================
   BOTÕES GLOBAIS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-primary {
  background: var(--accent-blue);
  color: #ffffff;
}
.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border-subtle);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}
.btn-danger:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}
.btn-outline:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text-main);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 11.5px;
  border-radius: 6px;
}

/* ===================================================
   ZONA DE UPLOAD
   =================================================== */
.upload-drop-zone {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-0);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  transition: border-color 0.15s ease;
}

.upload-drop-zone:hover {
  border-color: var(--border-strong);
}

.upload-preview-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
}

.upload-btn-main {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 7px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.upload-btn-main:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
}

/* ===================================================
   TOAST DE NOTIFICAÇÃO
   =================================================== */
.admin-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ===================================================
   MODAL DE VÍDEO (PLAYER)
   =================================================== */
.video-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 13, 16, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal-backdrop.active {
  display: flex;
}

.video-modal-content {
  width: 100%;
  max-width: 900px;
  background: var(--surface-0);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(12, 13, 16, 0.8);
  border: none;
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.15s ease;
}

.video-modal-close:hover {
  background: var(--danger-hover);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-wrapper iframe,
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===================================================
   FILTROS DE NICHO / CATEGORIA (PILLS)
   =================================================== */
.filter-pills-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
  margin-bottom: 28px;
}

.filter-pill {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.filter-pill.active {
  background: #ffffff;
  color: #0c0d10 !important;
  font-weight: 700;
  border-color: #ffffff;
}

/* ===================================================
   ECOSSISTEMA DE CLIENTES (PÁGINA CLIENTES)
   =================================================== */
.clients-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.client-ecosystem-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.client-ecosystem-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.client-brand-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-0);
}

.client-logo-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: #000000;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  padding: 4px;
}

.client-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.client-logo-fallback {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-blue);
  letter-spacing: 0.05em;
}

.client-brand-meta {
  flex: 1;
  min-width: 0;
}

.client-brand-name {
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 4px 0;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-niche-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  background: rgba(0, 114, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 114, 255, 0.2);
}

.client-ecosystem-cover {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #000;
}

.client-ecosystem-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.client-ecosystem-card:hover .client-ecosystem-cover img {
  transform: scale(1.04);
}

.client-ecosystem-stats {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.client-ecosystem-stats span {
  background: rgba(12, 13, 16, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--border-subtle);
}

.client-ecosystem-footer {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface-1);
}

.client-visibility-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.vis-tag {
  font-size: 10.5px;
  color: var(--text-secondary);
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}
