/* FaithSpace Web App */
:root {
    --fs-primary: #048c3f;
    --fs-primary-dark: #037033;
    --fs-accent: #10b981;
    --fs-bg: #f4f7f5;
    --fs-surface: #ffffff;
    --fs-text: #0f172a;
    --fs-muted: #64748b;
    --fs-border: #e2e8f0;
    --fs-sidebar-w: 260px;
    --fs-bottom-nav-h: 64px;
    --fs-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --fs-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --fs-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body.fs-app {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background: var(--fs-bg);
    color: var(--fs-text);
    min-height: 100vh;
}

.fs-app-shell {
    display: flex;
    min-height: 100vh;
}

.fs-sidebar {
    width: var(--fs-sidebar-w);
    background: var(--fs-surface);
    border-right: 1px solid var(--fs-border);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    display: none;
    flex-direction: column;
    padding: 1rem;
}

@media (min-width: 992px) {
    .fs-sidebar { display: flex; }
    .fs-main { margin-left: var(--fs-sidebar-w); }
    .fs-bottom-nav { display: none !important; }
}

.fs-main {
    flex: 1;
    min-width: 0;
    padding-bottom: calc(var(--fs-bottom-nav-h) + 1rem);
}

@media (min-width: 992px) {
    .fs-main { padding-bottom: 1.5rem; }
}

.fs-brand {
    font-weight: 800;
    color: var(--fs-primary);
    font-size: 1.5rem;
    text-decoration: none;
    margin-bottom: 1rem;
    display: block;
}

.fs-nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1rem;
    border-radius: .75rem;
    color: var(--fs-muted);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: .25rem;
    transition: all 0.2s ease;
}

.fs-nav-link:hover,
.fs-nav-link.active {
    background: rgba(4, 140, 63, .1);
    color: var(--fs-primary);
}

.fs-nav-link i {
    font-size: 1.1rem;
    width: 1.25rem;
    text-align: center;
}

.fs-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--fs-bottom-nav-h);
    background: var(--fs-surface);
    border-top: 1px solid var(--fs-border);
    display: flex;
    z-index: 1040;
    box-shadow: var(--fs-shadow-lg);
}

.fs-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    color: var(--fs-muted);
    text-decoration: none;
    font-size: .75rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.fs-bottom-nav a:hover,
.fs-bottom-nav a.active {
    color: var(--fs-primary);
}

.fs-bottom-nav a i {
    font-size: 1.25rem;
}

.fs-card {
    background: var(--fs-surface);
    border: 1px solid var(--fs-border);
    border-radius: 1.25rem;
    box-shadow: var(--fs-shadow-md);
    transition: box-shadow 0.2s ease;
}

.fs-card:hover {
    box-shadow: var(--fs-shadow-lg);
}

.fs-post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    object-fit: cover;
    background: #e2e8f0;
}

.fs-live-badge {
    background: #ef4444;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: .15rem .5rem;
    border-radius: .35rem;
    letter-spacing: .05em;
}

.fs-stream-frame {
    aspect-ratio: 16/9;
    border: 0;
    width: 100%;
    border-radius: 1rem;
    background: #000;
}

.btn-fs-primary {
    background: var(--fs-primary);
    border-color: var(--fs-primary);
    color: #fff;
    transition: all 0.2s ease;
}

.btn-fs-primary:hover {
    background: var(--fs-primary-dark);
    border-color: var(--fs-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--fs-shadow-md);
}

.fs-chat-messages {
    max-height: 60vh;
    overflow-y: auto;
}

.fs-chat-bubble {
    max-width: 75%;
    padding: .8rem 1rem;
    border-radius: 1.25rem;
    margin-bottom: .75rem;
    line-height: 1.5;
}

.fs-chat-bubble.mine {
    background: var(--fs-primary);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: .35rem;
}

.fs-chat-bubble.theirs {
    background: #f1f5f9;
    border-bottom-left-radius: .35rem;
}

.fs-status-ring {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 3px solid var(--fs-primary);
    padding: 3px;
    object-fit: cover;
}

.fs-toast-live {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2000;
}
