/* ===== Sonhe Eventos – Auth & Área Restrita ===== */

/* ---------- Auth Section ---------- */
.sonhe-auth-section {
    min-height: calc(100vh - 120px);
    background: var(--cream);
    display: flex;
    align-items: center;
    padding: 60px 0;
    border-top: solid 100px #6e4e34;
}

.sonhe-auth-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 40px;
}

@media (max-width: 640px) {
    .sonhe-auth-card { padding: 32px 20px; }
}

/* ---------- Tabs ---------- */
.sonhe-auth-tabs {
    display: flex;
    gap: 0;
    border: 1.5px solid var(--brown-light);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 36px;
}

.sonhe-tab {
    flex: 1;
    padding: 11px 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--brown);
    transition: var(--transition);
    font-family: 'Helvetica Neue', sans-serif;
    letter-spacing: .3px;
}

.sonhe-tab.active {
    background: var(--brown);
    color: var(--white);
}

/* ---------- Form elements ---------- */
.sonhe-auth-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.sonhe-auth-sub {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 28px;
}

.sonhe-tab-content { display: none; }
.sonhe-tab-content.active { display: block; }

.sonhe-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

@media (max-width: 520px) {
    .sonhe-form-grid { grid-template-columns: 1fr; }
    .sonhe-col-2 { grid-column: 1 !important; }
}

.sonhe-col-2 { grid-column: 1 / -1; }

.sonhe-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.sonhe-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    margin-bottom: 6px;
}

.sonhe-field .req { color: var(--brown); }

.sonhe-field input,
.sonhe-field select,
.sonhe-field textarea {
    padding: 11px 14px;
    border: 1.5px solid #e0d8cf;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color var(--transition);
    outline: none;
}

.sonhe-field input:focus,
.sonhe-field select:focus,
.sonhe-field textarea:focus {
    border-color: var(--brown);
}

.sonhe-field input.error { border-color: #e74c3c; }

/* Pass toggle */
.sonhe-pass-wrap {
    position: relative;
}
.sonhe-pass-wrap input { padding-right: 44px; width: 100%; }
.sonhe-toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    display: flex;
    align-items: center;
}
.sonhe-toggle-pass:hover { color: var(--brown); }

/* Full-width button */
.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 14px 28px;
    font-size: 15px;
}

/* Spinner */
.btn-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: middle;
    flex-shrink: 0;
    font-size: 0;
    line-height: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Message */
.sonhe-msg {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}
.sonhe-msg.success { background: #eafaf1; color: #1d8348; border: 1px solid #a9dfbf; }
.sonhe-msg.error   { background: #fdf2f2; color: #c0392b; border: 1px solid #f1aeb5; }

/* Switch link */
.sonhe-auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 24px;
}
.sonhe-auth-switch a {
    color: var(--brown);
    font-weight: 600;
    text-decoration: none;
}
.sonhe-auth-switch a:hover { text-decoration: underline; }

/* ===== Área do Assinante – Meus Eventos ===== */
.sonhe-area-section {
    min-height: calc(100vh - 120px);
    background: var(--cream);
    padding: 60px 0;
    border-top: solid 100px #6e4e34;
}

.sonhe-area-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.sonhe-area-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
}

.sonhe-user-greeting {
    font-size: 14px;
    color: var(--text-light);
}
.sonhe-user-greeting strong { color: var(--brown); }

/* Event cards */
.sonhe-eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.sonhe-evento-card {
    background: var(--white);
    border-radius: 0;
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sonhe-evento-card__thumb {
    height: 180px;
    overflow: hidden;
}
.sonhe-evento-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.sonhe-evento-card:hover .sonhe-evento-card__thumb img { transform: scale(1.04); }

.sonhe-evento-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.sonhe-evento-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.sonhe-evento-card__meta svg { flex-shrink: 0; }

.sonhe-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.sonhe-badge--ativo       { background: #eafaf1; color: #1d8348; }
.sonhe-badge--espera      { background: #fef9e7; color: #d68910; }
.sonhe-badge--cancelado   { background: #fdf2f2; color: #c0392b; }

.sonhe-evento-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
}

.sonhe-evento-card__actions {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Gallery modal */
.sonhe-gallery-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.sonhe-gallery-modal-overlay.open { display: flex; }

.sonhe-gallery-modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 90%;
    max-width: 900px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
}

.sonhe-gallery-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}
.sonhe-gallery-modal__close:hover { color: var(--text-dark); }

.sonhe-gallery-modal__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    padding-right: 32px;
}

.sonhe-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.sonhe-gallery-grid a {
    display: block;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1;
}

.sonhe-gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.sonhe-gallery-grid a:hover img { transform: scale(1.06); }

/* Empty state */
.sonhe-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.sonhe-empty svg { margin: 0 auto 16px; opacity: .4; }
.sonhe-empty h3 { font-size: 18px; color: var(--text-mid); margin-bottom: 8px; }

/* ===== Single Evento – Inscricao ===== */
.sonhe-inscricao-box {
    background: var(--cream);
    border: 1.5px solid var(--cream-dark);
    border-radius: var(--radius);
    padding: 32px;
    margin: 40px 0;
}

.sonhe-inscricao-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.sonhe-inscricao-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.sonhe-inscricao-status--confirmada {
    background: #eafaf1;
    color: #1d8348;
    border: 1px solid #a9dfbf;
}

.sonhe-inscricao-status--espera {
    background: #fef9e7;
    color: #d68910;
    border: 1px solid #f9e4b7;
}
