/* =============================================
   MemoBible — Design System (páginas internas)
   ============================================= */

/* ── RESET & BASE ── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; min-height: 100%; }

body {
    font-family: 'DM Sans', 'Inter', Arial, sans-serif;
    background: #f4f6fb;
    color: #1f2937;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: #2f3e9e; text-decoration: none; }
a:hover { text-decoration: underline; }


/* ── HEADER ── */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-brand { flex-shrink: 0; }
.site-brand img { height: 42px; display: block; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.site-nav a {
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    font-size: 14px;
    padding: 7px 14px;
    border-radius: 8px;
    transition: color 0.18s, background 0.18s;
}

.site-nav a:hover {
    color: #2f3e9e;
    background: rgba(47,62,158,0.06);
    text-decoration: none;
}

.nav-spacer { width: 8px; }

.site-user {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 0;
}

.site-btn {
    display: inline-block;
    background: #2f3e9e;
    color: #ffffff !important;
    padding: 9px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none !important;
    transition: background 0.18s, transform 0.18s;
}
.site-btn:hover { background: #253280; transform: translateY(-1px); }

.site-btn-ghost {
    display: inline-block;
    color: #374151 !important;
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none !important;
    border: 1px solid #d1d5db;
    transition: all 0.18s;
}
.site-btn-ghost:hover {
    border-color: #2f3e9e;
    color: #2f3e9e !important;
    background: rgba(47,62,158,0.04);
}

/* ── LANG SELECTOR ── */

.lang-selector {
    display: flex;
    gap: 3px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 3px;
    background: #f9fafb;
    flex-shrink: 0;
}

.lang-btn {
    background: none;
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #9ca3af;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.18s;
}

.lang-btn:hover { color: #2f3e9e; }

.lang-btn.active {
    background: #2f3e9e;
    color: #fff;
    box-shadow: 0 2px 6px rgba(47,62,158,0.2);
}

/* ── HAMBURGER ── */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.25s;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ── PAGE CONTENT ── */

.page-content { flex: 1; }


/* ── FOOTER ── */

.site-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-footer-brand img { height: 32px; display: block; }
.site-footer-copy { color: #94a3b8; font-size: 13px; }


/* ── TOAST NOTIFICATIONS ── */

#toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.toast.show { transform: translateX(0); }
.toast-success { background: #059669; }
.toast-error { background: #dc2626; }
.toast-info { background: #2f3e9e; }


/* ── RESPONSIVE ── */

@media (max-width: 768px) {
    .hamburger { display: flex; }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 32px;
        gap: 4px;
        box-shadow: -8px 0 30px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 105;
    }

    .site-nav.open { transform: translateX(0); }

    .site-nav a {
        width: 100%;
        padding: 12px 16px;
        font-size: 15px;
    }

    .nav-spacer {
        width: 100%;
        height: 1px;
        background: #e5e7eb;
        margin: 8px 0;
    }

    .site-user {
        padding: 12px 16px;
        font-size: 15px;
    }

    .site-btn, .site-btn-ghost {
        width: 100%;
        text-align: center;
        padding: 12px 16px;
    }

    #toast-container {
        right: 12px;
        left: 12px;
    }

    .toast { width: 100%; }
}

@media (max-width: 900px) {
    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .site-footer-copy { text-align: left; }
}
