/* -------------------------------------------------------------
   GLOBAL THEME
------------------------------------------------------------- */

:root {
    --font-main: "Nunito Sans", sans-serif;

    /* Light Theme */
    --bg-body: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-soft: #f8fafc;
    --bg-input: #f3f4f6;

    --text-dark: #0f172a;
    --text-normal: #475569;
    --text-light: #64748b;

    --border-soft: #e2e8f0;

    --primary: #2563eb;
    --primary-soft: #eff6ff;
    --primary-dark: #1d4ed8;

    --radius: 12px;
}

/* DARK THEME (admin can activate) */
:root.dark {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-card-soft: #162032;
    --bg-input: #1e293b;

    --text-dark: #f1f5f9;
    --text-normal: #cbd5e1;
    --text-light: #94a3b8;

    --border-soft: #334155;
}

/* -------------------------------------------------------------
   GLOBAL RESETS
------------------------------------------------------------- */

body {
    font-family: var(--font-main);
    background: var(--bg-body);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: var(--primary-dark);
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* -------------------------------------------------------------
   LAYOUT
------------------------------------------------------------- */

.navbar-custom {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-soft);
    padding: 0.7rem 1rem;
}

.page-container {
    padding-top: 80px;
}

.card-soft {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(15,23,42,0.03);
}

/* -------------------------------------------------------------
   COMPONENTS
------------------------------------------------------------- */

.avatar-sm {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.btn-primary-custom {
    background-color: var(--primary);
    color: #fff;
    padding: 6px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-outline-custom {
    border: 1px solid var(--border-soft);
    background: transparent;
    color: var(--text-normal);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.topic-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 15px;
    background: var(--bg-card-soft);
    border: 1px solid var(--border-soft);
    margin: 2px;
}

.question-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.question-meta {
    font-size: 0.78rem;
    color: var(--text-light);
}

.ask-inline {
    background: var(--bg-input);
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    cursor: pointer;
}

.ask-inline:hover {
    background: var(--bg-card-soft);
}

/* -------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------- */

@media (max-width: 992px) {
    .sidebar-left,
    .sidebar-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .question-title {
        font-size: 1rem;
    }
}
