/* public/assets/css/formularios_publicos.css */

/* ============================
   LAYOUT GERAL (PÚBLICO)
   ============================ */
body {
    background-color: #F8FAFC; /* Cinza muito suave */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto !important; /* Habilita scroll */
}

/* Container que centraliza o conteúdo na tela */
.container-limit {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================
   CABEÇALHO PÚBLICO
   ============================ */
.public-header {
    background: white;
    border-bottom: 1px solid #E5E7EB;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.brand-logo {
    height: 45px; /* Logo um pouco maior */
    width: auto;
    object-fit: contain;
}

/* Barra de Pesquisa Arredondada */
.search-container {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 45px; /* Espaço para o ícone */
    border-radius: 99px; /* Pílula */
    border: 1px solid #E5E7EB;
    background-color: #F9FAFB;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s ease;
}

.search-input:focus {
    background-color: white;
    border-color: var(--secondary-500); /* Laranja */
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
}

/* ============================
   HERO SECTION (Título)
   ============================ */
.hero-section {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-900); /* Roxo */
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: #6B7280;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ============================
   GRID DE CARDS
   ============================ */
.forms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding-bottom: 3rem;
}

/* Card Estilizado */
.form-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.form-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
    border-color: #D1D5DB;
}

.card-top-border {
    height: 5px;
    background: var(--secondary-500);
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-badge {
    align-self: flex-start;
    background: #DCFCE7;
    color: #166534;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.card-dates {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed #E5E7EB;
    font-size: 0.8rem;
    color: #4B5563;
    display: flex;
    justify-content: space-between;
}

.card-footer {
    padding: 1rem 1.5rem;
    background: #F9FAFB;
    border-top: 1px solid #E5E7EB;
}

.btn-inscrever {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--secondary-500);
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-inscrever:hover {
    background: #EA580C;
    color: white;
}

/* ============================
   EMPTY STATE (Centralizado)
   ============================ */
.empty-state-box {
    background: white;
    border-radius: 12px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 2rem auto;
}

.empty-icon-circle {
    width: 80px; height: 80px;
    background: #F3F4F6;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem auto;
    color: #9CA3AF;
}

/* ============================
   RODAPÉ (Correção)
   ============================ */
.public-footer {
    background: white;
    border-top: 1px solid #E5E7EB;
    padding: 1.5rem 0;
    margin-top: auto; /* Empurra para o final */
    text-align: center;
}

.footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #6B7280;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .search-container { max-width: 100%; }
    .footer-inner { flex-direction: column; }
    .divider { display: none; }
}