/* PAK LUNG 2.0 — Public theme (tiger mascot palette) */
:root {
    --pl-info: var(--pl-orange, #F47A1F);
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

.hero {
    background: linear-gradient(135deg, var(--pl-black, #1E1B17) 0%, var(--pl-orange, #F47A1F) 100%);
    min-height: 460px;
}

.hero-sm {
    background: linear-gradient(135deg, var(--pl-black, #1E1B17) 0%, var(--pl-orange, #F47A1F) 100%);
}

/* Warm near-black navbar/footer to match the mascot's polo. */
.navbar.bg-dark,
footer.bg-dark {
    background-color: var(--pl-black, #1E1B17) !important;
}

.counter {
    transition: color .2s ease;
}

.content-body {
    line-height: 1.8;
    font-size: 1.05rem;
}

.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
}

/* Mobile sticky bottom navigation */
.pl-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    display: flex;
    background: var(--pl-black, #1E1B17);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .25);
    padding-bottom: env(safe-area-inset-bottom);
}

.pl-bottom-nav a {
    flex: 1 1 0;
    text-align: center;
    padding: .45rem .2rem .5rem;
    color: #cdd6e2;
    text-decoration: none;
    font-size: .68rem;
    line-height: 1.2;
}

.pl-bottom-nav a i {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 2px;
}

.pl-bottom-nav a.active {
    color: var(--pl-orange, #F47A1F);
}

@media (max-width: 991.98px) {
    /* Keep page content clear of the fixed bottom bar. */
    body {
        padding-bottom: 60px;
    }
}

/* Floating AI widget */
#pl-ai-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
}

/* Lift the AI widget above the mobile bottom nav. */
@media (max-width: 991.98px) {
    #pl-ai-widget {
        bottom: 74px;
    }
}

#pl-ai-toggle {
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
}

#pl-ai-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 330px;
    max-width: 90vw;
    border: none;
}

#pl-ai-messages {
    height: 320px;
    overflow-y: auto;
    background: #f8f9fa;
}

.pl-msg {
    margin-bottom: .5rem;
    display: flex;
}

.pl-msg .bubble {
    padding: .45rem .7rem;
    border-radius: .75rem;
    max-width: 82%;
    white-space: pre-wrap;
    font-size: .85rem;
}

.pl-msg.user {
    justify-content: flex-end;
}

.pl-msg.user .bubble {
    background: var(--pl-info);
    color: #fff;
}

.pl-msg.bot .bubble {
    background: #fff;
    border: 1px solid #dee2e6;
}
