/* Application styles. Linked with a file-modification version so browsers fetch a new copy after this file changes. */

:root {
    /* Same Kowcha palette as coaching_people/public/css/website.css */
    --primary-1: rgb(10, 47, 53);
    --primary-1-rgb: 10, 47, 53;
    --primary-2: rgb(4, 36, 41);
    --primary-3: #f5f9fc;
    --primary-4: #ffe9cc;
    --primary-5: #f6eee2;
    --secondary-1: #f7a325;
    --secondary-1-rgb: 247, 163, 37;
    --secondary-1-dark: #e49217;
    --secondary-2: #f56038;
    --secondary-3: #ffca7a;
    --secondary-4: #12492f;
    --secondary-5: #fffaf4;
    --grey-1: #181818;
    --grey-2: #282828;
    --grey-3: #f5f4f4;

    --x-font-sans-serif:
        "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, sans-serif;
    --x-font-display: var(--x-font-sans-serif);
    --x-font-serif: var(--x-font-sans-serif);
    --x-body-font-family: var(--x-font-sans-serif);
}

:root:not([data-bs-theme="dark"]) {
    --x-primary: var(--primary-1);
    --x-primary-rgb: var(--primary-1-rgb);
    --x-primary-bg-subtle: #d7e4e6;
    --x-body-color: var(--primary-1);
    --x-body-color-rgb: var(--primary-1-rgb);
    --x-body-bg: var(--primary-3);
    --x-body-bg-rgb: 245, 249, 252;
    --x-heading-color: var(--primary-1);
    --x-emphasis-color: var(--primary-2);
    --x-link-color: var(--primary-1);
    --x-link-hover-color: var(--primary-2);
    --x-link-color-rgb: var(--primary-1-rgb);
    --x-link-hover-color-rgb: 4, 36, 41;
    --x-nav-pills-link-active-bg: var(--primary-1);
    --x-nav-pills-link-active-color: #fff;
}

html:not([data-bs-theme="dark"]),
html:not([data-bs-theme="dark"]) body {
    color: var(--primary-1);
    background-color: var(--primary-3);
    font-size: 15px;
}

html:not([data-bs-theme="dark"]) a:not(.btn) {
    color: var(--primary-1);
    text-decoration: none;
}

html:not([data-bs-theme="dark"]) a:not(.btn):hover {
    color: var(--primary-2);
}

.btn-primary {
    --x-btn-color: #fff;
    --x-btn-bg: var(--secondary-1);
    --x-btn-border-color: var(--secondary-1);
    --x-btn-hover-color: #fff;
    --x-btn-hover-bg: var(--secondary-1-dark);
    --x-btn-hover-border-color: var(--secondary-1-dark);
    --x-btn-focus-shadow-rgb: var(--secondary-1-rgb);
    --x-btn-active-color: #fff;
    --x-btn-active-bg: var(--secondary-1-dark);
    --x-btn-active-border-color: var(--secondary-1-dark);
    --x-btn-active-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    --x-btn-disabled-color: #fff;
    --x-btn-disabled-bg: var(--secondary-1);
    --x-btn-disabled-border-color: var(--secondary-1);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #fff;
    background-color: var(--secondary-1-dark);
    border-color: var(--secondary-1-dark);
}

.btn-outline-primary {
    --x-btn-color: var(--primary-1);
    --x-btn-border-color: var(--primary-1);
    --x-btn-hover-color: #fff;
    --x-btn-hover-bg: var(--primary-1);
    --x-btn-hover-border-color: var(--primary-1);
    --x-btn-focus-shadow-rgb: var(--primary-1-rgb);
    --x-btn-active-color: #fff;
    --x-btn-active-bg: var(--primary-1);
    --x-btn-active-border-color: var(--primary-1);
    --x-btn-disabled-color: var(--primary-1);
    --x-btn-disabled-bg: transparent;
    --x-btn-disabled-border-color: var(--primary-1);
}

.btn-link {
    --x-btn-font-weight: 400;
    --x-btn-color: var(--primary-1);
    --x-btn-bg: transparent;
    --x-btn-border-color: transparent;
    --x-btn-hover-color: var(--primary-2);
    --x-btn-hover-bg: transparent;
    --x-btn-hover-border-color: transparent;
    --x-btn-active-color: var(--primary-2);
    --x-btn-active-border-color: transparent;
    --x-btn-box-shadow: none;
    text-decoration: none;
}

.kowcha-nav {
    background-color: #fff;
    border-bottom: 3px solid var(--grey-3);
}

.catalogue-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.catalogue-brand {
    flex: 0 0 auto;
}

.catalogue-search-slot {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.catalogue-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.catalogue-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--primary-1);
}

a.catalogue-icon-btn {
    position: relative;
    text-decoration: none;
}

.catalogue-icon-btn svg {
    width: 1.35rem;
    height: 1.35rem;
}

.catalogue-cart-count {
    position: absolute;
    top: 0.1rem;
    right: 0;
    min-width: 1.05rem;
    height: 1.05rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--primary-1);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.05rem;
    text-align: center;
}

.catalogue-icon-btn:hover,
.catalogue-icon-btn:focus,
.catalogue-icon-btn[aria-expanded="true"] {
    background: var(--secondary-5);
    color: var(--primary-1);
}

html:not([data-bs-theme="dark"]) a.catalogue-icon-btn.is-current {
    color: var(--secondary-1);
}

.catalogue-user-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--primary-1);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
}

.catalogue-account-menu {
    min-width: 16rem;
}

.catalogue-account-details {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.catalogue-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.15rem 0.35rem;
    padding: 0.15rem 1rem 0.35rem;
    border-top: 1px solid var(--grey-3);
}

.catalogue-categories .nav-link {
    color: var(--primary-1);
    border-bottom: 3px solid transparent;
    padding: 0.45rem 0.7rem;
}

.catalogue-categories .nav-link:hover,
.catalogue-categories .nav-link:focus,
.catalogue-categories .nav-link.active {
    color: var(--primary-1);
    background: transparent;
    border-bottom-color: var(--primary-1);
}

@media (max-width: 767.98px) {
    .catalogue-toolbar {
        flex-wrap: wrap;
    }

    .catalogue-search-slot {
        flex: 1 0 100%;
        order: 3;
    }
}

html:not([data-bs-theme="dark"]) .card {
    background-color: #fff;
    border: 0;
    box-shadow: 0 0 20px rgb(0 0 0 / 4%);
}

body.auth .card a:not(.btn) {
    border-bottom: 1px solid var(--primary-1);
}

body.auth .card a:not(.btn):hover {
    border-bottom-color: var(--secondary-1-dark);
}

input[type="checkbox"] {
    accent-color: var(--primary-1);
}

.page-link {
    color: var(--primary-1);
}

html:not([data-bs-theme="dark"]) .page-item.active .page-link {
    background-color: var(--primary-1);
    border-color: var(--primary-1);
    color: #fff;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    color: #fff;
    background-color: var(--primary-1);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--primary-1);
    border-color: var(--primary-1);
}

.primary-intro-wrapper.pt-16 {
    padding-top: 0 !important;
}

.hub-hero-wrapper {
    position: relative;
    background-color: #0a2f35;
    background-image:
        linear-gradient(180deg, rgb(10 47 53 / 28%), rgb(10 47 53 / 42%)),
        url("../img/website/home-hero-3.jpg");
    background-position: center center;
    background-size: cover;
    color: #fff;
}

.hub-hero-copy {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
}

.hub-hero-copy .lead,
.hub-hero-copy h1,
.hub-hero-copy p {
    /* color: #fff; */
    color: var(--primary-3);
}

.catalogue-search {
    width: min(36rem, 100%);
}

.catalogue-search-field {
    position: relative;
    width: 100%;
}

#catalogue-search {
    text-align: center;
    padding-inline: 2.6rem;
}

.catalogue-search-icon {
    position: absolute;
    z-index: 5;
    left: 0.9rem;
    top: 50%;
    width: 1.15rem;
    height: 1.15rem;
    transform: translateY(-50%);
    color: var(--primary-1);
    pointer-events: none;
}

.catalogue-cover {
    position: relative;
    aspect-ratio: 3 / 4;
    background-color: #e7ebf3;
    overflow: hidden;
}

.catalogue-cover img {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalogue-cover-fallback {
    display: flex;
    align-items: flex-end;
    height: 100%;
    padding: 1.25rem;
    background: linear-gradient(160deg, #12492f 0%, #0a2f35 68%, #f56038 100%);
    color: #fff;
}

.catalogue-cover-fallback span {
    font-size: 2.75rem;
    line-height: 1;
}

.favourite-toggle {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--primary-1);
    box-shadow: 0 1px 6px rgb(10 47 53 / 16%);
}

.favourite-toggle svg {
    width: 1.15rem;
    height: 1.15rem;
}

.favourite-toggle svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linejoin: round;
}

.favourite-toggle.is-favourite {
    color: var(--secondary-1);
}

.favourite-toggle.is-favourite svg path {
    fill: currentColor;
}

.favourite-toggle:hover,
.favourite-toggle:focus-visible {
    background: var(--secondary-5);
}

.catalogue-card {
    overflow: hidden;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.catalogue-card:hover {
    transform: translateY(-3px);
}

.catalogue-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.book-show-media {
    position: relative;
    max-width: 22rem;
}

.book-show-cover {
    max-width: 22rem;
}

.book-reviews .progress {
    height: 0.45rem;
}

.book-review-meter {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) 2rem;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
}

.brand-logo {
    height: 2.75rem;
    width: auto;
}

.brand-logo-lg {
    height: 3rem;
}

.brand-mark {
    width: 2rem;
    height: 2rem;
}

[data-bs-theme="dark"] .brand-logo,
[data-bs-theme="dark"] .brand-mark {
    filter: brightness(0) invert(1);
}

.card-empty-state {
    background: transparent !important;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 8vh;
    padding-bottom: 8vh;
}

.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.25rem;
    height: 4.25rem;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    background: var(--secondary-5);
    color: var(--primary-1);
}

.empty-state-icon svg {
    width: 1.85rem;
    height: 1.85rem;
}

.site-footer {
    background: var(--primary-2);
    color: #fff;
    padding-top: 4.5rem;
}

.site-footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    column-gap: 1.5rem;
    row-gap: 0.75rem;
    margin-top: 2.25rem;
    font-size: 0.875rem;
    font-weight: 400;
}

html:not([data-bs-theme="dark"]) .site-footer a,
.site-footer a {
    color: rgb(255 255 255 / 70%);
    text-decoration: none;
}

html:not([data-bs-theme="dark"]) .site-footer a:hover,
.site-footer a:hover {
    color: #fff;
}

.site-footer-mark {
    height: 4.5rem;
    width: auto;
    filter: brightness(0) invert(1);
}

.site-footer-tagline {
    margin: 1.5rem auto 0;
    max-width: 18rem;
    color: #fffaf4;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
}

.site-footer-rule {
    margin: 3rem 0 1.75rem;
    border: 0;
    border-top: 1px solid rgb(255 255 255 / 10%);
    opacity: 1;
}

.site-footer-meta {
    padding-bottom: 1.75rem;
    color: rgb(255 255 255 / 40%);
    font-size: 0.75rem;
    font-weight: 400;
}

.floating-alerts {
    position: fixed;
    top: 5.5rem;
    left: 50%;
    z-index: 1090;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: min(32rem, calc(100% - 2rem));
    transform: translateX(-50%);
    pointer-events: none;
}

.floating-alerts .alert {
    margin-bottom: 0;
    pointer-events: auto;
}
