/**
 * app
 */

@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-display: swap;
    font-weight: 500;
    font-stretch: normal;
    src: url(/static/fonts/ibm-plex-sans_5.2.0_latin-500-normal.woff2) format('woff2'),
    url(/static/fonts/ibm-plex-sans_5.2.6_latin-500-normal.woff) format('woff');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    font-stretch: normal;
    src: url(/static/fonts/ibm-plex-sans_5.2.0_latin-700-normal.woff2) format('woff2'),
    url(/static/fonts/ibm-plex-sans_5.2.6_latin-700-normal.woff) format('woff');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
}

.form-control::placeholder {
    color: var(--bs-gray-500) !important;
    opacity: 1;
}

.btn {
    --bs-btn-padding-x: 0.75rem !important;
    --bs-btn-padding-y: 0.15rem !important;
}

/* htmx indicators */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    display: inline-flex;
}

/*htmx hide during request*/
.htmx-request .htmx-indicator-hide {
    display: none;
}

/*href*/

a.pc-link {
    outline-color: transparent;
    color: #489bf5 !important;
    text-decoration: none !important;
}

a.pc-link:hover {
    text-decoration: underline !important;
}

/**
 * bootstrap extras
 */

.vh-sm-100 {
    height: auto;
}

@media (min-width: 576px) {
    .vh-sm-100 {
        height: 100vh !important;
    }
}

/*
 * text button
 */

.pc-text-button {
    transition: all 50ms ease-in-out;
    background-color: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
    text-align: left
}

.pc-text-button:hover {
    background-color: rgba(0, 0, 0, 0.035);
}

.pc-text-button.active:hover {
    background-color: rgba(0, 0, 0, 0.75) !important;
}

.pc-text-button:active {
    background-color: rgba(0, 0, 0, 0.1) !important;
}

.pc-text-button.active {
    background-color: #000000;
    color: white;
}

.pc-text-button.active:active {
    background-color: rgba(0, 0, 0, 0.6) !important;;
    color: white;
}

/**
 * Sidebar
 */

@media (min-width: 576px) {
    .pc-nav-button {
        padding-right: 5em !important;
    }
}

.pc-nav-button.active svg {
    fill: white !important;
}

/**
 * Search screen
 */

#pc-search-tag-checkbox {
    transition: all 50ms ease-in-out;
    border: none;
    margin: 0.25rem 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--bs-border-radius);
    cursor: pointer;
}

#pc-search-tag-checkbox .form-check {
    width: 100%;
    margin: 0;
    cursor: pointer;
}

#pc-search-tag-checkbox .form-check-input, #pc-search-tag-checkbox .form-check-label {
    cursor: pointer;
}

#pc-search-tag-checkbox:hover {
    background-color: rgba(0, 0, 0, 0.035);
}

.dropdown-items-container li.hidden {
    display: none;
}

.card {
    transition: transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.recipe-image-container {
    overflow: hidden;
}

/**
 * Recipe screen
 */

.pc-ingredient-row .pc-ingredient-row-checkbox {
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

/* Show checkbox and reduce opacity on row hover */
.pc-ingredient-row:hover {
    cursor: pointer;
    --bs-table-bg: rgba(0, 0, 0, 0.035) !important;
}

.pc-ingredient-row:hover .pc-ingredient-row-checkbox {
    opacity: 1;
}

.pc-ingredient-row-checkbox:checked {
    opacity: 1;
}

.pc-ingredient-row:has(.pc-ingredient-row-checkbox:checked) {
    opacity: 0.5;
}

/*
 * chef profile screen
 */

.pc-recipe-card {
    transition: box-shadow 100ms ease, background-color 100ms ease;
    background-color: var(--bs-light);
    box-shadow: 0 0 0 0 var(--bs-light); /* used to create a color transition on hover */
}

.pc-recipe-card:hover {
    box-shadow: 0 0 0 10px var(--bs-info-bg-subtle);
    background-color: var(--bs-info-bg-subtle) !important;
    z-index: 1; /* ensure it appears above neighbors when expanded */
}

/*
 * recipe form
 */

.handle {
    cursor: grab; /* Apply a grabbing hand cursor */
}

.handle:active {
    cursor: grabbing; /* Apply a "grabbing" cursor when active */
}

#RecipeForm-tag-checkbox {
    transition: all 50ms ease-in-out;
    border: none;
    margin: 0.25rem 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--bs-border-radius);
    cursor: pointer;
}

#RecipeForm-tag-checkbox .form-check {
    width: 100%;
    margin: 0;
    cursor: pointer;
}

#RecipeForm-tag-checkbox .form-check-input, #RecipeForm-tag-checkbox .form-check-label {
    cursor: pointer;
}

#RecipeForm-tag-checkbox:hover {
    background-color: rgba(0, 0, 0, 0.035);
}

.dropdown-items-container li.hidden {
    display: none;
}

/*
 * Ads: Hide unfilled AdSense units as per docs
 */
ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

.pc-carousel-indicators-item {
    opacity: 0.6;
}

.pc-carousel-indicators-item.active {
    opacity: 1;
}

ins.own_ins.blep * {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}
