/*
 * Best Effort Hosting - theme overrides.
 * Re-points Bootstrap's CSS custom properties to an orange/amber brand colour
 * instead of the default blue. Danger/success utilities are left untouched
 * so red still only ever means "something is actually wrong".
 */

.skip-link {
    position: absolute;
    top: -3rem;
    left: 0.5rem;
    z-index: 2100;
    background-color: #fff;
    color: #212529;
    padding: 0.5rem 1rem;
    border-radius: 0 0 0.25rem 0.25rem;
    transition: top 0.15s ease-in-out;
}

.skip-link:focus {
    top: 0;
}

:root {
    --bs-primary: #e8590c;
    --bs-primary-rgb: 232, 89, 12;
    --bs-primary-text-emphasis: #7a3006;
    --bs-primary-bg-subtle: #fde4d3;
    --bs-primary-border-subtle: #f7b787;
    --bs-link-color: var(--bs-primary);
    --bs-link-color-rgb: var(--bs-primary-rgb);
    --bs-link-hover-color: #b8440a;
    --bs-link-hover-color-rgb: 184, 68, 10;
}

.btn-primary {
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-bg: #c94e0b;
    --bs-btn-hover-border-color: #bd4a0a;
    --bs-btn-active-bg: #bd4a0a;
    --bs-btn-active-border-color: #b1450a;
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}

.bg-brand {
    background-color: #b8440a;
}

.bg-brand-dark {
    background-color: #5c2205;
}

.text-brand {
    color: var(--bs-primary);
}

.navbar .nav-link.active {
    font-weight: 600;
    color: #fff !important;
}

.hero {
    background: linear-gradient(135deg, #e8590c, #f7941d);
    color: #fff;
}

.hero code {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.05em 0.4em;
    border-radius: 0.25rem;
}

.card.featured-tier {
    border: 2px solid var(--bs-primary);
    box-shadow: 0 0.5rem 1rem rgba(var(--bs-primary-rgb), 0.15);
}

.badge-featured {
    background-color: var(--bs-primary);
}

.status-dot {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background-color: var(--bs-primary);
    margin-right: 0.4rem;
}

main {
    min-height: 60vh;
}

.footer-shrug {
    font-size: 3rem;
    line-height: 1;
}

.chat-widget {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.chat-toggle {
    width: 3.25rem;
    height: 3.25rem;
    padding: 0;
}

.chat-panel {
    width: 280px;
}

.chat-panel .card {
    border: none;
}

.cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-box {
    background-color: #fff;
    color: #212529;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 26rem;
    width: 100%;
    animation: cookie-nag 1.6s ease-in-out infinite;
}

@keyframes cookie-nag {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.5);
    }
    50% {
        box-shadow: 0 0 0 0.5rem rgba(var(--bs-primary-rgb), 0);
    }
}

.trust-badge {
    background-color: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
    border: 1px solid var(--bs-primary-border-subtle);
}

.visitor-counter {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: #adb5bd;
}

.visitor-counter-num {
    background-color: #000;
    color: #33ff33;
    padding: 0.1rem 0.4rem;
    border: 1px solid #333;
    letter-spacing: 0.15em;
}
