/* ==========================================================================
   1. VARIÁVEIS E CONFIGURAÇÕES GERAIS
   ========================================================================== */
:root {
  --bg: #f7f7f8;         /* Cor de fundo do site */
  --panel: #ffffff;      /* Cor de fundo de painéis/cards */
  --text: #0f1217;       /* Cor do texto principal */
  --muted: #949da7;      /* Cor de texto secundário (cinza) */
  --border: #e5e7eb;     /* Cor das bordas */
  --accent: #ED1C24;     /* Cor de destaque (Vermelho) */
  --card-bg: #f0f2f5;    /* Fundo alternativo */
  
  --radius: 14px;        /* Arredondamento padrão */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  
  --z-header: 1000;      /* Camada do cabeçalho */
  --z-dropdown: 900;     /* Camada dos menus */
}

*, *::before, *::after { box-sizing: border-box; }

/*Zera margens do site*/
body, button, input, textarea, select, p, h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

body, button, input, textarea, select {
  margin: 0;
  font-family: 'Rubik', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden; /* Previne scroll horizontal indesejado */
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   2. HEADER (CABEÇALHO) - ESTRUTURA
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);  
  transition: box-shadow 0.3s ease, padding 0.3s ease;
  width: 100%;
  padding-top: 10px;  
  background-color: var(--panel);
}

/* --- Topo: Linha superior com Logos e Menu --- */
.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: relative;
}

/* --- LADO ESQUERDO (Logo Pequeno + Menu Desktop) --- */
.header__left {
  display: flex;
  align-items: center;
  gap: 0px;
  flex: 1;
}

.logo-small {
  display: block;
  width: 0; /* Escondido inicialmente */
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  transform: translateX(-20px);
}
.logo-small img { height: 32px; width: auto; }

.nav-desktop {
  display: flex;
  gap: 55px;
}

/* --- CENTRO (Logo Grande + Busca Compacta) --- */
.header__center {
  position: absolute;
  left: 48%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-large {
  display: block;
  transition: all 0.4s ease;
  opacity: 1;
  transform: scale(1);
}
.logo-large img { height: 55px; width: auto; display: block; }

/* Busca Compacta (Escondida inicialmente, aparece no scroll) */
.search-compact {
  position: absolute;
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 10px;
  padding: 5px 15px;
  width: 300px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s ease;
  border: 1px solid var(--border);
}
.search-compact input {
  border: none; background: transparent; outline: none;
  width: 100%; font-size: 14px; color: var(--text);
}

/* AJUSTE 3: Placeholder (texto de dica) mais claro */
.search-compact input::placeholder {
  color: #b0b0b0; /* Cinza claro */
  opacity: 1;
}

.search-compact button {
  background: none; border: none; color: var(--accent); cursor: pointer;
}

/* --- LADO DIREITO (Login, Favoritos) --- */
.header__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 50px;
  flex: 1;
  
}

/* Botão Hambúrguer (Mobile) */
.menu-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer;
  display: none; /* Escondido no Desktop */
  align-items: center; justify-content: center;
  color: var(--text);
  font-size: 16px;
  transition: all 0.2s;
}
.menu-toggle:hover { background: var(--bg); }

/* Links de Navegação Gerais */
.nav__link {
  text-decoration: none;
  color: var(--text);
  font-weight: 400;
  font-size: 13px;
  text-transform: uppercase;
  transition: all 0.2s ease-out; 
  white-space: nowrap;  
  letter-spacing: -0.2px;
  border-radius: var(--radius);
  padding: 8px 14px;  
}
.nav__link:hover { 
  background-color: var(--card-bg); 
  transform: translateY(-2px); 
  box-shadow: 0 4px 10px rgba(10, 12, 16, 0.1); 
}

/* Link de Login (Estilo Pílula) */
.nav__link--login {
  text-transform: uppercase;
  background: var(--card-bg);
  padding: 6px 14px;
  border-radius: 99px;
  display: flex; align-items: center; gap: 8px;
}
.nav__link--login i { font-size: 18px; }
.user-greeting { font-size: 12px; }
.user-name { color: var(--accent); font-weight: 700; }

/* --- PARTE INFERIOR (BUSCA HERO GRANDE) --- */
.header__bottom {
  overflow: visible; /* Agora permitimos que a lista "transborde" */
  max-height: 100px;
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 10px;
  padding-bottom: 20px;
  position: relative;
  z-index: 2000; /* Garante que essa caixa fique ACIMA do banner */
}
.search-hero .input-wrapper {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding-top: 10px;
}
.search-hero input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(10, 12, 16, 0.05);
  flex-grow: 1; 
  /* Ícone de lupa via CSS SVG */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235f6b7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center; 
  padding-left: 48px; 
  padding-right: 100px; 
}

/* AJUSTE 3: Placeholder (texto de dica) mais claro na busca grande */
.search-hero input::placeholder {
  color: #b0b0b0; /* Cinza claro */
  opacity: 1;
}

.search-hero input:focus {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(237, 28, 36, 0.1);
}
.search-hero button {
  position: absolute;
  right: 10px;
  background: none; border: none;
  color: var(--accent);
  font-weight: 700; 
  font-size: 12px;
  cursor: pointer;  
}

/*10. BUSCA RICA (AUTOCOMPLETE COM FOTO)*/ 
.search-results-box {
  position: absolute;
  top: 100%; /* Cola logo abaixo do input */
  left: 0;
  width: 100%;
  background: white;
  border: 1px solid var(--border);
  border-radius: 0 0 14px 14px; /* Arredonda só em baixo */
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  z-index: 9999;
  max-height: 400px;
  overflow-y: auto;
  display: none; /* Escondido por padrão */
}

/* Item da lista */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
  text-decoration: none; /* Remove sublinhado de link */
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background-color: #f9f9f9; }

/* Imagem redondinha */
.search-item-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #eee;
}

/* Textos */
.search-item-info { display: flex; flex-direction: column; }
.search-item-name { font-size: 14px; font-weight: 600; color: var(--text); }
.search-item-type { font-size: 11px; color: var(--muted); text-transform: uppercase; }

/* ==========================================================================
   3. HEADER - COMPORTAMENTO SCROLL (DESKTOP)
   ========================================================================== */
body.is-scrolled .site-header {
  box-shadow: var(--shadow-sm);
  padding-top: 0px;
  padding-bottom: 0px;
  background-color: var(--panel);
}

/* 1. Transforma o container em linha contínua */
body.is-scrolled .header__top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 50px;
}

/* 2. O Centro (Logo+Busca) vai para o INÍCIO */
body.is-scrolled .header__center {
  position: relative;
  transform: none;
  left: auto; top: auto;
  display: flex;
  align-items: center;
  gap: 50px;
  order: -1;
  margin-right: auto;
}

/* LOGO no Scroll */
body.is-scrolled .logo-large {
  display: block; opacity: 1; pointer-events: auto; transform: none;
}
body.is-scrolled .logo-large img { height: 35px; width: auto; }
body.is-scrolled .logo-small { display: none; }

/* BUSCA no Scroll */
body.is-scrolled .search-compact {
  position: relative; opacity: 1; visibility: visible; transform: none; width: 380px;
}

/* 3. Ajuste dos Blocos Laterais */
body.is-scrolled .header__left,
body.is-scrolled .header__right {
  flex: 0 0 auto;
  width: auto;
  gap: 55px;
}

body.is-scrolled .header__left { display: flex; order: 2; }
body.is-scrolled .header__right { order: 3; }

/* Oculta itens desnecessários no scroll */
body.is-scrolled .hide-on-scroll { display: none !important; }
body.is-scrolled .header__bottom {
  max-height: 0; opacity: 0; padding: 0; margin: 0; pointer-events: none;
}

/* ==========================================================================
   4. COMPONENTES: BANNERS, CARDS E SEÇÕES
   ========================================================================== */
.main { padding-top: 30px; }

/* --- BANNER PRINCIPAL --- */
.banner {
  position: relative; width: 100%; height: 380px;
  overflow: hidden; border-radius: var(--radius); margin-bottom: 40px;
}
.banner__slider { display: flex; height: 100%; transition: transform 0.5s ease; }
.banner__item { flex: 0 0 100%; }
.banner__item img { width: 100%; height: 100%; object-fit: cover; }

/* AJUSTE 6: Classes para Banner Responsivo */
.banner-img-desktop { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-img-mobile { display: none; } /* Esconde o mobile por padrão */

/* Navegação do Banner (Bolinhas) */
.banner__dots {
  position: absolute; bottom: 15px; left: 2%;
  display: flex; gap: 10px; z-index: 10;
}
.banner__dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: none; background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer; padding: 0; transition: all 0.3s ease;
}
.banner__dot.active {
  background-color: #fff; transform: scale(1.3);
}

/* --- CARROUSEL E GRIDS --- */
.section__heading { font-size: 20px; margin-bottom: 16px; color: #333; }
.carousel__wrapper { position: relative; }
.carousel__grid {
  display: flex; gap: 16px; overflow-x: auto;
  padding: 4px 4px 20px 4px; scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel__grid::-webkit-scrollbar { display: none; }

/* Botões do Carrossel */
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  cursor: pointer; z-index: 10; box-shadow: var(--shadow-sm);
  font-size: 20px; color: var(--text); transition: 0.2s;
}
.carousel__btn:hover {
  color: var(--accent); border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
}
.carousel__btn--prev { left: -20px; }
.carousel__btn--next { right: -20px; }
.carousel__btn:disabled { opacity: 0; pointer-events: none; }

/* --- CARDS (ARTISTAS) --- */
.card {
  flex: 0 0 180px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  
  /* AJUSTE 2: Tira a cara de link (Remove sublinhado e cor azul) */
  text-decoration: none !important;
  color: var(--text) !important;
  display: block; /* Garante que funcione como bloco clicável */
}
.card:hover { 
  transform: translateY(-4px); 
  box-shadow: var(--shadow-md); 
  color: var(--text) !important; /* Mantém a cor original no hover */
}
.card__art {
  aspect-ratio: 1/1; border-radius: 10px;
  background-size: cover; background-position: center; margin-bottom: 8px;
}
.card__title { font-size: 14px; font-weight: 400; margin: 0; }

/* Especificidade para grade de Artistas */
#cardsGrid .card { flex: 0 0 130px; }
#cardsGrid .card__title { font-size: 13px; }

/* Especificidade para grade de Eventos (Vou nessa turnê) */
#trendingGrid .card { flex: 0 0 130px; }
#trendingGrid .card__title { font-size: 13px; }

/* ==========================================================================
   5. MENU MOBILE DROPDOWN
   ========================================================================== */
.mobile-menu {
  position: absolute; top: 70px; right: 24px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  width: 250px; padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: all 0.2s ease; z-index: var(--z-dropdown);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav hr { border: 0; border-top: 1px solid var(--border); width: 100%; margin: 8px 0; }
.mobile-nav .nav__link { padding: 10px; border-radius: 8px; display: block; }
.mobile-nav .nav__link:hover { background: var(--card-bg); }

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
/* AJUSTE 1: Diminuir margem/altura do final do site */
.site-footer {
  border-top: 1px solid var(--border); 
  padding: 25px 0;
  margin-top: 60px; 
  background: #fff; 
  text-align: center;
}
.footer__social-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; }
.footer__social-link i { font-size: 24px; color: var(--muted); transition: 0.2s; }
.footer__social-link:hover i { color: var(--accent); }
.footer__copyright { font-size: 12px; color: var(--muted); margin: 0; }

/* ==========================================================================
   7. PRELOADER (TELA DE CARREGAMENTO)
   ========================================================================== */
.preloader {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background-color: var(--bg); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  /* Efeito de abertura circular */
  clip-path: circle(100% at 50% 50%);
  transition: clip-path 0.8s ease-in-out;
}
.preloader img {
  width: 100px; height: auto;
  animation: pulse 1.5s infinite ease-in-out;
}
.preloader.is-loaded {
  clip-path: circle(0% at 50% 50%);
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* ==========================================================================
   8. ÍCONES CUSTOMIZADOS E ELEMENTOS GERAIS
   ========================================================================== */
.custom-icon {
  width: 24px; height: 24px;
  object-fit: contain; display: block;
}

.mobile-user-pill .menu-toggle { font-size: 0; }
.mobile-user-pill .nav__link--login i { display: none; }
.mobile-user-pill { display: contents; }
.mobile-user-pill .nav__link--login {
  background: none !important; padding: 0; width: auto; height: auto; border: none;
}

/* Regra para posicionar o menu na esquerda quando NÃO houver scroll */
body:not(.is-scrolled) .menu-toggle {
  position: absolute; left: 15px; top: 50%;
  transform: translateY(-50%); z-index: 10;
}

/* ==========================================================================
   9. CONFIGURAÇÕES MOBILE (SOBRESCRITA FINAL)
   Esta seção garante que o layout mobile funcione corretamente
   ========================================================================== */
@media (max-width: 992px) {
  
  /* AJUSTE 6: Banner Mobile Ativo */
  .banner-img-desktop { display: none !important; }
  .banner-img-mobile { display: block !important; width: 100%; height: 100%; object-fit: cover; }
  /* Ajusta altura do banner no mobile para caber imagem vertical */
  .banner { height: 450px; } 

  /* --- ÍCONES NO MOBILE --- */
  .custom-icon { width: 28px; height: 28px; }
  .nav__link--login i, .menu-toggle i { display: none !important; }

  /* --- ESTADO PADRÃO (Sem Scroll) --- */
  .header__top {
    display: flex; align-items: center; justify-content: space-between;
    position: relative; height: 60px;    
  }

  /* Oculta elementos de Desktop */
  .header__left, .search-compact, .desktop-only, .nav__link .user-greeting {
    display: none !important;
  }
  .header__right .nav__link:not(.nav__link--login) {
    display: none !important;
  }

  /* LOGO (Centralizado) */
  .header__center {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: auto; height: 100%;
    display: flex; align-items: center; justify-content: center;
    z-index: 1;
    margin: 0; order: 1;
  }
  .logo-large { display: block !important; opacity: 1 !important; }
  .logo-large img { height: 50px; }

  /* LADO DIREITO (Login/Pílula) */
  .header__right {
    margin-left: auto; flex: 0 0 auto;
    display: flex; align-items: center; z-index: 2;
    order: 2;
  }
  
  /* Botão Menu (Sempre visível no mobile) */
  .menu-toggle { display: flex; }

  /* --- ESTILO "SYMPLA" (Pílula Mobile) --- */
  .mobile-user-pill {
    display: flex; align-items: center; 
    /* AJUSTE 4: Aumentar espaçamento (gap) entre menu e login */
    gap: 15px; /* Era 0px */
    padding: 2px 2px 2px 8px;
    border: 1px solid var(--border);
    border-radius: 99px; background: var(--panel);
  }
  .mobile-user-pill .menu-toggle {
    display: flex !important; border: none !important;
    background: none !important; padding: 0;
    color: var(--muted); font-size: 18px;
  }
  .mobile-user-pill .nav__link--login {
    display: flex !important; align-items: center; justify-content: left;
    background: var(--bg) !important; color: var(--muted) !important;
    border-radius: 50%; width: 32px; height: 32px;  
    padding: 0 !important; border: none;
  }
  .mobile-user-pill .nav__link--login i {
    font-size: 30px; color: #b1b8c1;
  }

  /* BUSCA GRANDE (Hero) Mobile */
  .header__bottom {
    display: block !important; max-height: none !important;
    opacity: 1 !important; padding: 20px 0 20px 0; margin-top: 0;
  }

  /* --- ESTADO COM SCROLL (Mobile) --- */
  body.is-scrolled .site-header { padding-bottom: 0; }
  
  body.is-scrolled .header__top {
    justify-content: space-between; gap: 10px;
  }

  /* ORDEM 1: Logo Compacto (Esquerda) */
  body.is-scrolled .header__left {
    display: flex !important; flex: 0 0 auto; width: auto;
    order: 1; margin: 0;
  }
  body.is-scrolled .logo-small {
    display: block !important; opacity: 1 !important;
    width: 32px; transform: none;
  }
  body.is-scrolled .nav-desktop { display: none; } 

  /* ORDEM 2: Busca (Meio) */
  body.is-scrolled .header__center {
    position: static; transform: none; display: flex;
    flex: 1; order: 2; margin: 0 10px;
    width: 100%;
  }
  body.is-scrolled .logo-large { display: none !important; }
  
  body.is-scrolled .search-compact {
    display: flex !important; position: relative; width: 100%;
    visibility: visible; transform: none; height: 38px;
    padding: 5px 10px; margin: 0;
  }
  body.is-scrolled .search-compact input { font-size: 13px; }

  /* ORDEM 3: Ícones (Direita) */
  body.is-scrolled .header__right {
    display: flex !important; width: auto; order: 3;
  }
  
  /* Esconde a busca grande */
  body.is-scrolled .header__bottom { display: none !important; }
}
/* ==========================================================================
   11. PÁGINA FALE CONOSCO
   ========================================================================== */
.contact-hero {
  text-align: center;
  padding: 60px 20px 40px;
}
.contact-hero h1 { font-size: 2.5rem; margin-bottom: 10px; }
.contact-hero p { color: var(--muted); max-width: 600px; margin: 0 auto; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.contact-card {
  background: white;
  padding: 40px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; /* Remove sublinhado */
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.contact-icon-box {
  width: 70px; height: 70px;
  background: #fdf2f2; /* Fundo vermelhinho claro */
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 30px;
}

.contact-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.contact-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--text);
  color: white;
  transition: background 0.2s;
}

/* Cores específicas para cada botão */
.btn-whatsapp { background: #25D366; }
.btn-whatsapp:hover { background: #1ebc57; }

.btn-email { background: var(--accent); }
.btn-email:hover { background: #d01019; }

.btn-instagram { background: #E1306C; }
.btn-instagram:hover { background: #c1275b; }

/* ==========================================================================
   12. PÁGINA DE LISTAGEM (ARTISTAS)
   ========================================================================== */
.page-header {
  padding: 40px 0 30px;
  text-align: center;
}
.page-header h1 { font-size: 2rem; margin-bottom: 10px; }
.page-header p { color: var(--muted); }

/* Grid Inteligente: Preenche o espaço disponível */
.artists-grid-wrapper {
  display: grid;
  /* Cria colunas de no mínimo 150px. Se sobrar espaço, divide igual. */
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); 
  gap: 20px;
  padding-bottom: 60px;
}

/* Ajuste fino para o Card dentro dessa grade nova */
.artists-grid-wrapper .card {
  width: 100%; /* O card ocupa 100% da coluna da grade */
  flex: none;  /* Remove comportamento do carrossel */
}

/* Mensagem quando não acha nada */
.empty-state {
  text-align: center;
  padding: 60px;
  color: var(--muted);
  width: 100%;
  grid-column: 1 / -1; /* Ocupa a linha toda */
}
/* ==========================================================================
   13. MELHORIAS VISUAIS (Iniciais, Contador e Animação)
   ========================================================================== */

/* 1. Contador de Eventos */
.card__meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
  display: block;
}

/* 2. Avatar com Iniciais (Quando não tem foto) */
.card__initials {
  width: 100%;
  aspect-ratio: 1/1; /* Garante que seja quadrado */
  border-radius: 10px;
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem; /* Tamanho da letra */
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

/* 3. Animação de Entrada (Cascata) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px); /* Começa mais embaixo */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* Sobe para o lugar certo */
  }
}

/* Aplica a animação nos cards da grid */
.artists-grid-wrapper .card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0; /* Começa invisível para a animação funcionar */
}
/* ==========================================================================
   15. ESTILO UNIFICADO DE EVENTOS (Artist & Events Page)
   ========================================================================== */

/* A Linha do Evento (O Container) */
.event-row {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Garante distribuição */
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 10px;
  transition: all 0.2s;
}
.event-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #ddd;
}

/* 1. CAIXA DA DATA (Esquerda) */
.date-box {
  display: flex;
  flex-direction: column; /* Um em cima do outro */
  align-items: center;
  justify-content: center;
  min-width: 50px;
  margin-right: 20px;
}
.date-month {
  font-size: 0.75rem; /* Pequeno */
  font-weight: 800;
  color: #ED1C24; /* Vermelho da marca */
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2px;
}
.date-day {
  font-size: 1.5rem; /* Grande */
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

/* 2. FOTO DO ARTISTA (Só na pag eventos) */
.event-row-artist-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin-right: 20px;
  flex-shrink: 0; /* Não deixa a imagem esmagar */
  border: 1px solid #eee;
}

/* 3. INFORMAÇÕES (Meio - Ocupa o espaço que sobrar) */
.event-info {
  flex: 1; /* O PULO DO GATO: Isso empurra o botão para o final */
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-right: 15px; /* Espaço antes do botão */
}
.event-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.2;
}
.event-meta-row {
  font-size: 0.85rem;
  color: #6a6a6a;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.separator-pipe {
  display: inline-block;
  width: 1px;
  height: 10px;
  background-color: #ccc;
  margin: 0 8px;
}

/* 4. BOTÃO DE AÇÃO (Direita) */
.event-action-box {
  flex-shrink: 0; /* Garante que o botão não encolha */
}

/* Botão Desktop */
.ticket-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent); color: white;
  padding: 10px 28px; /* Mais larguinho */
  border-radius: 50px;
  font-size: 0.9rem; font-weight: 700;
  text-decoration: none; transition: 0.2s;
  white-space: nowrap;
}
.ticket-btn:hover { background: #d01019; transform: scale(1.05); color: white; }

/* Botão Mobile */
.mobile-ticket-link { display: none; }
.mobile-ticket-icon { width: 32px; height: 32px; }

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .event-row-artist-img, .ticket-btn { display: none !important; }
  .mobile-ticket-link { display: block !important; }
  
  .event-row { padding: 12px 15px; }
  .date-box { margin-right: 15px; min-width: 40px; }
  .date-day { font-size: 1.3rem; }
  
  .event-info { margin-right: 10px; }
  .event-title { font-size: 0.9rem; }
  .event-meta-row { font-size: 0.75rem; }
}
/* ==========================================================================
   15. PÁGINA DE EVENTOS (FILTROS FIXOS + LISTA PREMIUM)
   ========================================================================== */

/* --- 1. BARRA DE FILTROS (STICKY / FIXA) --- */
.filters-bar {
  /* A Mágica do Scroll */
  position: sticky; 
  top: 75px; /* Fica travado logo abaixo do menu principal */
  z-index: 800; /* Fica acima da lista, mas abaixo do menu */
  
  /* Visual de "Vidro" */
  background: rgba(255, 255, 255, 0.95); 
  backdrop-filter: blur(5px); 
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: end;
}

/* Campo de Busca (Input de Texto) */
.filter-search-group {
  flex: 2;
  min-width: 200px;
}
.filter-input {
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}
.filter-input:focus {
  background: white;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.1);
}

/* Selects (Dropdowns) */
.filter-group {
  flex: 1;
  min-width: 140px;
}
.filter-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.filter-select {
  width: 100%;
  padding: 12px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}
.filter-select:focus {
  border-color: var(--accent);
  background: white;
}

/* --- 2. LINHA DO EVENTO (Visual Aprovado) --- */
.event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 10px;
  transition: all 0.2s;
}
.event-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border-color: #ccc;
}

/* Data (Esquerda) */
.date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  margin-right: 20px;
}
.date-month {
  font-size: 0.75rem;
  font-weight: 800;
  color: #ED1C24;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 2px;
}
.date-day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

/* Foto do Artista */
.event-row-artist-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin-right: 20px;
  flex-shrink: 0;
  border: 1px solid #eee;
}

/* Informações (Meio) */
.event-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-right: 15px;
}
.event-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.2;
}
.event-meta-row {
  font-size: 0.85rem;
  color: #6a6a6a;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.separator-pipe {
  display: inline-block;
  width: 1px;
  height: 10px;
  background-color: #ccc;
  margin: 0 8px;
}

/* Botão (Direita) */
.event-action-box { flex-shrink: 0; }

.ticket-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent); color: white;
  padding: 10px 28px;
  border-radius: 50px;
  font-size: 0.9rem; font-weight: 700;
  text-decoration: none; transition: 0.2s;
  white-space: nowrap;
}
.ticket-btn:hover { background: #d01019; transform: scale(1.05); color: white; }
.btn-icon-desktop { width: 14px; height: 14px; filter: brightness(0) invert(1); }

/* Mobile */
.mobile-ticket-link { display: none; }
.mobile-ticket-icon { width: 32px; height: 32px; object-fit: contain; }

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .filters-bar {
    position: static; /* No celular não fixa para não ocupar tela demais */
    flex-direction: column; 
    align-items: stretch; 
    gap: 15px;
  }
  .filter-search-group, .filter-group { width: 100%; flex: none; }
  
  .event-row-artist-img, .ticket-btn { display: none !important; }
  .mobile-ticket-link { display: block !important; }
  
  .event-row { padding: 12px 15px; }
  .date-box { margin-right: 15px; min-width: 40px; }
  .date-day { font-size: 1.3rem; }
  .event-title { font-size: 0.9rem; }
  .event-meta-row { font-size: 0.75rem; }
}
/* ==========================================================================
   16. PÁGINA PERTO DE VOCÊ (GEOLOCALIZAÇÃO)
   ========================================================================== */

.nearby-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to bottom, #fff 0%, #f7f7f8 100%);
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}

.nearby-icon {
  width: 80px; height: 80px;
  background: #ffe5e6; /* Vermelho bem clarinho */
  color: var(--accent);
  font-size: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  animation: pulseLocation 2s infinite;
}

@keyframes pulseLocation {
  0% { box-shadow: 0 0 0 0 rgba(237, 28, 36, 0.4); }
  70% { box-shadow: 0 0 0 20px rgba(237, 28, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(237, 28, 36, 0); }
}

.location-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.2s, background 0.2s;
  margin-top: 20px;
}
.location-btn:hover {
  background: #d01019;
  transform: scale(1.05);
}
.location-btn:disabled {
  background: #ccc; cursor: not-allowed; transform: none;
}

.location-status {
  margin-top: 15px;
  font-size: 14px;
  color: var(--muted);
  min-height: 20px;
}
/* ==========================================================================
   17. MODAL DE LOGIN (ÁREA DO USUÁRIO)
   ========================================================================== */

.auth-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Fundo escuro transparente */
  backdrop-filter: blur(4px); /* Desfoque chique */
  z-index: 10000;
  display: none; /* Escondido por padrão */
  align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.auth-modal-overlay.active {
  display: flex; opacity: 1;
}

.auth-box {
  background: white;
  width: 100%; max-width: 400px;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.auth-modal-overlay.active .auth-box { transform: translateY(0); }

.close-modal {
  position: absolute; top: 15px; right: 20px;
  font-size: 24px; color: #999; cursor: pointer;
  background: none; border: none;
}
.close-modal:hover { color: var(--accent); }

.auth-title { font-size: 1.5rem; margin-bottom: 10px; color: var(--text); }
.auth-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 30px; }

/* Botão do Google */
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 50px;
  background: white;
  color: #555;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
}
.btn-google:hover { background: #f7f7f7; border-color: #ccc; }
.btn-google img { width: 20px; height: 20px; }

/* Avatar do Usuário no Header */
.user-avatar-header {
  width: 32px; height: 32px; border-radius: 50%;
  object-fit: cover; border: 1px solid #ddd;
}
/* ==========================================================================
   18. BOTÃO FAVORITAR (CORAÇÃO)
   ========================================================================== */
.favorite-btn {
  background: rgba(255, 255, 255, 0.2); /* Transparente chique */
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efeito elástico */
  margin-left: 20px;
}

.favorite-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* Estado Ativo (Favoritado) */
.favorite-btn.is-active {
  background: white;
  color: #ED1C24; /* Vermelho */
  border-color: white;
  box-shadow: 0 0 20px rgba(237, 28, 36, 0.5);
  animation: heartPulse 0.4s ease-out;
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Ajuste no Mobile */
@media (max-width: 768px) {
  .favorite-btn {
    width: 40px; height: 40px; font-size: 20px; margin-left: 15px;
    position: absolute; top: 20px; right: 20px; /* No mobile fica flutuando no topo */
  }
}
/* ==========================================================================
   19. PÁGINA MEUS FAVORITOS (ÁREA LOGADA)
   ========================================================================== */

.favorites-status-box {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 20px;
}

.favorites-icon {
  font-size: 50px;
  color: #ddd;
  margin-bottom: 20px;
  display: block;
}

.favorites-title { font-size: 1.5rem; color: var(--text); margin-bottom: 10px; }
.favorites-text { color: var(--muted); margin-bottom: 30px; }

/* Botão de Login na página */
.btn-login-page {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}
.btn-login-page:hover { transform: scale(1.05); background: #d01019; }
/* ==========================================================================
   20. ÁREA DE FAVORITOS E HEADER DO USUÁRIO
   ========================================================================== */

/* --- 1. INFO NO CABEÇALHO (NOVO) --- */
.header-user-info {
  font-size: 12px;
  margin: 0;
  text-transform: uppercase;  
}

.header-user-text {
  color: var(--text);
}

.header-user-highlight {
  color: #ED1C24; /* Vermelho */
  font-weight: 700;
}

.header-logout-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: white;
  border: 1px solid #eee;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.header-logout-btn:hover {
  border-color: #ED1C24;
  color: #ED1C24;
}

/* No Mobile, a gente esconde esse texto do header pq não cabe */
@media (max-width: 768px) {
  .header-user-info { display: none; }
}

/* --- 2. ABAS (CORRIGIDO) --- */
.fav-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #eee; /* Linha cinza fina embaixo de tudo */
  margin-bottom: 30px;
  margin-top: 10px;
}

.fav-tab {
  padding: 10px 0;
  font-family: 'Rubik', sans-serif;
  font-size: 16px; font-weight: 500; color: #999;
  cursor: pointer; position: relative; transition: color 0.2s;
  /* Garantia extra de limpeza */
  background: none; border: none; outline: none; user-select: none;
}

.fav-tab:hover { color: var(--text); }

/* Estado Ativo (Selecionado) */
.fav-tab.active {
  color: #ED1C24; 
  font-weight: 700;
}

/* A linha vermelha embaixo da aba ativa */
.fav-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px; /* Cola na linha cinza */
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ED1C24;
}