/* Base Styles */

/* CSS Variables for Light/Dark Mode */
:root {
    --scdev-bg-primary: #ffffff;
    --scdev-bg-secondary: #f8fafc;
    --scdev-bg-card: #ffffff;
    --scdev-bg-hover: #f1f5f9;
    --scdev-text-primary: #0f172a;
    --scdev-text-secondary: #475569;
    --scdev-text-muted: #64748b;
    --scdev-border: #e2e8f0;
    --scdev-border-light: #f1f5f9;
    --scdev-shadow: rgba(0, 0, 0, 0.08);
}

/* Dark Mode (only when theme or user enables night-mode, dark-mode, or html.dark) */
body.night-mode,
body.dark-mode,
html.dark {
    --scdev-bg-primary: #12131a;
    --scdev-bg-secondary: #1a1b26;
    --scdev-bg-card: #1e1f2b;
    --scdev-bg-hover: #262838;
    --scdev-text-primary: #f8fafc;
    --scdev-text-secondary: #cbd5e1;
    --scdev-text-muted: #94a3b8;
    --scdev-border: #2e3146;
    --scdev-border-light: #25283a;
    --scdev-shadow: rgba(0, 0, 0, 0.35);
}

/* Theme CSS Variables Override (if theme provides them) */
.scdev-sb-v2-feed {
    max-width: 100%;
    margin: 0;
    padding: 0 0 80px 0;
    background: transparent;
    color: var(--scdev-text-primary);
}

.scdev-hidden {
    display: none !important;
}

.scdev-sb-v2-avatar-wrap {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    line-height: 0 !important;
}

.scdev-sb-v2-avatar {
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    line-height: 0;
}

.scdev-sb-v2-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.scdev-sb-v2-avatar-wrap .scdev-online-bullet {
    position: absolute !important;
    bottom: 0px !important;
    right: 0px !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.scdev-sb-v2-loading {
    text-align: center;
    padding: 20px;
    color: var(--scdev-text-secondary);
}

.scdev-sb-v2-no-posts {
    text-align: center;
    padding: 40px 20px;
    color: var(--scdev-text-muted);
}

.scdev-sb-v2-login-msg {
    text-align: center;
    padding: 20px;
    background: var(--scdev-bg-secondary);
    border-radius: 8px;
    color: var(--scdev-text-secondary);
}
