/* Toolbox Hub custom styles — Bootstrap 5.3 is the base; this file adds the
   brand palette and small layout touches. */

:root {
    --ub-navy: #1f2a44;
    --ub-navy-dark: #17203a;
    --ub-accent: #0d6efd;
    --ub-accent-teal: #0dcaf0;
    --ub-bg: #f6f8fb;
}

body {
    background-color: var(--ub-bg);
    color: #212529;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: 0.25rem;
    left: 0.25rem;
    z-index: 2000;
    background: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

/* Navbar / footer */
.bg-navy {
    background-color: var(--ub-navy) !important;
}

.text-accent {
    color: var(--ub-accent-teal) !important;
}

.btn-accent {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ub-accent);
    --bs-btn-border-color: var(--ub-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0a58ca;
    --bs-btn-active-border-color: #0a53be;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--ub-navy) 0%, var(--ub-navy-dark) 60%, #24365e 100%);
}

.hero-lead {
    max-width: 46rem;
    color: #d9e2f3;
}

.hero-search {
    max-width: 40rem;
}

/* Cards */
.tool-card,
.category-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tool-card:hover,
.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(31, 42, 68, 0.12) !important;
}

.tool-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--ub-accent);
    background-color: rgba(13, 110, 253, 0.1);
}

.category-icon {
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background-color: var(--ub-accent);
}

/* Long-form pages */
.content-page {
    max-width: 50rem;
}

.category-intro {
    max-width: 46rem;
}

/* Advertisement placeholders: subtle, fixed-height slots that reserve space
   to avoid layout shift, and never overlap controls. */
.ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    border: 1px dashed #c6cede;
    border-radius: 0.5rem;
    background-color: #eef1f7;
    color: #8a94ab;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ad-top_banner,
.ad-footer_banner {
    width: 100%;
    max-width: 970px;
    min-height: 90px;
}

.ad-below_tool,
.ad-content_middle {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
}

.ad-desktop_sidebar {
    width: 300px;
    min-height: 250px;
}

/* Visible focus for keyboard users */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(13, 110, 253, 0.5);
    outline-offset: 2px;
}

/* Honeypot field: invisible to humans, filled in by bots */
.mb-3:has(.hp-field) {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Stat boxes (word counter etc.) */
.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border: 1px solid #e3e8f2;
    border-radius: 0.5rem;
    background-color: #fff;
}

.stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ub-navy);
}

.stat-label {
    font-size: 0.75rem;
    color: #6c7890;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
