/* base.css - Tema Base Melhorado com Hierarquia Visual
Version: 9.9

/* =========================================================
   BASE.CSS – Estilos globais + páginas específicas
   ========================================================= */

/* ===============================
   RESET SUAVE
   =============================== */
body {
    font-family: "Inter", system-ui, sans-serif;
    margin: 0;
    color: #222;
}

.wpforms-entries-container,
.wpforms-subscriptions-page {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}



/* =========================================================
   /wpforms-entries-viewer/
   ========================================================= */

/* ===============================
   HEADER: Busca + Seleção
   =============================== */
.wpforms-entries-container .selection-header,
.wpforms-entries-container .entries-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.selection-header {

display:none;
}

.entries-header h3 {
    font-size: 24px;
    font-weight: 600;
}

.search-container {
    display: flex;
    gap: 8px;
}

.entries-search {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-width: 200px;
}

.search-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

/* ===============================
   STATS
   =============================== */
.event-stats,
.entries-stats,
.subscriptions-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px 20px;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
}

.soldout-stat {
    background: #ffe5e5;
}

/* ===============================
   GRID DE ENTRIES
   =============================== */
.entries-grid {
     width: 90% !important;
    margin: 0 auto !important;
    grid-template-columns: 1fr !important;
}

.entry-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 2px 3px rgba(0,0,0,0.06);
    transition: all .2s ease;
    position: relative;
}

.entry-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Esgotado */
.entry-card.sold-out {
    opacity: .55;
}

.sold-out-badge {
    display: inline-block;
    background: #cc0000;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

/* ===============================
   CAMPOS DO CARD
   =============================== */
.entry-name {
    font-size: 22px !important;
    font-weight: 700 !important;
    margin-bottom: 6px;
}

.entry-field {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.3;
}

.entry-field label {
    font-weight: 600;
    margin-right: 4px;
}

/* ===============================
   FOOTER DO CARD
   =============================== */
.card-footer {
    padding-top: 10px;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.entry-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.action-btn {
    border: none;
    background: #f0f0f0;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: .2s;
}

.action-btn:hover {
    background: #0073aa;
    color: white;
}

/* ===============================
   FOOTER GERAL
   =============================== */
.entries-footer {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.save-subscriptions-btn,
.view-subscriptions-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0073aa;
    color: white;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: .2s;
}

.save-subscriptions-btn:hover,
.view-subscriptions-btn:hover {
    background: #005a87;
}

/* Badge Inscrever */
.inscrever-badge, .external-link-badge {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.inscrever-badge.inscrito {
    background: #2ecc71 !important; /* verde */
}

/* 🔥 SEARCH EM TEMPO REAL */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
    max-width: 400px;
}

.entries-search {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1em;
    padding: 8px 0;
    background: transparent;
    color: #333;
}

.entries-search::placeholder {
    color: #94a3b8;
}

.search-clear-btn {
    background: #64748b;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    transition: all 0.3s ease;
}

.search-clear-btn:hover {
    background: #475569;
    transform: scale(1.1);
}

.search-info {
    font-size: 0.85em;
    color: #64748b;
    font-weight: 600;
    white-space: nowrap;
}

.search-results-count {
    font-weight: 800;
    color: #3b82f6;
}

.search-container:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.entry-card {
    transition: all 0.3s ease;
}

.entry-card[style*="display: none"] {
    opacity: 0;
    transform: scale(0.95);
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
/* =========================================================
   /minhas-inscricoes/
   ========================================================= */

.wpforms-subscriptions-page .subscriptions-header {
    text-align: center;
    margin-bottom: 30px;
}

.subscriptions-list {
    margin-top: 20px;
}

.subscription-item {
    background: white;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
}

.subscription-meta {
    margin: 10px 0;
    font-size: 14px;
}

.subscription-details .detail-item {
    font-size: 14px;
    margin: 4px 0;
    border-left: 3px solid #0073aa;
    padding-left: 8px;
}

.no-subscriptions .empty-state {
    text-align: center;
    padding: 40px;
    background: #f8f9fb;
    border-radius: 12px;
}

.back-btn {
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    background: #0073aa;
    color: white;
}

/* FORM */
.subscriptions-form {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fb;
    border-radius: 12px;
}



/*---------------------*/
/* Container principal - já existe no seu CSS base */
.entry-content {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

/* Horário e Título lado a lado - display flex */
.entry-content .entry-field:first-child,
.entry-content .entry-field:nth-child(2) {
    display: flex;
    flex: 1;
    min-width: 0; /* Importante para evitar overflow */
    align-items: center; /* Alinha verticalmente o conteúdo */
}

/* Horário específico - pode querer menos espaço */
.entry-content .entry-field:first-child {
    flex: 0 1 auto; /* Não cresce, mas encolhe se necessário */
    min-width: 140px; /* Largura mínima para horário */
}

/* Título específico - ocupa o espaço restante */
.entry-content .entry-field:nth-child(2) {
    flex: 1; /* Ocupa todo o espaço disponível */
    min-width: 0; /* Crucial para text-overflow funcionar */
}

/* Descrição - ocupa 100% da largura */
.entry-content .entry-field:nth-child(3) {
    flex: 0 0 100%; /* Ocupa 100% da linha */
    width: 100%;
}

/* Estilização específica para os spans dentro dos campos */
.entry-content .entry-field:first-child span,
.entry-content .entry-field:nth-child(2) span,
.entry-content .entry-field:nth-child(3) span {
    width: 100%;
}

/* Estilo específico para o horário */
.entry-content .entry-field:first-child span {
    font-weight: 600;
    color: #3b82f6;
    background: #eff6ff;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    white-space: nowrap;
}

/* Estilo específico para o título - com ellipsis para texto longo */
.entry-content .entry-field:nth-child(2) span {
    font-weight: 700;
    font-size: 1.1em;
    color: #1e293b;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Estilo específico para a descrição */
.entry-content .entry-field:nth-child(3) span {
    color: #64748b;
    line-height: 1.6;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 6px;
    display: block;
}


.filter-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 20px;
}

.entries-filter {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 10px 0 25px;
}

.filter-container,
.search-container {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.filter-container label,
.search-container label {
  font-weight: 500;
  white-space: nowrap;
}

.entries-filter,
.entries-search {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 12px;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}


/* ===============================
   RESPONSIVO
   =============================== */
@media (max-width: 600px) {
	
	.filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
	
    .entries-header,
    .selection-header {
		display: none;
        flex-direction: column;
        gap: 10px;
    }

    .event-stats,
    .entries-stats {
        flex-direction: column;
    }
	
	.entry-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .entry-content .entry-field:first-child,
    .entry-content .entry-field:nth-child(2) {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .entry-content .entry-field:first-child {
        min-width: auto;
    }
    
    .entry-content .entry-field:nth-child(2) span {
        white-space: normal; /* Permite quebra de linha no mobile */
        text-overflow: clip;
    }
}
}