/* ============================================================
   ALPHACLIN GALERIA — Estilos Principais
   ============================================================ */

/* --- Fontes ---------------------------------------------------*/
@font-face {
  font-family: 'Sancoale';
  src: url('../fonts/SancoaleBold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sancoale';
  src: url('../fonts/SancoaleMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Sancoale';
  src: url('../fonts/SancoaleRegular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Variáveis ------------------------------------------------*/
:root {
  --blue:        #008bcd;
  --blue-dark:   #006fa3;
  --blue-deeper: #004f78;
  --blue-light:  #e6f5fb;
  --blue-glow:   rgba(0,139,205,0.35);
  --red:         #B7312C;
  --red-glow:    rgba(183,49,44,0.3);
  --white:       #ffffff;
  --bg:          #0c1520;
  --bg2:         #111b28;
  --bg3:         #172030;
  --surface:     rgba(255,255,255,0.04);
  --border:      rgba(255,255,255,0.08);
  --border-blue: rgba(0,139,205,0.3);
  --text:        rgba(255,255,255,0.92);
  --text-muted:  rgba(255,255,255,0.64);
  --text-dim:    rgba(255,255,255,0.48);
  
  /* Espaçamento de texto para melhor legibilidade */
  --letter-spacing-tight: -0.01em;
  --letter-spacing-normal: 0.01em;
  --letter-spacing-relaxed: 0.02em;
  --letter-spacing-loose: 0.04em;
  --line-height-tight: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-photo:0 8px 40px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
  --transition:  0.25s cubic-bezier(0.4,0,0.2,1);
}

/* --- Estilos para Vídeos --------------------------------------*/
.video-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .video-play-overlay {
  opacity: 1;
}

.video-play-button {
  width: 60px;
  height: 60px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 139, 205, 0.4);
}

.video-play-button:hover {
  background: var(--blue-dark);
  transform: scale(1.1);
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  font-family: monospace;
}

.video-item:hover .video-thumb-wrapper img {
  transform: scale(1.05);
}

/* --- Reset ----------------------------------------------------*/
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Sancoale', 'Segoe UI', sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-normal);
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; }

/* --- Scrollbar ------------------------------------------------*/
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-blue); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 900;
  background: rgba(12,21,32,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  letter-spacing: -0.3px;
}

.nav-logo-img {
  height: 55px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: scale(1.05);
}

.nav-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: color 0.2s ease;
}

.nav-logo:hover .nav-title {
  color: var(--blue-light);
}

.nav-separator {
  font-size: 20px;
  color: var(--text-muted);
  margin: 0 1px;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.nav-logo:hover .nav-separator {
  opacity: 0.8;
}

.nav-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: color 0.2s ease;
}

.nav-logo:hover .nav-brand {
  color: var(--text);
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: var(--surface); color: var(--text);
}
.nav-link.admin-btn {
  background: rgba(0,139,205,0.1);
  border: 1px solid var(--border-blue);
  color: var(--blue);
}
.nav-link.admin-btn:hover {
  background: var(--blue); color: white;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 40px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,139,205,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,139,205,0.1);
  border: 1px solid var(--border-blue);
  color: var(--blue);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1; 
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.hero h1 em { font-style: italic; color: var(--blue); }
.hero-sub {
  font-size: 16px; color: var(--text-muted);
  max-width: 480px; margin: 0 auto 40px;
  letter-spacing: var(--letter-spacing-relaxed);
  line-height: var(--line-height-relaxed);
}

/* --- Stats bar -----------------------------------------------*/
.stats-bar {
  display: flex; gap: 32px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 48px;
}
.stat-item { text-align: center; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--blue); line-height: 1; }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ============================================================
   FILTROS / BUSCA
   ============================================================ */
.filters-bar {
  padding: 0 40px 40px;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}

.search-wrap {
  flex: 1; min-width: 200px; max-width: 360px;
  position: relative;
}
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 15px; pointer-events: none;
}
.search-input {
  width: 100%; padding: 10px 16px 10px 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text); font-family: inherit; font-size: 14px;
  letter-spacing: var(--letter-spacing-normal);
  line-height: var(--line-height-normal);
  transition: border-color var(--transition);
  outline: none;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,139,205,0.12); }

.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 7px 16px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  letter-spacing: var(--letter-spacing-normal);
  line-height: var(--line-height-normal);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active {
  background: var(--blue); border-color: var(--blue);
  color: white; box-shadow: 0 4px 12px var(--blue-glow);
}

/* ============================================================
   GRID DE EVENTOS
   ============================================================ */
.events-section { padding: 0 40px 80px; }

.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
}
.section-title { font-size: 22px; font-weight: 700; }
.section-count { font-size: 13px; color: var(--text-muted); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* --- Event Card ----------------------------------------------*/
.event-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  text-decoration: none; color: inherit;
  display: block;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-photo);
  border-color: var(--border-blue);
}

.event-thumb {
  position: relative; height: 200px; overflow: hidden;
  background: var(--bg3);
}
.event-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.event-card:hover .event-thumb img { transform: scale(1.06); }

.event-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; opacity: 0.2;
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
}

.event-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 50%);
  opacity: 0; transition: opacity var(--transition);
}
.event-card:hover .event-overlay { opacity: 1; }

.event-count-badge {
  position: absolute; bottom: 10px; left: 12px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; gap: 5px;
  opacity: 0; transform: translateY(4px);
  transition: all var(--transition);
}
.event-card:hover .event-count-badge { opacity: 1; transform: translateY(0); }

.event-cat-badge {
  position: absolute; top: 10px; right: 10px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 10px; font-weight: 700;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
}

.event-info { padding: 18px 20px; }
.event-name {
  font-size: 16px; font-weight: 700;
  margin-bottom: 6px; 
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-normal);
}
.event-date {
  font-size: 12px; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 10px;
  letter-spacing: var(--letter-spacing-normal);
}
.event-desc {
  font-size: 13px; color: var(--text-muted);
  line-height: var(--line-height-relaxed);
  letter-spacing: var(--letter-spacing-normal);
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; 
  line-clamp: 2;
  overflow: hidden;
}

.event-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}
.event-stats {
  display: flex; align-items: center; gap: 16px;
}
.event-views { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.event-likes { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.event-arrow {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--blue);
  transition: all var(--transition);
}
.event-card:hover .event-arrow {
  background: var(--blue); border-color: var(--blue); color: white;
}

/* Empty state */
.empty-state {
  grid-column: 1/-1; text-align: center;
  padding: 80px 20px;
}
.empty-icon { font-size: 56px; margin-bottom: 16px; opacity: 0.3; }
.empty-text { font-size: 16px; color: var(--text-muted); letter-spacing: var(--letter-spacing-relaxed); }

/* ============================================================
   PÁGINA DO EVENTO
   ============================================================ */
.event-header {
  padding: 48px 40px 40px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.event-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 100% at 0% 0%, rgba(0,139,205,0.08), transparent 70%);
  pointer-events: none;
}

.event-header-inner {
  max-width: 900px;
  display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start;
}

.event-cover-thumb {
  width: 140px; height: 100px;
  border-radius: 12px; overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border-blue);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.event-cover-thumb img { width: 100%; height: 100%; object-fit: cover; }

.event-header-text { flex: 1; min-width: 200px; }
.event-header-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 10px; transition: color var(--transition);
}
.event-header-back:hover { color: var(--blue); }
.event-header-cat {
  display: inline-block;
  padding: 3px 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
  margin-bottom: 10px;
}
.event-header-title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 8px;
}
.event-header-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 14px;
}
.event-header-meta span { display: flex; align-items: center; gap: 5px; }
.event-header-desc {
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
  max-width: 560px; margin-bottom: 20px;
}
.event-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Botões de ação */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  letter-spacing: var(--letter-spacing-normal);
  line-height: var(--line-height-normal);
  transition: all var(--transition); cursor: pointer;
  border: none; font-family: inherit;
}
.btn-primary {
  background: var(--blue); color: white;
  box-shadow: 0 4px 16px var(--blue-glow);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-whatsapp {
  background: #25D366; color: white;
}
.btn-whatsapp:hover { background: #1eb354; }

/* --- Masonry Grid -------------------------------------------*/
.gallery-container { padding: 40px; }

.gallery-grid {
  columns: 4 280px;
  column-gap: 16px;
  orphans: 1; widows: 1;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--bg3);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-photo);
  z-index: 1;
}

.gallery-item img {
  width: 100%; display: block;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, transparent 50%);
  opacity: 0; transition: opacity var(--transition);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-zoom {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%) scale(0.8);
  opacity: 0; transition: all var(--transition);
  background: rgba(0,0,0,0.6);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.gallery-item:hover .gallery-item-zoom {
  opacity: 1; transform: translate(-50%,-50%) scale(1);
}

.gallery-caption {
  font-size: 11px; color: rgba(255,255,255,0.8);
  transform: translateY(4px); transition: transform var(--transition);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

.gallery-views {
  font-size: 10px; color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.97);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-overlay.open {
  opacity: 1; pointer-events: all;
}

.lb-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.lb-event-name {
  font-size: 13px; font-weight: 600; color: var(--white);
}
.lb-counter { font-size: 12px; color: var(--text-muted); }
.lb-topbar-actions { display: flex; gap: 8px; align-items: center; }

.lb-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px;
  font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  transition: all var(--transition); cursor: pointer;
  font-family: inherit;
}
.lb-btn:hover { background: rgba(255,255,255,0.12); color: var(--white); }
.lb-btn.active { background: var(--blue); border-color: var(--blue); color: white; }
.lb-btn.download-btn { background: rgba(0,139,205,0.15); border-color: var(--border-blue); color: var(--blue); }
.lb-btn.download-btn:hover { background: var(--blue); color: white; }
.lb-btn.whatsapp-btn { background: rgba(37,211,102,0.12); border-color: rgba(37,211,102,0.3); color: #25D366; }
.lb-btn.whatsapp-btn:hover { background: #25D366; color: white; }
.lb-close-btn {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(183,49,44,0.15);
  border: 1px solid rgba(183,49,44,0.3);
  color: var(--red); font-size: 16px;
  transition: all var(--transition); cursor: pointer;
}
.lb-close-btn:hover { background: var(--red); color: white; }

/* Main photo area */
.lb-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 20px 80px; /* Aumentado padding lateral */
  min-height: 400px; /* Altura mínima garantida */
}

.lb-photo-wrap {
  max-width: 100%; max-height: 100%;
  display: block;
  position: relative;
  transition: overflow 0.25s ease;
}

.lb-photo {
  max-width: 90%; max-height: 85vh; /* Limitar altura para não cortar */
  object-fit: contain;
  border-radius: 8px;
  box-shadow: var(--shadow-photo);
  transition: opacity 0.25s ease, transform 0.25s ease, max-width 0.25s ease, max-height 0.25s ease;
  cursor: zoom-in;
  width: auto;
  height: auto;
}
.lb-photo.zoomed { 
  cursor: zoom-out; 
  max-width: none;
  max-height: none;
  width: auto !important;
  height: auto !important;
  object-fit: none !important;
  transition: transform 0.3s ease;
}
.lb-photo.zoomed ~ .lb-nav-btn {
  opacity: 0.3;
}
.lb-main.zoomed .lb-photo-wrap {
  overflow: visible;
}
.lb-photo.fade { opacity: 0; }

.lb-nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 20px;
  transition: all var(--transition); cursor: pointer; z-index: 2;
}
.lb-nav-btn:hover {
  background: var(--blue); border-color: var(--blue);
  box-shadow: 0 4px 20px var(--blue-glow);
}
.lb-nav-btn.prev { left: 16px; }
.lb-nav-btn.next { right: 16px; }
.lb-nav-btn:disabled { opacity: 0.2; cursor: default; }
.lb-nav-btn:disabled:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); box-shadow: none; }

/* Caption */
.lb-caption {
  text-align: center; padding: 12px 24px 8px;
  font-size: 14px; color: var(--white);
  min-height: 24px; flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  font-weight: 500;
}

/* Photo Info Section - abaixo da foto */
.lb-photo-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 8px 16px 10px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 0;
  width: 100%;
  box-sizing: border-box;
}

.photo-info-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.photo-info-icon {
  font-size: 12px;
  opacity: 0.9;
}

.photo-info-text {
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Thumbnail strip */
.lb-strip-wrap {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
  overflow: hidden;
}
.lb-strip {
  display: flex; gap: 8px;
  overflow-x: auto; scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-blue) transparent;
}
.lb-strip::-webkit-scrollbar { height: 3px; }
.lb-strip::-webkit-scrollbar-thumb { background: var(--border-blue); border-radius: 2px; }

.lb-thumb {
  width: 72px; height: 52px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--transition), transform var(--transition);
  cursor: pointer; opacity: 0.6; transition: all var(--transition);
}
.lb-thumb:hover { opacity: 0.85; transform: translateY(-2px); }
.lb-thumb.active {
  border-color: var(--blue);
  opacity: 1;
  box-shadow: 0 4px 12px var(--blue-glow);
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Slideshow progress bar */
.lb-progress {
  position: absolute; bottom: 0; left: 0;
  height: 2px; background: var(--blue);
  width: 0%; transition: width linear;
  box-shadow: 0 0 8px var(--blue);
}

/* ============================================================
   SHARE MODAL
   ============================================================ */
.share-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.share-modal-overlay.open { opacity: 1; pointer-events: all; }

.share-modal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8);
  transform: scale(0.95); transition: transform 0.25s ease;
}
.share-modal-overlay.open .share-modal { transform: scale(1); }

.share-modal-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.share-options { display: flex; flex-direction: column; gap: 10px; }
.share-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  cursor: pointer; transition: all var(--transition);
  font-size: 14px; font-weight: 500; color: var(--text);
}
.share-option:hover { border-color: var(--blue); background: rgba(0,139,205,0.08); }
.share-option-icon { font-size: 22px; width: 28px; text-align: center; }

.share-link-wrap {
  display: flex; gap: 8px; margin-top: 16px;
}
.share-link-input {
  flex: 1; padding: 9px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-muted);
  font-size: 12px; font-family: monospace;
  outline: none;
}
.share-copy-btn {
  padding: 9px 16px; border-radius: 8px;
  background: var(--blue); color: white;
  font-size: 12px; font-weight: 600;
  transition: background var(--transition);
}
.share-copy-btn:hover { background: var(--blue-dark); }

.share-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-muted);
  cursor: pointer; transition: all var(--transition);
}
.share-modal-close:hover { background: var(--red); color: white; border-color: var(--red); }
.share-modal { position: relative; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 99999;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}
.toast {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: toastIn 0.3s ease;
  max-width: 300px;
}
.toast.success { border-color: rgba(121,192,0,0.4); color: #79C000; }
.toast.error   { border-color: rgba(183,49,44,0.4);  color: var(--red); }
.toast.info    { border-color: var(--border-blue);    color: var(--blue); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 40px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  color: var(--text-muted); font-size: 12px;
}
.footer-logo { 
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-img {
  height: 24px;
  width: auto;
  opacity: 0.9;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.footer-credit {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.7;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.footer-credit:hover {
  opacity: 1;
}

/* ============================================================
   FONT AWESOME ICONS STYLING
   ============================================================ */
.fa-solid, .fa-brands {
  transition: all 0.2s ease;
}

/* Icon colors */
.fa-heart {
  color: var(--red);
}

.fa-heart:hover {
  color: #dc2626;
  transform: scale(1.1);
}

.fa-eye {
  color: var(--text-muted);
}

.fa-calendar {
  color: var(--text-muted);
}

.fa-comment {
  color: var(--blue);
}

.fa-comment:hover {
  color: var(--blue-light);
}

.fa-search {
  color: var(--text-muted);
}

.fa-gear {
  color: var(--text-muted);
}

.fa-gear:hover {
  color: var(--blue);
}

.fa-camera {
  color: var(--text-muted);
}

.fa-star {
  color: var(--yellow);
}

.fa-download {
  color: var(--text-muted);
}

.fa-download:hover {
  color: var(--blue);
}

.fa-play {
  color: var(--text-muted);
}

.fa-play:hover {
  color: var(--blue);
}

.fa-link {
  color: var(--text-muted);
}

.fa-link:hover {
  color: var(--blue);
}

.fa-xmark {
  color: var(--text-muted);
}

.fa-xmark:hover {
  color: var(--red);
}

.fa-whatsapp {
  color: #25d366;
}

.fa-whatsapp:hover {
  color: #128c7e;
}

.fa-envelope {
  color: var(--text-muted);
}

.fa-envelope:hover {
  color: var(--blue);
}

/* Icon sizes */
.search-icon {
  font-size: 14px;
}

.empty-icon i {
  font-size: 48px;
}

.photo-info-icon {
  font-size: 12px;
  width: 12px;
  display: inline-block;
  text-align: center;
}

.gallery-item-zoom i {
  font-size: 16px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: 1400px; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ============================================================
   LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--bg3) 25%, var(--bg2) 50%, var(--bg3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Tablet and medium screens adjustments */
@media (max-width: 1200px) {
  .comments-section {
    padding: 0 30px;
  }
}

@media (max-width: 900px) {
  .comments-section {
    padding: 0 20px;
  }
}

/* Mobile navbar adjustments */
@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
    height: 64px;
  }
  
  .nav-title {
    font-size: 20px;
    letter-spacing: -0.3px;
  }
  
  .nav-separator {
    font-size: 16px;
    margin: 0 6px;
  }
  
  .nav-brand {
    font-size: 20px;
    letter-spacing: -0.3px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 16px;
    height: 60px;
  }
  
  .nav-logo-img {
    height: 36px;
  }
  
  .nav-title {
    font-size: 18px;
  }
  
  .nav-separator {
    font-size: 14px;
    margin: 0 4px;
  }
  
  .nav-brand {
    font-size: 18px;
  }
  
  .nav-links {
    gap: 4px;
  }
  
  .nav-link {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* Footer mobile adjustments */
  .site-footer {
    padding: 24px 20px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-info {
    align-items: center;
    gap: 4px;
  }

  .footer-credit {
    font-size: 10px;
  }
}

@media (max-width: 900px) {
  .navbar { padding: 0 20px; }
  .hero { padding: 48px 20px 40px; }
  .filters-bar, .events-section, .gallery-container { padding-left: 20px; padding-right: 20px; }
  .event-header { padding: 32px 20px; }
  .gallery-grid { columns: 2 180px; }
  .lb-main { padding: 16px 56px; }
  .nav-subtitle { display: none; }
}
@media (max-width: 600px) {
  .gallery-grid { columns: 2 140px; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .lb-main { padding: 12px 48px; }
  .lb-btn span { display: none; }
  .events-grid { grid-template-columns: 1fr; }
  .site-footer { justify-content: center; text-align: center; }
  
  /* Ajustes para texto do evento no mobile */
  .lb-event-name {
    font-size: 11px;
    line-height: 1.3;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  
  /* Ajustar topbar para mobile */
  .lb-topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .lb-topbar-actions {
    order: 3;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }
}

/* ============================================================
   CURTIDAS E COMENTÁRIOS
   ============================================================ */

/* CURTIDAS */
.photo-like-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 4px 8px;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 2;
}

.gallery-item:hover .photo-like-btn {
  opacity: 1;
  transform: translateY(0);
}

.photo-like-btn.liked {
  background: rgba(183, 49, 44, 0.95);
  border-color: #B7312C;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(183, 49, 44, 0.6);
  transform: scale(1.05);
}

.event-like-btn.liked {
  background: #B7312C;
  border-color: #B7312C;
  color: white;
  box-shadow: 0 0 12px rgba(183, 49, 44, 0.6);
}

.lb-btn.like-btn.liked {
  background: rgba(183, 49, 44, 0.3);
  border-color: #B7312C;
  color: #B7312C;
  box-shadow: 0 0 8px rgba(183, 49, 44, 0.4);
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  25% { transform: scale(1.4); }
  50% { transform: scale(1.2); }
  75% { transform: scale(1.3); }
  100% { transform: scale(1.05); }
}

@keyframes heartGlow {
  0%, 100% { box-shadow: 0 0 12px rgba(183, 49, 44, 0.6); }
  50% { box-shadow: 0 0 20px rgba(183, 49, 44, 0.8); }
}

.like-pulse {
  animation: heartPulse 0.4s ease, heartGlow 0.4s ease;
}

/* COMENTÁRIOS */
.comments-section {
  width: 100%;
  max-width: none; /* Largura total da tela */
  margin: 60px 0 40px;
  padding: 0 20px; /* Padding mínimo */
  box-sizing: border-box;
}

.comment-form-container {
  width: 100%;
  max-width: none; /* Largura total */
  margin: 0 0 40px 0;
}

.comment-form {
  width: 100%;
  max-width: none; /* Formulário também com largura total */
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.comment-form-container {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

.identity-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px dashed var(--border-blue);
  border-radius: 10px;
  background: rgba(0, 139, 205, 0.08);
}

.identity-status {
  font-size: 12px;
  color: var(--text);
}

.identity-actions {
  display: flex;
  gap: 8px;
}

.comment-form {
  width: 100% !important;
  max-width: none !important;
}

.comment-form .form-input,
.comment-form .form-textarea {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}


.comment-form .form-group {
  margin-bottom: 16px;
}

.comment-form .form-input,
.comment-form .form-textarea {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  padding: 12px 16px !important;
  color: var(--white) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  transition: border-color var(--transition) !important;
}


.comment-form .form-input:focus,
.comment-form .form-textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.comment-form .form-textarea {
  resize: vertical;
  min-height: 80px;
}

.comment-char-counter {
  text-align: right;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.comments-list-container {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.comment-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-author {
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.comment-text {
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 8px;
}

.comment-date {
  font-size: 12px;
  color: var(--text-muted);
}

.no-comments {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.no-comments-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-comments-text {
  font-size: 16px;
}

/* Mobile adjustments for comments */
@media (max-width: 600px) {
  .comments-section {
    margin: 12px 0 12px;
    padding: 0 16px;
  }
  
  .comment-form-container,
  .comments-list-container {
    padding: 12px;
  }
  
  .section-header {
    margin-bottom: 16px;
    text-align: left;
  }
  
  .section-title {
    font-size: 16px;
    margin-bottom: 2px;
  }
  
  .section-subtitle {
    font-size: 11px;
    margin-bottom: 0;
  }
  
  .comment-form-container {
    margin-bottom: 16px;
  }
  
  .comment-form .form-group {
    margin-bottom: 12px;
  }
  
  .comment-form .form-input,
  .comment-form .form-textarea {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  /* Lightbox info mobile adjustments */
  .lb-photo-info {
    flex-direction: row;
    gap: 12px;
    padding: 4px 12px 6px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .photo-info-item {
    font-size: 10px;
    gap: 3px;
  }

  .photo-info-icon {
    font-size: 11px;
  }

  .lb-caption {
    font-size: 12px;
    padding: 8px 16px 4px;
  }
}

/* Desktop adjustments para lightbox */
@media (min-width: 1200px) {
  .lb-main {
    padding: 20px 100px; /* Mais espaço em telas grandes */
  }
  
  .lb-photo {
    max-width: 85%; /* Um pouco menor em telas muito grandes */
    max-height: 80vh;
  }
}

@media (min-width: 1600px) {
  .lb-main {
    padding: 20px 120px; /* Mais espaço em telas ultra-wide */
  }
  
  .lb-photo {
    max-width: 80%;
    max-height: 75vh;
  }
}

/* ============================================================
   EVENT TABS SYSTEM
   ============================================================ */
.event-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.tab-btn {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: var(--letter-spacing-tight);
  position: relative;
  z-index: 1;
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.tab-btn.active {
  background: var(--bg2);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn .badge {
  background: var(--blue);
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.tab-content {
  position: relative;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Gallery with stats */
.gallery-item-stats {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  backdrop-filter: blur(10px);
}

.gallery-item-stats span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Video badge */
.video-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-badge i {
  font-size: 10px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .event-tabs {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    flex: 1 1 calc(50% - 2px);
    min-width: 120px;
    font-size: 13px;
    padding: 10px 12px;
  }
  
  .comments-section {
    padding: 0 16px; /* Menos padding em mobile */
  }
}
