/* ======================================================
   ARTISTA PÚBLICO - DARK MODE
====================================================== */

.public-artist-page {
  background: #0e0f14;
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
}

/* ======================================================
   HEADER REFINADO
====================================================== */

.public-header {
  position: fixed;
  top: 0;
  width: 100%;
  backdrop-filter: blur(12px);
  background: rgba(14, 15, 20, 0.75);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 1000;
}

.public-header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.public-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.public-header__logo-img {
  height: 52px; /* tamanho ideal */
  width: auto;
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.public-header__logo-img:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.public-header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.public-header__login {
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.public-header__login:hover {
  color: #ffffff;
}

.public-header__cta {
  padding: 9px 18px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  font-family: var(--fonte-principal);
  cursor: pointer;
}

.public-header__cta:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  color: #ffffff;
}

/* HERO */

.artist-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0e0f14;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

/* container central */
.artist-hero__cover {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 100%;
}

/* imagem */
.artist-hero__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: brightness(0.65) contrast(1.05);
}

/* FADE LATERAL INTENSO */
.artist-hero__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right,
      #0e0f14 0%,
      rgba(14,15,20,0.90) 4%,
      rgba(14,15,20,0.8) 8%,
      rgba(14,15,20,0.5) 12%,
      rgba(14,15,20,0.2) 16%,
      rgba(14,15,20,0) 22%,

      rgba(14,15,20,0) 78%,
      rgba(14,15,20,0.2) 84%,
      rgba(14,15,20,0.5) 88%,
      rgba(14,15,20,0.8) 92%,
      rgba(14,15,20,0.90) 96%,
      #0e0f14 100%
    );
}

/* FADE INFERIOR */
.artist-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      #0e0f14 5%,
      rgba(14,15,20,0.8) 25%,
      rgba(14,15,20,0.4) 50%,
      rgba(14,15,20,0) 75%
    );
  pointer-events: none;
}

/* conteúdo */
/* CARD FIXO NA BASE DA VIEWPORT */
.artist-hero__fixed {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  padding: 0 32px;
  z-index: 999;
  display: flex;
  justify-content: center;
  pointer-events: none; /* evita bloquear scroll */
}

.artist-hero__card {
  pointer-events: auto; /* reativa clique dentro do card */

  display: flex;
  align-items: center;
  gap: 28px;

  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.45)
  );

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  padding: 24px 36px;
  border-radius: 24px;

  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.artist-hero__bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: linear-gradient(
    to top,
    rgba(14,15,20,0.98),
    rgba(14,15,20,0.92)
  );

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-top: 1px solid rgba(255,255,255,0.06);
}

.artist-hero__bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.artist-hero__avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.artist-hero__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1; /* ocupa o espaço central */
}

.artist-hero__name {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}

.artist-hero__location {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.artist-hero__styles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.artist-style {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
}

.artist-hero__cta {
  margin-top: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(90deg, #00c2ff, #0066ff);
  font-family: var(--fonte-principal);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,102,255,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.artist-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,102,255,0.5);
}

.artist-hero__cta.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* SEÇÕES */

section {
  padding: 80px 24px;
}

.artist-about__container,
.artist-events__container,
.artist-availability__container {
  max-width: 1100px;
  margin: 0 auto;
}

h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

/* ======================================================
   LINKS OFICIAIS COM ÍCONES
====================================================== */

.artist-social {
  padding: 80px 24px 40px;
}

.artist-social__container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.artist-social__title {
  font-family: var(--fonte-principal);
  font-size: 26px;
  margin-bottom: 32px;
  font-weight: 600;
}

.artist-social__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.artist-social__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 22px;
  border-radius: 12px;

  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);

  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;

  transition: all 0.25s ease;
}

.artist-social__icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
}


.artist-social__link:hover {
  background: linear-gradient(90deg, #00c2ff, #0066ff);
  transform: translateY(-2px);
}


/* EVENTOS */
.artist-events__description {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 36px;
  max-width: 640px;
}


.events-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 24px;

  padding: 22px 26px;
  border-radius: 16px;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.02)
  );

  border: 1px solid rgba(255,255,255,0.06);

  transition: all 0.25s ease;
}

.event-item:hover {
  transform: translateY(-3px);
  border-color: rgba(0,194,255,0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.event-date {
  font-weight: 600;
  display: block;
}

.event-info {
  color: #cccccc;
}

.event-date-box {
  min-width: 80px;
  text-align: center;

  display: flex;
  flex-direction: column; /* 🔥 ESSENCIAL */
  align-items: center;
  justify-content: center;
}

.event-day {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.event-month {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.6);
}

/* BLOCO INFO */

.event-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.event-place {
  font-weight: 600;
  font-size: 15px;
}

.event-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* AGENDA PROTEGIDA */

.availability-locked {
  height: 220px;
  background: #151720;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.availability-locked__overlay {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  background: rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.availability-locked__cta {
  font-family: var(--fonte-principal);
  font-weight: 500;
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: 6px;
  background: linear-gradient(90deg, #00c2ff, #0066ff);
  text-decoration: none;
  color: #fff;
}

body.public-artist-page {
  padding-bottom: 140px;
}

/* ======================================================
   DISPONIBILIDADE REAL (LOGADO)
====================================================== */

.availability-calendar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.calendar-month h3 {
  margin-bottom: 18px;
  font-size: 18px;
  text-transform: capitalize;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-day {
  padding: 12px 0;
  text-align: center;
  border-radius: 8px;
  font-size: 13px;
  background: rgba(255,255,255,0.04);
  cursor: default;
}

.calendar-day.available {
  background: rgba(0,194,255,0.15);
  border: 1px solid rgba(0,194,255,0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-day.available:hover {
  background: rgba(0,194,255,0.35);
  transform: translateY(-2px);
}

.calendar-day.selected {
  background: linear-gradient(90deg, #00c2ff, #0066ff);
  border: 1px solid #00c2ff;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0,102,255,0.4);
  transform: translateY(-2px);
}

.calendar-day.selected:hover {
  background: linear-gradient(90deg, #00b4eb, #005ce6);
}

.calendar-day.disabled {
  opacity: 0.25;
}

.calendar-day.empty {
  visibility: hidden;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
  font-size: 11px;
  text-align: center;
  opacity: 0.5;
}

/* ==========================================
   LOADING GATE (ANTI-FLICKER)
========================================== */

body.is-loading {
  visibility: hidden;
}

body.is-loaded {
  visibility: visible;
}



/* RESPONSIVO */

@media (max-width: 1200px) {

  .artist-hero {
    margin-top: 15px;
    aspect-ratio: 16/10;
  }
}

@media (max-width: 900px) {

  .public-header__container {
    padding: 16px 24px;
  }

  .artist-hero__bar-container {
    padding: 16px 24px;
    gap: 24px;
  }

  .artist-hero__avatar {
    width: 84px;
    height: 84px;
  }

  .artist-hero__name {
    font-size: 20px;
  }

  .artist-hero__cta {
    padding: 12px 22px;
    font-size: 14px;
  }

  section {
    padding: 70px 20px;
  }

}

@media (max-width: 768px) {
  .artist-hero {
    height: auto;
    padding-bottom: 40px;
    aspect-ratio: 16/11;
  }

  .artist-hero__cover img {
    object-position: center 45%;
  }

  .artist-hero__name {
    font-size: 32px;
  }

  .artist-hero__avatar {
    width: 110px;
    height: 110px;
  }

  .artist-hero__avatar {
    width: 120px;
    height: 120px;
  }

  .artist-hero__name {
    font-size: 18px;
  }

  .artist-hero__card {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    border-radius: 20px;
  }

  .artist-hero__avatar {
    width: 78px;
    height: 78px;
  }

  .artist-hero__bar-container {
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
  }

  .artist-hero__info {
    min-width: 200px;
  }

  .artist-hero__location {
    font-size: 12px;
  }

  .artist-style {
    font-size: 10px;
    padding: 3px 8px;
  }

  .artist-hero__cta {
    width: 100%;
    text-align: center;
  }

  .event-item {
    gap: 16px;
    padding: 18px 20px;
  }

  .event-day {
    font-size: 22px;
  }

  /* Calendário */
  .calendar-grid {
    gap: 6px;
  }

  .calendar-day {
    font-size: 12px;
    padding: 10px 0;
  }
}

@media (max-width: 600px) {

  .public-header__container {
    padding: 14px 16px;
  }

  .public-header__logo-img {
    height: 42px;
  }

  .public-header__cta {
    padding: 7px 12px;
    font-size: 12px;
  }

  .public-header__login {
    font-size: 12px; /* simplifica no mobile */
  }

  section {
    padding: 60px 16px;
  }

  h2 {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .artist-social__title {
    font-size: 22px;
  }

  .artist-social__link {
    padding: 12px 18px;
    font-size: 13px;
  }

  .artist-hero__info-wrapper {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .artist-hero__avatar {
    width: 64px;
    height: 64px;
  }

  .artist-hero__info {
    gap: 4px;
  }

  .artist-hero__name {
    font-size: 16px;
  }

  .artist-hero__location {
    font-size: 12px;
  }

  .artist-style {
    font-size: 9px;
    padding: 3px 8px;
  }

  .artist-hero__cta {
    width: 100%;
    margin-top: 4px;
  }

  .events-list {
    gap: 14px;
  }

  .event-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .event-date-box {
    min-width: auto;
  }
}

@media (max-width: 480px) {

  .artist-hero {
    height: auto;
    padding-bottom: 40px;
    aspect-ratio: 1;
    margin-top: 50px
  }

  .artist-hero__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(
      to top,
      #0e0f14 0%,
      rgba(14,15,20,0.85) 18%,
      rgba(14,15,20,0.4) 40%,
      rgba(14,15,20,0) 60%
    ),
    linear-gradient(
      to bottom,
      #0e0f14 0%,
      rgba(14,15,20,0.5) 15%,
      rgba(14,15,20,0.4) 30%,
      rgba(14,15,20,0) 55%
    );
}

  .artist-hero__cover img {
    object-position: 50% 48%;
  }

  .artist-hero__avatar {
    width: 64px;
    height: 64px;
  }

  .artist-hero__name {
    font-size: 16px;
  }

  .artist-hero__location {
    font-size: 11px;
  }

  .artist-style {
    font-size: 9px;
  }

  .artist-hero__cta {
    font-size: 13px;
    padding: 10px 16px;
  }

  .calendar-day {
    font-size: 11px;
    padding: 8px 0;
  }

  .event-day {
    font-size: 20px;
  }

  .event-place {
    font-size: 14px;
  }

  .event-meta {
    font-size: 12px;
  }
}

@media (max-width: 360px) {

  .public-header__logo-img {
    height: 36px;
  }

  .artist-hero__avatar {
    width: 56px;
    height: 56px;
  }

  .artist-hero__name {
    font-size: 15px;
  }

  .artist-hero__cta {
    font-size: 12px;
    padding: 9px 14px;
  }

  h2 {
    font-size: 20px;
  }

  .artist-social__title {
    font-size: 20px;
  }

  .calendar-grid {
    gap: 4px;
  }

}




