/* ============================================================
   BillerPoint Theme — Base Styles
   Keep minimal; the plugin's fbp-style.css handles the app UI.
   ============================================================ */

:root {
    --bp-primary: #4F46E5;
    --bp-primary-dark: #4338CA;
    --bp-text: #1e293b;
    --bp-text-muted: #64748b;
    --bp-bg: #ffffff;
    --bp-bg-muted: #f8fafc;
    --bp-border: #e2e8f0;
    --bp-radius: 12px;
    --bp-max-width: 1200px;
    --bp-header-height: 64px;
    --bp-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--bp-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--bp-text);
    background: var(--bp-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--bp-primary);
    text-decoration: none;
}

a:hover {
    color: var(--bp-primary-dark);
}

/* ============================================================
   App shell
   ============================================================ */

.bp-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bp-main {
    flex: 1 0 auto;
    width: 100%;
}

.bp-page {
    width: 100%;
    min-height: calc(100vh - var(--bp-header-height));
}

.bp-container {
    max-width: var(--bp-max-width);
    margin: 0 auto;
    padding: 24px;
}

/* ============================================================
   Header
   ============================================================ */

.bp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid var(--bp-border);
    backdrop-filter: saturate(180%) blur(10px);
}

.bp-header-inner {
    max-width: var(--bp-max-width);
    margin: 0 auto;
    min-height: var(--bp-header-height);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 24px;
}

.bp-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--bp-text);
    flex-shrink: 0;
}

.bp-brand img {
    max-height: 40px;
    width: auto;
}

.bp-brand-text {
    color: var(--bp-primary);
}

.bp-nav {
    flex: 1;
}

.bp-menu {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-menu li a {
    display: block;
    padding: 8px 14px;
    border-radius: 8px;
    color: var(--bp-text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}

.bp-menu li a:hover,
.bp-menu li.current-menu-item > a {
    background: var(--bp-bg-muted);
    color: var(--bp-primary);
}

.bp-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.bp-avatar {
    border-radius: 50%;
    object-fit: cover;
}

.bp-user-name {
    font-weight: 600;
    font-size: 14px;
}

/* ============================================================
   Buttons
   ============================================================ */

.bp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.bp-btn-primary {
    background: var(--bp-primary);
    color: #fff;
}

.bp-btn-primary:hover {
    background: var(--bp-primary-dark);
    color: #fff;
}

.bp-btn-outline {
    background: transparent;
    border-color: var(--bp-border);
    color: var(--bp-text);
}

.bp-btn-outline:hover {
    border-color: var(--bp-primary);
    color: var(--bp-primary);
}

.bp-btn-ghost {
    background: var(--bp-bg-muted);
    color: var(--bp-text);
}

.bp-btn-ghost:hover {
    background: var(--bp-border);
}

/* ============================================================
   Content / posts (fallback pages)
   ============================================================ */

.bp-post {
    padding: 24px 0;
    border-bottom: 1px solid var(--bp-border);
}

.bp-post-title {
    font-size: 24px;
    margin: 0 0 8px;
}

.bp-post-meta {
    font-size: 13px;
    color: var(--bp-text-muted);
    margin-bottom: 16px;
}

/* ============================================================
   404
   ============================================================ */

.bp-404 {
    text-align: center;
    padding: 80px 24px;
}

.bp-404 h1 {
    font-size: 72px;
    margin: 0 0 8px;
    color: var(--bp-primary);
}

/* ============================================================
   Footer
   ============================================================ */

.bp-footer {
    background: var(--bp-bg-muted);
    border-top: 1px solid var(--bp-border);
    padding: 32px 24px 24px;
    margin-top: auto;
}

.bp-footer-inner {
    max-width: var(--bp-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
}

.bp-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
}

.bp-footer-links a {
    color: var(--bp-text-muted);
}

.bp-footer-links a:hover {
    color: var(--bp-primary);
}

.bp-footer-copy {
    font-size: 12px;
    color: var(--bp-text-muted);
}

.bp-footer-widgets {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.bp-footer-widget-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bp-text-muted);
    margin: 0 0 8px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
    .bp-nav {
        display: none;
    }

    .bp-header-inner {
        gap: 12px;
    }

    .bp-user-name {
        display: none;
    }
}

@media (max-width: 600px) {
    .bp-header-inner {
        padding: 0 16px;
    }

    .bp-container {
        padding: 16px;
    }

    .bp-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}