/* ======================================================
   PROCLAMA — DESIGN SYSTEM PREMIUM (SAAS REAL)
   ====================================================== */

:root {
    --bg-main: #0b1020;
    --bg-card: #0f172a;
    --bg-soft: #1f2937;

    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --danger: #ef4444;
    --danger-hover: #dc2626;

    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --text-soft: #cbd5f5;

    --border: #1f2937;

    --radius: 14px;
    --radius-sm: 10px;
    --transition: .25s ease;

    --sidebar-width: 260px;
    --mobile-nav-height: 76px;
}

/* ======================================================
   RESET / BASE
   ====================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    background: radial-gradient(1200px 400px at top, #0f172a, #020617);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ======================================================
   LAYOUT
   ====================================================== */
.app-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 32px;
}

/* ======================================================
   SIDEBAR (DESKTOP)
   ====================================================== */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #020617, #020617);
    border-right: 1px solid var(--border);
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.logo {
    padding: 26px 24px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 600;
    transition: var(--transition);
}

.sidebar-nav a:hover {
    background: rgba(59,130,246,.12);
    color: var(--text-main);
}

.sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(59,130,246,.25), transparent);
    color: var(--primary);
}

/* ======================================================
   SIDEBAR FOOTER
   ====================================================== */
.sidebar-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

/* ======================================================
   PAGE HEADER
   ====================================================== */
.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 800;
}

.page-header p {
    color: var(--text-muted);
    margin-top: 6px;
}

/* ======================================================
   CARDS
   ====================================================== */
.card {
    background: linear-gradient(180deg, #0f172a, #020617);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    margin-bottom: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
}

/* ======================================================
   BUTTONS — PADRÃO ÚNICO
   ====================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    background: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    border: 1px solid var(--danger);
    color: var(--danger);
    background: transparent;
}

.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

/* ======================================================
   INPUTS
   ====================================================== */
input, textarea, select {
    width: 100%;
    background: #020617;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
}

/* ======================================================
   SERMON CARD (LISTAGEM)
   ====================================================== */
.sermao-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.sermao-card p {
    color: var(--text-muted);
}

/* ======================================================
   MOBILE NAV (FUNCIONAL DE VERDADE)
   ====================================================== */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {

    .sidebar {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
        padding-bottom: calc(var(--mobile-nav-height) + 24px);
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--mobile-nav-height);
        background: rgba(2,6,23,.95);
        border-top: 1px solid var(--border);
        justify-content: space-around;
        align-items: center;
        z-index: 9999;
        backdrop-filter: blur(10px);
    }

    .mobile-bottom-nav a {
        flex: 1;
        text-align: center;
        padding: 10px 0;
        font-size: 11px;
        font-weight: 700;
        color: var(--text-muted);
        transition: var(--transition);
    }

    .mobile-bottom-nav a.active {
        color: var(--primary);
    }

    .mobile-bottom-nav a span {
        display: block;
        font-size: 22px;
        margin-bottom: 2px;
    }
}
/* =========================
   EDITOR DE SERMÃO – PREMIUM
   ========================= */

.editor-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.editor-section {
    background: linear-gradient(180deg, #0f172a, #020617);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
}

.editor-section.highlight {
    border-color: rgba(59,130,246,.6);
}

.editor-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.editor-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.editor-header span {
    font-size: 13px;
    color: var(--text-muted);
}

.editor-section textarea {
    width: 100%;
    min-height: 180px;
    background: #020617;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-main);
    resize: vertical;
    transition: border .2s ease, box-shadow .2s ease;
}

.editor-section textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(59,130,246,.25);
}

@media (max-width: 768px) {
    .editor-section textarea {
        min-height: 160px;
        font-size: 16px;
    }
}
/* ===============================
   AUTH — LOGIN / REGISTER (SaaS)
   =============================== */

.auth-bg {
    min-height: 100vh;
    background: radial-gradient(
        circle at top,
        #1e293b,
        #020617 70%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', system-ui, sans-serif;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 
        0 20px 60px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.05);
}

.auth-logo {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}

.auth-subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 28px;
}

.auth-box label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #cbd5f5;
    font-weight: 600;
}

.auth-box input {
    width: 100%;
    background: #020617;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 14px;
    color: #fff;
    margin-bottom: 18px;
    font-size: 15px;
    transition: border 0.2s, box-shadow 0.2s;
}

.auth-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
}

.auth-box button {
    width: 100%;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.auth-box button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(59,130,246,0.45);
}

.auth-alert {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 18px;
    text-align: center;
}

.auth-alert.error {
    background: rgba(239,68,68,0.15);
    color: #fecaca;
    border: 1px solid rgba(239,68,68,0.3);
}

.auth-alert.success {
    background: rgba(34,197,94,0.15);
    color: #bbf7d0;
    border: 1px solid rgba(34,197,94,0.3);
}

.auth-toggle {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: #94a3b8;
}

.auth-toggle a {
    color: #60a5fa;
    font-weight: 600;
    text-decoration: none;
}

.auth-toggle a:hover {
    text-decoration: underline;
}
