/* ============================================
   FRONTEND LAYOUT — Restorasi Institute
   ============================================ */

.frontend-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.frontend-main {
    flex: 1;
}

/* Topbar */
.frontend-topbar {
    font-size: 13px;
}

/* Header */
.frontend-header {
    background: #fff !important;
}

.frontend-header .navbar-brand {
    font-size: inherit;
}

.frontend-header .nav-link {
    color: #1f2937 !important;
    padding: 8px 16px !important;
    font-size: 15px;
    border-radius: 8px;
    transition: .2s;
}

.frontend-header .nav-link:hover {
    color: #1e4fa3 !important;
    background: #f0f5ff;
}

/* Footer */
.frontend-footer {
    background: linear-gradient(180deg, #0f172a 0%, #0b1220 100%) !important;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    display: none;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(30,79,163,0.3);
}

.back-to-top.show {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Dark mode */
html[data-bs-theme="dark"] .frontend-header {
    background: #111827 !important;
    border-color: rgba(148,163,184,.15) !important;
}

html[data-bs-theme="dark"] .frontend-header .nav-link {
    color: #e5e7eb !important;
}

html[data-bs-theme="dark"] .frontend-header .nav-link:hover {
    background: rgba(30,79,163,.15);
    color: #60a5fa !important;
}

html[data-bs-theme="dark"] body {
    background: #0b1220;
    color: #e5e7eb;
}

html[data-bs-theme="dark"] .article-detail,
html[data-bs-theme="dark"] .sidebar-card,
html[data-bs-theme="dark"] .post-card {
    background: #111827 !important;
    border-color: rgba(148,163,184,.15) !important;
}

html[data-bs-theme="dark"] .article-title,
html[data-bs-theme="dark"] .article-content,
html[data-bs-theme="dark"] .post-card-title a {
    color: #f8fafc !important;
}

html[data-bs-theme="dark"] .bg-light {
    background: #0f172a !important;
}