@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --brand: #d97706;
    --accent: #0f766e;
    --surface: #ffffff;
    --surface-2: #f6f4ef;
    --text: #1f2937;
    --muted: #6b7280;
}

.app-body {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    font-family: var(--font, "Inter", system-ui, sans-serif);
    font-weight: 400;
}

.app-body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 10% 10%, rgba(217,119,6,0.12), transparent 45%),
                radial-gradient(circle at 90% 0%, rgba(15,118,110,0.12), transparent 40%);
    pointer-events: none;
    z-index: -1;
}

.navbar {
    backdrop-filter: blur(10px);
    background: var(--surface);
    border-bottom: 1px solid rgba(148,163,184,0.2);
}

.navbar .nav-link,
.navbar .navbar-brand {
    color: var(--bs-body-color);
}

.navbar .nav-link:hover {
    color: var(--brand);
}

.navbar-brand {
    letter-spacing: 0.3px;
}

.card,
.list-group-item,
.bg-white,
.bg-light,
.modal-content,
.dropdown-menu,
.form-control,
.form-select,
.input-group-text {
    background: var(--surface) !important;
    color: var(--bs-body-color);
}

code,
pre,
.code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.95em;
}

.bg-light {
    background: var(--surface-2) !important;
}

.card {
    box-shadow: 0 16px 36px rgba(17,24,39,0.12);
    border: 1px solid rgba(148,163,184,0.25);
}

.card-header,
.list-group-item {
    background: var(--surface);
}

.card-category {
    border-left: 4px solid var(--brand);
}

.profile-avatar {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.profile-hero {
    background: linear-gradient(135deg, rgba(217,119,6,0.16) 0%, rgba(15,118,110,0.16) 100%);
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,0.2);
}

.stat-card {
    border: 1px solid rgba(148,163,184,0.25);
    border-radius: 12px;
    background: var(--surface);
}

.link-list a {
    text-decoration: none;
}

.link-list a:hover {
    text-decoration: underline;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
}

.role-admin {
    background: #f97316;
}

.role-moderator {
    background: #64748b;
}

.role-member {
    background: #16a34a;
}

.post-header {
    display: flex;
    gap: 12px;
    align-items: center;
}

.post-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(148,163,184,0.3);
    background: var(--surface-2);
    padding: 4px;
}

.vote-pill {
    border: 1px solid rgba(148,163,184,0.35);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.85rem;
}

.preview-box {
    border: 1px dashed rgba(148,163,184,0.45);
    background: var(--surface-2);
    border-radius: 12px;
    padding: 16px;
}

.app-footer {
    background: linear-gradient(135deg, rgba(15,118,110,0.12), rgba(217,119,6,0.12));
    border-top: 1px solid rgba(148,163,184,0.2);
}

.footer-slab {
    border-radius: 20px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid rgba(148,163,184,0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 24px;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-tagline {
    color: var(--muted);
}

.footer-title {
    font-size: 0.75rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-links a {
    color: var(--bs-body-color);
    opacity: 0.82;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.text-muted {
    color: var(--muted) !important;
}

.border,
.border-top,
.border-bottom {
    border-color: rgba(148,163,184,0.2) !important;
}

.alert {
    background: var(--surface-2);
    border-color: rgba(148,163,184,0.25);
    color: var(--bs-body-color);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand) 0%, #f59e0b 100%);
    border: none;
}

.btn-outline-primary {
    border-color: rgba(217,119,6,0.5);
}

.mention-box {
    position: absolute;
    z-index: 1050;
    background: var(--surface);
    border: 1px solid rgba(148,163,184,0.35);
    border-radius: 10px;
    box-shadow: 0 16px 32px rgba(15,23,42,0.16);
    min-width: 220px;
    max-height: 220px;
    overflow-y: auto;
}

.mention-item {
    padding: 8px 12px;
    cursor: pointer;
}

.mention-item:hover {
    background: var(--surface-2);
}

.admin-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
}

.admin-sidebar {
    position: sticky;
    top: 88px;
    align-self: start;
}

.admin-card {
    border-radius: 16px;
}

.admin-nav .nav-link {
    color: var(--bs-body-color);
    opacity: 0.8;
}

.admin-nav .nav-link.active {
    opacity: 1;
    background: var(--surface-2);
    border-radius: 10px;
}

@media (max-width: 992px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .profile-avatar {
        width: 72px;
        height: 72px;
    }
}
