/* RESET E TIPOGRAFIA */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* RESET E CONFIGURAÇÃO DO BODY */
html, body {
    overscroll-behavior-y: contain;
}
body {
    background: #f2f2f2;
    margin: 0;
    /* O padding do topo deve ser a soma da altura da barra (60px) + a área do notch */
    padding-top: calc(60px + env(safe-area-inset-top)); 
    margin-bottom: calc(60px + env(safe-area-inset-bottom));
    font-family: sans-serif; /* Ou sua fonte preferida */
}

/* TÍTULO FIXO PADRONIZADO */
.titulo-fixo {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: #0a1e7a;
    
    /* Isso aqui é o segredo: */
    padding-top: 25px !important; /* Espaço para o relógio/bateria se o env falhar */
    padding-top: env(safe-area-inset-top, 25px) !important; 
    
    height: 60px !important; 
    display: flex !important;
    align-items: center !important;
    box-sizing: content-box !important; /* Faz a altura somar com o padding */
}

/* container interno */
.titulo-inner{
    height:60px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:0 15px;

    width:100%;
    max-width:100%;

    box-sizing:border-box;
}

.titulo-esquerda{
    display:flex;
    align-items:center;
    gap:10px;
}

.titulo-texto{
    font-size:20px;
    font-weight:bold;
    color:#fff;
}

/* logo */
.logo-topo{
    height:48px;
    width:auto;
    max-width:120px;
    object-fit:contain;
    margin-left: auto;
}

/* ELEMENTOS DENTRO DO TÍTULO */
.titulo-fixo h1 {
    width: 95%;
    margin: 0 auto;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1; 
    color: #ffffff;
}

/* BOTÃO DE VOLTAR */
.titulo-fixo h1 a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    /* Garante que a área de clique seja boa */
    padding: 5px; 
    margin-left: -5px; 
}

/* AJUSTE PARA O ÍCONE NÃO DESALINHAR */
.titulo-fixo h1 a ion-icon {
    font-size: 28px;
    display: block;
    color: #ffffff;
}

/*Botao Voltar no topo*/
.btn-voltar-vidro {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    min-width: 48px;
    max-width: 48px;

    height: 48px;
    min-height: 48px;
    max-height: 48px;

    border-radius: 9999px; /* mais seguro que 50% */

    box-sizing: border-box;
    flex: none; /* impede flex de deformar */

    /* efeito vidro */
    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.35),
        rgba(255,255,255,0.08)
    );

    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);

    border: 1px solid rgba(255,255,255,0.35);

    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.6),
        inset 0 -2px 4px rgba(0,0,0,0.1),
        0 4px 12px rgba(0,0,0,0.15);

    text-decoration: none;
}
/* Ajuste do ícone dentro do círculo */
.btn-voltar-vidro ion-icon {
    font-size: 24px;
    line-height: 1;
    color: #ffffff
}

/* Efeito ao clicar/tocar */
.btn-voltar-vidro:active {
    transform: scale(0.92);
}

/* APLICAR APENAS EM CELULARES E TABLETS */
@media (max-width: 1024px) {

body {
        background: #f2f2f2;
        margin: 0 !important;
        /* Aumentamos o recuo do corpo para 85px para garantir espaço */
        margin-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }

    .titulo-fixo {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 9999 !important;
        background: #0a1e7a;
        border-bottom: 1px solid #ddd;
        
        /* FORÇANDO RECUO: Se o env não funcionar, ele usa 25px fixos */
        padding-top: 25px !important; 
        padding-top: env(safe-area-inset-top, 25px) !important; 
        
        height: 60px !important; 
        display: flex !important;
        align-items: center !important;
        box-sizing: content-box !important;
    }

    .titulo-fixo h1 {
        width: 95%;
        margin: 0 auto;
        font-size: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
        line-height: 1;
        font-family: sans-serif;
        font-weight: bold;
    }

    /* Ajuste fino para o link de voltar */
    .titulo-fixo h1 a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #ffffff;
        min-width: 30px;
        height: 30px;
    }

    /* Ajuste para ícones do Ionicons */
    .titulo-fixo h1 a ion-icon {
        font-size: 28px;
        --ionicon-stroke-width: 32px;
    }
}


/* CONTAINER PRINCIPAL */
.pagina-container{
    width:100%;
    max-width:1600px;

    margin:0 auto;
    padding:0px;

    box-sizing:border-box;
}

.capa {
    position: relative;
    height: 100%; 
    /* overflow: hidden; */ /* CUIDADO: se o card sair da capa, isso vai cortá-lo */
}


.paginadt {
    max-width: 100%;
    margin: 2px;
    position: relative;
    background: #fff;
    padding-bottom: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capadt {
    position: relative;
    height: 100%;
    overflow: hidden;
}

/* CAPA */
.capa img {
    width: 33%;
    height: 30px;
    object-fit: cover;
    object-position: center 0%;
}

/* BOTÃO VOLTAR */
.btn-voltar {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #5a63bf;
    color: #333;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* CARD */
.card {
    position: relative;
    z-index: 10;           /* Garante que fique visualmente acima da capa */
    background: #fff;
    border-radius:25px;
    padding: 20px;
    max-width: 100%;        /* Ajustado para não colar nas bordas se quiser centralizado */
    margin: -20px auto 0 auto; /* Topo: -100px, Laterais: auto (centraliza), Baixo: 0 */ 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); /* Sugestão para destacar a sobreposição */
}

/* --- Card Interno --- */


.ticker-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
}

.ticker-info {
    padding-left: 15px;
}


.descricao {
    display: block;        /* Garante que se comporte como um bloco */
    width: 100%;           /* Largura desejada */
    margin: 15px auto;    /* Centraliza e dá espaço vertical */
    padding: 10px 20px;   /* Espaço interno para o texto não tocar na borda */
    
    background-color: #f1f0f0; /* Fundo branco (ou mude para combinar com o site) */
    border: 1px solid #eee;    /* Borda bem sutil */
    border-radius: 15px;       /* O efeito pílula que você pediu */
    
    color: #444;               /* Cor do texto suave */
    font-size: 14px;           /* Tamanho da fonte */
    line-height: 1.5;          /* Espaçamento entre linhas para melhor leitura */
    text-align: center;        /* Centraliza o texto dentro do retângulo */
    
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Sombra leve para flutuar */
    box-sizing: border-box;    /* Importante: evita que o padding quebre a largura */
}
/* TEXTO */
.publicado {
    color: #888;
    font-size: 14px;
}

.card h1 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: bold;
}

.data {
    margin-top: 8px;
    color: #666;
}

.local {
    margin-top: 5px;
    font-weight: bold;
}
/*
.descricao {
    margin-top: 15px;
    line-height: 1.5;
    color: #333;
}*/

/* BOTÕES */
.botoes {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    
    /* Faz os botões esticarem para 100% da largura novamente */
    align-items: stretch; 
    
    /* Centraliza o conteúdo verticalmente se houver altura fixa */
    justify-content: center;
}

/* Para garantir que o texto dentro dos links/botões fique no centro */
.botoes a, .botoes button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* Garante os 100% */
    text-align: center;
}

.btn {
    text-align: center;
    padding: 14px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    color: #6a00ff;
    border: 2px solid #6a00ff;
}

.btn-principal {
    background: aquamarine;
    color: #4b913d;
    border: none;
}

/* MINIATURAS DE EVENTO */
.imagens-agenda img {
    width: 33%;
    height: auto;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
}

/* MODAL ZOOM */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal img {
    max-width: 90%;
    max-height: 80%;
}

.fechar {
    position: absolute;
    top: 60px;
    right: 30px;
    font-size: 24px; /* Reduzi um pouco para caber melhor no círculo */
    color: #fff;
    cursor: pointer;
    
    /* Estilo Círculo */
    background: rgba(41, 25, 186, 0.5); /* Fundo preto semi-transparente */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    
    /* Centralização do "X" */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Efeito visual */
    transition: background 0.3s;
    z-index: 1001;
}

.fechar:hover {
    background: rgba(255, 255, 255, 0.2); /* Brilho ao passar o mouse */
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001; /* 🔥 garante que fique acima da imagem */
}

.prev { 
    left: 20px; 
}

.next { 
    right: 20px; 
}


/* Footer fixo */
footer.rodape {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px; /* importante */

    background: #0a1e7a;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    padding-bottom: env(safe-area-inset-bottom);

    text-align: center;
    z-index: 999;
}

/*Perfil Foto COmentario*/
/* PERFIL DO USUÁRIO */
.perfil-usuario-comentario {
    width: 95%;
    margin: 5px auto;
}

.perfil-topo-comentario {
    display: flex;
    align-items: center;
    gap: 5px;
}

.perfil-foto-comentario {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    overflow: hidden;
    background: #7bc26d;
    flex-shrink: 0;
}

.perfil-foto-comentario img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}


/* PERFIL DO USUÁRIO */
.perfil-usuario {
    width: 100%;
    margin: 5px auto;
}

.perfil-topo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.perfil-foto-evento {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.perfil-foto-evento img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.perfil-foto {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #7bc26d;
    flex-shrink: 0;
}

.perfil-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.perfil-info {
    flex: 1;
}

.perfil-info h2 {
    font-size: 32px;
    margin: 0;
}

.perfil-email-botao {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 6px;
}

.perfil-email-botao span {
    font-size: 18px;
    color: #555;
}

.btn-editar-perfil {
    padding: 6px 14px;
    background:linear-gradient(45deg,#6a00ff,#00c3ff);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

/* EVENTOS CADASTRADOS */
.eventos-usuario {
    width: 100%;
    margin: 10px auto;
}

.eventos-usuario h3 {
    font-size: 34px;
    margin-bottom: 10px;
}

.eventos-box {
    border-radius: 18px;
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 5px;
    justify-items: center;
}

.evento-card {
    width: 160px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.evento-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 15px;
}

.botoes-evento {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.btn-editar-evento {
    background: #fff;
    border: none;
    text-decoration: none;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-excluir {
    background: #d9534f;
    color: #fff;
}

/* MINIATURAS DE IMAGEM NO FORMULÁRIO DE EDIÇÃO */

@media(max-width:600px){
    .perfil-topo{
        flex-direction:row;
        align-items:center;
    }

    .perfil-info h2{
        font-size:26px;
    }

    .perfil-email-botao span{
        font-size:16px;
    }

    .btn-editar-perfil{
        font-size:14px;
    }

    .eventos-usuario h3{
        font-size:28px;
    }
}

.event-actions {
display: flex;
gap: 20px;
align-items: center;
padding: 15px 0;
}

/* Botão de curtida */
.action-btn {
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666; /* cor padrão */
}

/* Ícone */
.action-btn ion-icon {
    font-size: 28px;
    color: currentColor; /* herda a cor do botão */
}

/* Estilo quando estiver curtido (Vermelho Instagram) */
.action-btn.liked {
    color: #ed4956;
}

        #map {
            width: 100%;
            height: 100%;
        }
        section {
            height: 500px;
            position: relative;
        }
        .msg-rota {
            position: absolute;
            top: 10px;
            left: 10px;
            right: 10px;
            background: rgba(255, 255, 255, 0.9);
            padding: 10px;
            border-radius: 4px;
            font-weight: bold;
            display: none;
            z-index: 10;
            color: #d93025;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            text-align: center;
        }
        /* Painel de Informações da Rota */
        /* Painel de Informações da Rota (Sobreposto ao Mapa) */
        #detalhes-rota {
            position: absolute;
            /* Aumente o valor de 'bottom' para subir a div. Ex: 80px ou 100px */
            bottom: 100px; 
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.95); /* Leve transparência */
            backdrop-filter: blur(5px); /* Efeito de vidro fosco */
            padding: 12px 25px;
            border-radius: 50px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.2);
            display: none;
            z-index: 20;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            align-items: center;
            gap: 15px;
            border: 1px solid rgba(255, 255, 255, 0.3);
            width: max-content;
        }
        .info-item {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #333;
            font-size: 14px;
        }
        .info-item ion-icon {
            color: #1a73e8;
            font-size: 18px;
        }

/*CSS Comentarios do Evento*/
/* =====================================================
   CSS COMENTÁRIOS DO EVENTO  (MANTIDO)
===================================================== */


/* Cabeçalho dos comentários */
section.comentarios .titulo-comentarios {
    display: flex;              /* ativa flex */
    align-items: center;        /* alinha verticalmente */
    justify-content: flex-start;/* tudo começa à esquerda */
    gap: 10px;                  /* espaço entre botão e título */
}

/* Botão voltar ao topo */
section.comentarios .btn-topo {
    font-size: 28px;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    order: 1;                   /* fica PRIMEIRO (esquerda) */
}

/* Título */
section.comentarios h1 {
    font-size: 22px;
    margin: 0;
    font-weight: bold;
    color: #000;
    order: 2;                   /* vem depois do botão */
}
/* 🔥 Garante que SOMENTE o cabeçalho use flex */
section.comentarios .titulo-comentarios {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

/* 🔥 Reseta o conteúdo abaixo do título */
section.comentarios form {
    display: block;          /* remove qualquer flex herdado */
    width: 100%;
    max-width: 500px;        /* mesmo padrão do card */
    margin: 20px auto 0;     /* CENTRALIZA */
}

/* 🔥 Centraliza textarea e botões */
section.comentarios textarea,
section.comentarios button {
    display: block;
    width: 97%;
    margin: 10px auto;
}

.btn-degrade {
    width:70%;
    padding:14px;
    border:none;
    border-radius:25px;
    background:linear-gradient(45deg,#6a00ff,#00c3ff);
    color:#fff;
    font-size:16px;
}
/* =====================================================
   CORREÇÃO DE FLUXO (ESSENCIAL)
   NÃO REMOVE CARD ABSOLUTO
===================================================== */

/* Remove a altura fixa global que quebrava o layout */
section {
    height: auto !important;

}
.form-comentario {
    margin: 20px auto; /* Centraliza horizontalmente */
    width: 98%;        /* Define a largura como 98% */
    max-width: 98%;    /* Garante que ele não passe disso */
    box-sizing: border-box; /* Importante: impede que o padding "estoure" a largura */
}

.form-comentario .campo {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    width: 100%;
}

.form-comentario label {
    width: 100%;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-comentario input,
.form-comentario textarea {
    width: 100%;       /* Ocupa todo o espaço dos 98% do pai */
    padding: 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box; /* Faz com que o padding não aumente a largura do input */
}

.form-comentario .btn-enviar {
    width: 100%;       /* Faz o botão também acompanhar a largura total */
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 20px; /* Mudei para 20px para combinar com os inputs */
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}

.form-comentario .btn-enviar:hover {
    background: #218838;
}
/*CSS Comentarios Lista*/
/* LISTA DE COMENTÁRIOS */
.lista-comentarios {
    margin: 20px auto 0 auto;   /* centraliza igual ao form */
    width: 98%;
    max-width: 480px;           /* MESMO padrão da página/form */
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
}

.comentario-item {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 12px 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.comentario-texto {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 6px;
}

.comentario-data {
    font-size: 12px;
    color: #888;
}

.sem-comentarios {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.comentario-item {
    position: relative !important; /* TRAVA o botão aqui dentro */
    background: #f8f8f8;
    border-radius: 12px;
    padding: 15px 45px 15px 15px !important; /* Abre um buraco na direita para o botão */
    display: block !important; /* Garante que a caixa ocupe a largura toda */
    width: 97%;
    box-sizing: border-box;
}

.btn-excluir-comentario {
    position: absolute !important; /* Tira o botão de perto do texto */
    top: 15px !important;          /* Fixa no topo */
    right: 15px !important;        /* Fixa na DIREITA da caixa cinza */
    
    /* Mantendo seu design */
    width: 35px !important;
    height: 35px !important;
    font-size: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 99; /* Garante que fique por cima de tudo */
}
/* Hover */
.btn-excluir-comentario:hover {
    color: #d9534f;
    transform: scale(1.1);
}



/*Final CSS Comentarios do Evento*/
/* ================================
   LISTAGEM DE EVENTOS DO USUÁRIO
   ================================ */

.user-events {
    margin-top: 40px;
}

.user-events-title {
    margin-bottom: 20px;
    font-size: 22px;
}

/* LISTA */
.user-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* CARD */
.user-event-card {
    display: flex;
    gap: 20px;
    background: #f4f4f4;
    border-radius: 10px;
    padding: 15px;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* IMAGEM */
.user-event-thumb {
    width: 140px;
    min-width: 140px;
    height: 90px;
    overflow: hidden;
    border-radius: 8px;
}

.user-event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* INFO + BOTÕES */
.user-event-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* TEXTO */
.user-event-text h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
}

.user-event-date {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* AÇÕES */
.user-event-actions {
    display: flex;
    gap: 10px;
}

/* BOTÕES */
.user-btn-edit,
.user-btn-delete {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
}

.user-btn-edit {
    background: #007bff;
}

.user-btn-delete {
    background: #dc3545;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .user-event-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-event-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .user-event-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

.custom-footer {
    width: 100%;
    padding: 40px 20px;
    background: transparent; /* Fundo transparente como pedido */
    color: #ffffff;
    font-family: sans-serif;
    text-align: center;
}

.footer-container {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

.footer-copyright {
    font-size: 14px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-links {
    font-size: 13px;
    opacity: 0.7;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Estilo para os ícones que precisam de hover e cores específicas */
/* =========================
   BOTÃO SOCIAL PADRÃO
========================= */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #007bff;
    border-radius: 8px;
    color: #ffffff;
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease;
}

/* Hover (desktop) */
.social-icon:hover {
    transform: translateY(-3px);
    background: #0056b3;
}

/* =========================
   BOTÃO GLASS (IPHONE STYLE)
========================= */
.social-icon-box {
    position: relative;
    overflow: hidden;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    border-radius: 9999px;

    background: linear-gradient(
        145deg,
        rgba(255,255,255,0.35),
        rgba(255,255,255,0.08)
    );

    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);

    border: 1px solid rgba(255,255,255,0.4);

    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.7),
        inset 0 -3px 6px rgba(0,0,0,0.15),
        0 6px 20px rgba(0,0,0,0.25);

    color: #83acd8;
    font-size: 22px;
    text-decoration: none;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover (desktop) */
.social-icon-box:hover {
    transform: scale(1.12);
}

/* Toque (mobile e desktop click) */
.social-icon-box:active {
    transform: scale(0.92);
    box-shadow:
        inset 0 2px 6px rgba(0,0,0,0.3),
        0 2px 6px rgba(0,0,0,0.2);
}

/* brilho animado */
.social-icon-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.6),
        transparent
    );
    transform: skewX(-25deg);
}

/* animação no hover */
.social-icon-box:hover::after {
    left: 130%;
    transition: 0.6s;
}

/* =========================
   MOBILE AJUSTE (SEM QUEBRAR)
========================= */
@media (max-width: 600px) {

    .social-icon-box {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .footer-legal-links {
        flex-direction: column;
        gap: 10px !important;
    }
}

/* =========================
   MELHORIA MOBILE (TOQUE)
========================= */
.social-icon-box {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

   .paginadt { 
    width: 100%; 
    padding: 10px; 
    box-sizing: border-box; 
    padding-top: 0 !important;
    margin-top: 0 !important;
}

    /* Estilo circular para os botões de ação */
    .btn-admin-action {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        text-decoration: none;
        color: white;
        font-size: 18px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        transition: transform 0.2s;
    }

    .btn-admin-action:active {
        transform: scale(0.9);
    }

    .btn-edit-blue { background-color: #4285F4; }
    .btn-delete-red { background-color: #d93025; }

    .admin-menu-container {
        position: relative;
        display: flex;
        align-items: center;
    }

    .btn-admin-dots {
        background: #333;
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 20px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .admin-dropdown-box {
        display: none;
        position: absolute;
        top: 45px; /* Abre para baixo */
        right: 0;
        background: white;
        min-width: 220px;
        border-radius: 12px;
        box-shadow: 0 5px 25px rgba(0,0,0,0.2);
        z-index: 2000;
        padding: 8px 0;
        border: 1px solid #eee;
    }

    /* Classe de exibição corrigida */
    .admin-dropdown-box.show { 
        display: block !important; 
    }

    .dropdown-header {
        padding: 10px 15px;
        font-size: 11px;
        text-transform: uppercase;
        color: #999;
        font-weight: bold;
        letter-spacing: 1px;
    }

    .admin-dropdown-box a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 15px;
        text-decoration: none;
        color: #333;
        font-size: 14px;
        transition: 0.2s;
    }

    .admin-dropdown-box a:hover { background: #f5f5f5; }
    .admin-dropdown-box ion-icon { font-size: 20px; color: #555; }
    .dropdown-divider { height: 1px; background: #eee; margin: 8px 0; }

    .item-alert { color: #f39c12 !important; }
    .item-alert ion-icon { color: #f39c12; }
    .item-edit { color: #2196F3 !important; }
    .item-edit ion-icon { color: #2196F3; }
    .item-delete { color: #e74c3c !important; font-weight: bold; }
    .item-delete ion-icon { color: #e74c3c; }

/* No celular (telas menores que 600px) */
@media (max-width: 600px) {
    .user-event-card {
        grid-template-columns: 80px 1fr !important; /* Apenas 2 colunas: foto e texto */
    }

    .user-event-actions {
        grid-column: 1 / -1; /* Força os botões a ocuparem a linha inteira abaixo */
        justify-content: flex-start; /* Alinha os botões à esquerda */
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #eee; /* Opcional: uma linha leve para separar */
    }
    
    .user-event-info h3 {
        white-space: normal !important; /* Permite que o título quebre linha para não cortar */
    }
}

/* Estilo do gatilho do submenu */
.submenu-trigger {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    color: #333;
    font-size: 14px;
    justify-content: space-between;
}

.submenu-trigger ion-icon {
    margin-right: 10px;
    font-size: 18px;
}

.arrow-icon {
    font-size: 12px !important;
    transition: transform 0.3s;
}

/* Escondido por padrão */
.submenu-content {
    display: none;
    background-color: #f9f9f9;
    padding-left: 20px;
}

.submenu-content a {
    padding: 8px 15px;
    font-size: 13px;
    border-bottom: none !important;
}

/* Quando estiver ativo */
.submenu-wrapper.active .submenu-content {
    display: block;
}

.submenu-wrapper.active .arrow-icon {
    transform: rotate(180deg);
}
