/* navigation.css */


/* ============================================================================
   Theme Toggle Button (icon-only)
   ============================================================================ */

.theme-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--bs-body-color);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.theme-toggle-icon:hover {
    background-color: var(--bs-tertiary-bg);
}

.theme-toggle-icon:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.25);
}

.theme-toggle-icon i {
    font-size: 1.1rem;
}

/* Show moon in light mode, sun in dark mode */
[data-bs-theme="light"] .theme-icon-light,
[data-bs-theme="dark"] .theme-icon-dark {
    display: none;
}

[data-bs-theme="light"] .theme-icon-dark,
[data-bs-theme="dark"] .theme-icon-light {
    display: inline;
}

/* Default state (before theme is set) - show moon */
.theme-icon-light {
    display: none;
}

.theme-icon-dark {
    display: inline;
}


/* ============================================================================
   Muted nav link (T&Cs, etc.)
   ============================================================================ */

.nav-link-muted {
    color: var(--bs-secondary-color) !important;
    opacity: 0.7;
}
.nav-link-muted:hover {
    opacity: 1;
}


/* ============================================================================
   Clerk UserButton Styling
   ============================================================================ */

#user-button {
    display: flex;
    align-items: center;
}

/* Make the Clerk avatar blend nicely with the navbar */
.clerk-avatar {
    width: 32px !important;
    height: 32px !important;
}

.clerk-user-button-trigger {
    border-radius: 50%;
    transition: box-shadow 0.15s ease;
}

.clerk-user-button-trigger:hover {
    box-shadow: 0 0 0 2px rgba(var(--bs-primary-rgb), 0.25);
}


/* Revoked item visual tweak */
a.revoked-item::before {
    content: "⚠️ ";
}

/* Pagination styling now that controls live in #paginationControls */
#paginationControls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* Basic button look */
#paginationControls .paginate_button {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    margin: 0 0.1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    color: #0d6efd;
    background-color: #ffffff;
}

/* Current page */
#paginationControls .paginate_button.current {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff !important;
    font-weight: 600;
}

/* Hover */
#paginationControls .paginate_button:not(.current):not(.disabled):hover {
    background-color: #e9ecef;
    text-decoration: none;
}

/* Disabled arrows / edges */
#paginationControls .paginate_button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #6c757d;
    background-color: #ffffff;
}

/* Ellipsis “…” */
#paginationControls .ellipsis {
    padding: 0.25rem 0.5rem;
    color: #6c757d;
}


.brand-font {
    font-family: 'Inter', sans-serif;
}


/* Hero band used on landing (and you can reuse elsewhere) */
.hero-band {
    background: linear-gradient(
        135deg,
        rgba(var(--bs-primary-rgb), 0.95),
        rgba(var(--bs-indigo-rgb, 102, 16, 242), 0.9)
    );
    color: var(--bs-light);
    border-radius: 1.5rem;
}

/* Make small text inside hero readable */
.hero-band .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Icon circle for feature cards */
.feature-icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.12);
}



.hero-bg-gradient {
    background: linear-gradient(145deg, #1a1f2b 0%, #0f141d 40%, #202a39 100%);
    /* similar dark studio gradient to Svelte */
    z-index: 1;
}

.hero-zoomlaw .container {
    z-index: 2;
}

.hero-centrebox {
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.07) !important;
}

/* --- Full-width breakout inside header container --- */
.hero-bleed {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* --- Theme-aware gradient background --- */
.hero-zoomlaw {
    min-height: 60vh;
    display: flex;
    align-items: center;
    /*background: linear-gradient(*/
    /*        140deg,*/
    /*        var(--bs-body-bg) 0%,*/
    /*        color-mix(in srgb, var(--bs-body-bg) 85%, black) 45%,*/
    /*        color-mix(in srgb, var(--bs-body-bg) 75%, black) 100%*/
    /*);*/
}

/* Light / dark page background */

html, body {
    min-height: 100vh;
}

body {
    margin: 0;
    padding-top: 4em;
    padding-bottom: 4em;
}

/* Dark theme: deeper, but still in the same family */
[data-bs-theme="dark"] body {
    background:
        radial-gradient(circle at top left,
            rgba(88, 130, 245, 0.35),
            transparent 60%),
        linear-gradient(
            180deg,
            #050712 0%,
            #0c1322 45%,
            #070b16 100%
        );
}


/* Hero typography */
.hero-title,
.hero-subtitle,
.hero-def {
    color: var(--bs-body-color);
}

/* Frosted centre panel */
.hero-centrebox {
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.06);
    border-color: var(--bs-border-color);
}

/* Stat tiles */
.hero-stat {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 0.9rem 0.5rem;
    color: var(--bs-body-color);
}

/* Theme adjustments */
[data-bs-theme="light"] .hero-centrebox,
[data-bs-theme="light"] .hero-stat {
    background: rgba(0,0,0,0.03);
}

[data-bs-theme="dark"] .hero-stat {
    background: rgba(255,255,255,0.06);
}


/* --- zoomLaw feature mosaic --- */

/* --- zoomLaw feature mosaic --- */

.zoomlaw-mosaic {
    padding-top: 2.75rem;
    padding-bottom: 3.25rem;
    /* background now comes from <body>; this section is transparent */
}

.zoomlaw-mosaic-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* Eyebrow label above heading */
.zoomlaw-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.75;
}

/* Rows container */
.zoomlaw-feature-rows {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

/* Each row will hold two tiles */
.zoomlaw-row {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

/* Desktop: two tiles per row, long vs short widths */
@media (min-width: 992px) {
    .zoomlaw-row {
        flex-direction: row;
    }

    .zoomlaw-tile-long {
        flex: 0 0 60%;
    }

    .zoomlaw-tile-short {
        flex: 0 0 40%;
    }
}

/* Base tile styling */

.zoomlaw-tile {
    position: relative;
    border-radius: 1.4rem;
    padding: 2rem 1.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top left,
            rgba(255, 255, 255, 0.12),
            transparent 60%),
        color-mix(in srgb, var(--bs-body-bg) 90%, #000 10%);
    box-shadow:
        0 14px 32px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.03);
    color: var(--bs-body-color);
    overflow: hidden;
    isolation: isolate;
}

/* Light theme: flatter, softer */
[data-bs-theme="light"] .zoomlaw-tile {
    background:
        radial-gradient(circle at top left,
            rgba(var(--bs-primary-rgb), 0.10),
            transparent 60%),
        rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.05);
    box-shadow:
        0 12px 26px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(15, 23, 42, 0.02);
}

/* Give the content breathing room on small screens too */
@media (max-width: 576px) {
    .zoomlaw-tile {
        padding: 1.6rem 1.4rem;
    }
}

/* Accent bar (uses per-tile CSS variable) */
.zoomlaw-tile {
    --tile-accent: rgba(var(--bs-primary-rgb), 0.9);
}

.zoomlaw-tile::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    inset-block-start: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tile-accent), transparent 65%);
    opacity: 0.95;
    z-index: -1;
}

/* Tile header: icon and tag */
.zoomlaw-tile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Icon bubble inside tile */
.zoomlaw-tile-icon {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%,
                rgba(255, 255, 255, 0.4),
                transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

/* Tag in the corner */
.zoomlaw-tile-tag {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(0, 0, 0, 0.28);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    white-space: nowrap;
}

[data-bs-theme="light"] .zoomlaw-tile-tag {
    background: rgba(248, 250, 252, 0.96);
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.45);
}

/* Titles and text */
.zoomlaw-tile-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

.zoomlaw-tile-text {
    font-size: 0.9rem;
    opacity: 0.92;
    margin-bottom: 1rem;
}

/* Chip list */
.zoomlaw-chip-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.zoomlaw-chip {
    font-size: 0.78rem;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    line-height: 1.3;
    background: rgba(15, 23, 42, 0.7);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.7);
}

[data-bs-theme="light"] .zoomlaw-chip {
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.7);
}

/* Per-tile accent colours */

.tile-definitions {
    --tile-accent: rgba(var(--bs-primary-rgb), 0.95);
}

.tile-cases {
    --tile-accent: rgba(var(--bs-pink-rgb, 214, 51, 132), 0.95);
}

.tile-notes {
    --tile-accent: rgba(var(--bs-warning-rgb, 255, 193, 7), 0.95);
}

.tile-subsidiary {
    --tile-accent: rgba(var(--bs-teal-rgb, 32, 201, 151), 0.95);
}

.tile-status {
    --tile-accent: rgba(var(--bs-success-rgb, 25, 135, 84), 0.95);
}

.tile-search {
    --tile-accent: rgba(var(--bs-indigo-rgb, 102, 16, 242), 0.95);
}

/* Subtle hover lift */
.zoomlaw-tile {
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.zoomlaw-tile:hover {
    transform: translateY(-3px);
    box-shadow:
        0 18px 38px rgba(15, 23, 42, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.zoomlaw-tile:active {
    transform: translateY(0);
    box-shadow:
        0 12px 24px rgba(15, 23, 42, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* Break this block out of the inner .container like the hero */
.feature-bleed {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Make the card up to about 2/3 of the viewport, centred */
.feature-wide {
    max-width: 66vw;       /* ~ two-thirds of viewport width */
    margin-inline: auto;   /* centre within the 100vw band */
}

/* Alternating offsets — nudge the card off-centre for visual rhythm */
.feature-bleed--left .feature-wide {
    margin-left: 6vw;
    margin-right: auto;
}

.feature-bleed--right .feature-wide {
    margin-left: auto;
    margin-right: 6vw;
}

/* Subtle tinted background band behind the second showcase */
.feature-bleed--tinted {
    background: linear-gradient(
        180deg,
        transparent 0%,
        color-mix(in srgb, var(--bs-body-bg) 92%, var(--bs-primary)) 15%,
        color-mix(in srgb, var(--bs-body-bg) 92%, var(--bs-primary)) 85%,
        transparent 100%
    );
    padding-block: 1rem;
}

/* Collapse the vertical gap between the two showcases */
.feature-bleed + .feature-bleed {
    margin-top: -2rem;
}

/* Big video, with its own shadow and full width of its column */
.feature-video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    clip-path: inset(10% 0 10% 2%); /* crop 10% top & bottom */
    border-radius: 0.75rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175);
}

/* On mobile, revert to centred full-width — the offsets are too tight */
@media (max-width: 991.98px) {
    .feature-bleed--left .feature-wide,
    .feature-bleed--right .feature-wide {
        max-width: 95vw;
        margin-inline: auto;
    }
}


/* ============================================================================
   Search Autocomplete Dropdown
   ============================================================================ */

/* Container positioning */
#global-search-wrapper {
    position: relative;
}

/* Dropdown container */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.25rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1055; /* Above Bootstrap modal backdrop */
    display: none;
}

.search-dropdown.show {
    display: block;
}

/* Individual result item */
.search-dropdown-item {
    display: block;
    padding: 0.625rem 0.875rem;
    text-decoration: none;
    color: var(--bs-body-color);
    border-bottom: 1px solid var(--bs-border-color);
    transition: background-color 0.1s ease;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover,
.search-dropdown-item.active {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    text-decoration: none;
}

.search-dropdown-item:focus {
    outline: none;
    background-color: var(--bs-tertiary-bg);
}

/* Item content layout */
.search-item-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.search-item-title {
    flex: 1;
    font-size: 0.875rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-item-title mark {
    background-color: rgba(var(--bs-warning-rgb), 0.35);
    padding: 0 0.125rem;
    border-radius: 0.125rem;
}

.search-item-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.search-item-year {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

/* Small badge variant */
.badge-sm {
    font-size: 0.65rem;
    padding: 0.2em 0.5em;
}

/* Empty state */
.search-dropdown-empty {
    padding: 1rem;
    text-align: center;
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
}

/* Loading state (optional, for future use) */
.search-dropdown-loading {
    padding: 1rem;
    text-align: center;
    color: var(--bs-secondary-color);
}

.search-dropdown-loading::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--bs-border-color);
    border-top-color: var(--bs-primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dark theme adjustments */
[data-bs-theme="dark"] .search-dropdown {
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .search-item-title mark {
    background-color: rgba(var(--bs-warning-rgb), 0.25);
}




