/* ===========================
   LAYOUT DO BLOCO PRINCIPAL
=========================== */

.evento-layout {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.evento-info-principal {
    flex: 2;
    min-width: 300px;
}

.ingresso-e-compras {
    flex: 1.3;
    min-width: 320px;
    max-width: 450px;
}

/* ===========================
   ESTILOS GERAIS DA PÁGINA
=========================== */

.page-evento {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    margin-top: 10px;
    border-radius: 12px;
    color: #f0f0f0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #121212;
}


/* ===========================
   BANNER E INFORMAÇÕES DO EVENTO
=========================== */

.c-event-desc {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
    margin: 0 auto 30px auto;
    /* top: 0, right: auto, bottom: 30px, left: auto */
}


.img-evento {
  width: 100%;
  height: auto;
  max-height: 70vh;   /* limita altura na tela */
  border-radius: 12px;
  object-fit: contain; /* mostra a imagem inteira */
  background-color: transparent; /* bordas de fundo se sobrar espaço */
}

/* Para imagens no formato de story (9:16) */
@media (orientation: portrait) {
  .img-evento {
    aspect-ratio: 9 / 16; /* retrato */
    max-height: 70vh; /* evita ocupar a tela inteira */
  }
}

.evento-page-desc-principal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}



.evento-page-desc-principal i {
    color: #ff7400;
}

.ingressos-container h2 {
    /* Seus estilos aqui */
    color: #ff7400;
    font-size: 2rem;
    font-weight: bold;
}


.evento-page-desc-data,
.evento-page-desc-local {
    display: flex;
    align-items: left;
}




/* ===========================
   CONTAINER DE INGRESSOS
=========================== */

.ingressos-container {
    background-color: #1f1f1f;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: auto;


}

#lista-ingressos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ingresso-card {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.ingresso-card .nome {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.dados-ingresso {
    font-size: 0.9rem;
    color: #ccc;
}

.alerta-login {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alerta-login i {
    font-size: 18px;
    color: #856404;
}

.alerta-login a {
    background-color: #0056b3;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    margin-left: auto;
    font-weight: 500;
}

.alerta-login a:hover {
    background-color: #ff7400;
}


.btn-login {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1976d2;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #1976d2;
}

.btns-market {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-market {
    background-color: #333;
    color: #ff7400;
    border: none;
    border-radius: 5px;
    padding: 6px 10px;
    cursor: pointer;
}

.btn-market:hover {
    background-color: #ff7400;
}

.btn-market:hover i {
    transform: scale(1.2);
    color: #EFEFEF;
    /* exemplo de cor ao passar o mouse */
}


/* ===========================
   BOTÃO DE COMPRA
=========================== */

#comprar-ingressos {
    background-color: #00c853;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    width: 100%;
    font-size: 16px;
    margin-top: 15px;
    cursor: pointer;
}


#comprar-ingressos:disabled {
    background-color: #555;
    cursor: not-allowed;
}


/* ===========================
   RESUMO DA COMPRA
=========================== */

.resumo-compra p {
    margin: 5px 0;
}


/* ===========================
   TERMOS DE USO
=========================== */

.termos-uso{
  display: inline-flex;       /* ativa flex e mantém em linha com outros elementos */
  align-items: center;
  margin-top: 10px;
  gap: 8px;
}

.termos-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    color: white;
    line-height: 1.4;
    margin-top: 10px;
    word-break: break-word;
}

.termos-label input[type="checkbox"] {
    transform: scale(1.1);
    accent-color: orange;
    /* opcional */
}

@media (max-width: 480px) {
    .termos-label {
        flex-direction: row;
        /* ou column se quiser o texto embaixo */
        align-items: flex-start;
    }
}

.termos-uso label {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.95rem;
    color: #e4e4e4;
    line-height: 1.4;
}

.termos-uso label span {
    flex: 1 1 auto;
}


.termos-uso input[type="checkbox"] {
    transform: scale(1.2);
    accent-color: #f7931e;
    cursor: pointer;
}

.termos-uso a {
    color: #ff7400;
    text-decoration: underline;
    font-weight: 500;
}

.termos-uso a:hover {
    color: #70b3ff;
}





/* ===========================
   CUPOM DE DESCONTO
=========================== */

.cupom-container {
    margin-top: 20px;
}

.cupom-container input {
    background: #333;
    border: none;
    padding: 10px;
    border-radius: 6px;
    color: white;
}

.btn-verificar-cupom {
    background-color: #ff7400;
    color: #EFEFEF;
    border: none;
    border-radius: 6px;
    padding: 10px 15px;
    cursor: pointer;
}

.btn-verificar-cupom:hover {
    background-color: #125aa3;
}


/* ===========================
   DESCRIÇÃO DO EVENTO (FINAL)
=========================== */

.descricao-evento {
    white-space: pre-line;
    font-size: 15px;
    line-height: 1.6;
    color: #ddd;
}

.descricao-evento-container {
    background-color: #1f1f1f;
    padding: 50px;
    border-radius: 12px;
    margin-top: 30px;
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.descricao-evento-container .sub-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid #333;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.descricao-evento-container p {
    margin: 6px 0;
}

.descricao-evento-container p strong {
    color: #ffffff;
    font-weight: 600;
}


/* Bloco com local, horário etc */
.evento-page-desc {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.evento-page-desc p {
    margin: 4px 0;
    line-height: 1.4;
}

.evento-page-desc span {
    margin-left: 4px;
    font-weight: normal;
    color: #ccc;
}


/* ===========================
   BOTÃO MAPA
=========================== */

.btn-maps {
    margin-top: 5px;
    background-color: #4285F4;
    padding: 8px 14px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-block;
    width: fit-content;
    transition: background-color 0.3s;
}

.btn-maps:hover {
    background-color: #3367d6;
}


/* ===========================
   BOTÃO DE DENÚNCIA
=========================== */

.denunciar-btn {
    background-color: #ff4444;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.denunciar-btn:hover {
    background-color: #cc0000;
}


/* ===========================
   RESPONSIVIDADE
=========================== */

@media screen and (max-width: 768px) {
    .evento-layout {
        flex-direction: column;
    }

.c-event-desc {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 800px;   /* limite no desktop */
  margin: 0 auto 30px auto;
}

    .evento-page-desc-principal {
        align-items: center;
        text-align: center;
    }


    .ingresso-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .btns-market {
        justify-content: flex-start;
    }

    #comprar-ingressos {
        font-size: 14px;
    }

    .page-evento {
        display: flex;
        margin-top: 5px;
        flex-direction: column;
        border-radius: 12px;
    }


}

@media (max-width: 768px) {
    .evento-info-principal {
        display: contents;
    }

    .c-event-desc {
        order: 1;
    }

    .ingressos-container {
        order: 2;
    }

    .descricao-evento-container {
        order: 3;
    }

    #comprar-ingressos {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        border-radius: 0;
        z-index: 9999;
        font-size: 18px;
        padding: 16px;
        /* respeita notch / barra do iOS */
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        /* sombra para separar do conteúdo */
        box-shadow: 0 -8px 20px rgba(0, 0, 0, .35);
        /* transição suave ao aparecer */
        transform: translateY(0);
        transition: transform .2s ease, opacity .2s ease;
    }

    /* estado oculto (usado quando sem ingressos/sem termos) */
    #comprar-ingressos.is-hidden {
        opacity: 0;
        pointer-events: none;
        transform: translateY(8px);
    }

    /* reserva de espaço para o botão fixo */
    .ingressos-container {
        padding-bottom: 110px;
    }

    /* 80px + margem de segurança */

}

/* quando existir CTA fixo no mobile, o suporte sobe */
@media (max-width: 768px) {
  .botao-suporte {
    margin-bottom: 50px !important;
  }
}
/* Não aplicar o "block" no label dos termos */
.input-group label.termos-label { display: inline-flex; }

/* Força o layout correto do bloco dos termos */
.termos-uso { display: inline-flex; align-items: center; }
.termos-uso .termos-label{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px; flex-wrap: nowrap; white-space: nowrap;
  width: auto; margin: 0; padding: 0;
}

/* Card: Sobre o produtor */
.card-produtor{
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--bd, #2a2a2a);
  border-radius: 14px;
  background: #141414;
}

.produtor-header{
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  margin-bottom: 8px;
}
.produtor-avatar{
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.15);
  background: #111;
}
.produtor-ident{ display:grid; gap: 2px; }
.produtor-nome{
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.verified-icon{
  width: 16px; height: 16px; object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(0,0,0,.35));
}
.produtor-meta{ font-size: .9rem; opacity: .85; }
.produtor-bio{ margin: 6px 0 10px; line-height: 1.35; }

/* Social icons (mesmo estilo que usamos no perfil do produtor) */
.socials{ display:flex; gap:10px; flex-wrap:wrap; }
.social-btn{
  width:34px; height:34px; display:grid; place-items:center;
  border:1px solid var(--bd, #2a2a2a); border-radius:999px;
  background: transparent; color: var(--txt, #f5f5f5);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.social-btn:hover{ transform: translateY(-1px); border-color: var(--tfy-accent, #ff7400); background:#1b1b1b; }
.social-btn svg{ width:18px; height:18px; fill: currentColor; }

.produtor-actions{ margin-top: 10px; }

