/* css variables  */
:root {
    --primary-font: sans-serif;
    --secondary-font: serif;
    --text-color-dark: black;
    --text-color-light: white;
    --main-light: #FAEAE0;
    --main-dark: #02020B;
    --secondary-light: #FAD2BD;
    --secondary-dark: #2E382E;
    --accent-color: #F26419;
    --contrast-color: #90708C;
    --pop-color: #87A330;
}


body {
    background-color: var(--main-light);
    font-family: sans-serif;
    color: var(--text-color-dark);
}

h1 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.nav-right {
    float: right;
}
nav {
    background-color: var(--secondary-dark);
    color: #87A330;
    padding: 1rem;
    font-family: "Creepster", system-ui;
    font-weight: 400;
    font-style: normal;
}

.logout-bg {
    background-image: url("../images/signout-bg.jpg");
    background-position: center;
    background-size: cover;
    padding: 15%;
    border-radius: 20px;
    margin: 5%;
    font-family: "Creepster", system-ui;
}

.btn {
    background-color: #02020B;

}

footer {
    bottom: 0;
    left: 0;
    width: 100%;
    background: #02020B;
    color: #87A330;
    text-align: center;
    padding: 1rem;
    font-family: "Creepster", system-ui;
    font-weight: 400;
    font-style: normal;
    /* background-color: var(--secondary-light);
    color: var(--text-color-dark);
    padding: auto; */
}

footer a {
    color: #87A330;
}

footer p {
    font-size: 0.9rem;
}

.all-recipes-page {
    background-color: #ffffff;
}

.category-circle-row {
    gap: 1.5rem 0;
}

.category-circle {
    width: 110px;
    height: 110px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    background-color: #ffffff;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-tile {
    max-width: 140px;
    color: inherit;
}

.category-label {
    letter-spacing: 0.05em;
    color: #4a4a4a;
}

.category-tile:focus-visible {
    outline: none;
}

.category-circle:hover,
.category-tile:focus-visible .category-circle,
.category-tile:hover .category-circle {
    transform: translateY(-4px);
    border-color: #7b2ff7;
    box-shadow: 0 8px 16px rgba(123, 47, 247, 0.2);
}

.recipe-filter-form .form-select,
.recipe-filter-form .form-control {
    border-radius: 12px;
    border-color: #d0d0d0;
}

.recipe-filter-form .btn {
    border-radius: 12px;
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 12px;
    font-size: 1.25rem;
}

.recipe-card {
    border-radius: 18px;
    overflow: hidden;
}

.recipe-card__image {
    background: #f3f3f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.recipe-card__image-placeholder {
    color: #a0a0a0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fright-meter {
    position: relative;
    padding-top: 1.5rem;
}

.fright-meter__bar {
    position: relative;
    display: flex;
    width: 100%;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, #632f53 0%, #f77f00 50%, #1b998b 100%);
    overflow: hidden;
    border: 2px solid #1b1b1b;
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.4);
    align-items: stretch;
}

.fright-meter__segment {
    position: relative;
    height: 100%;
    mix-blend-mode: multiply;
    transition: width 0.3s ease;
}

.fright-meter__segment--trick {
    background: linear-gradient(90deg, rgba(179, 32, 77, 0.95), rgba(247, 127, 0, 0.85));
}

.fright-meter__segment--treat {
    background: linear-gradient(90deg, rgba(74, 240, 103, 0.95), rgba(21, 153, 126, 0.9));
}

.fright-meter__bar::before,
.fright-meter__bar::after {
    content: "";
    position: absolute;
    top: -14px;
    width: 34px;
    height: 34px;
    background-size: cover;
    z-index: 3;
}

.fright-meter__bar::before {
    left: -12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath fill='%23b3204d' d='M32 2 C26 12 10 12 10 30 C10 42 22 52 32 62 C42 52 54 42 54 30 C54 12 38 12 32 2 Z'/%3E%3C/svg%3E");
}

.fright-meter__bar::after {
    right: -12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath fill='%231b998b' d='M32 4 L22 26 L4 28 L18 44 L14 62 L32 52 L50 62 L46 44 L60 28 L42 26 Z'/%3E%3C/svg%3E");
}

.fright-meter__indicator {
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
    width: 16px;
    height: calc(100% + 26px);
    border-radius: 12px;
    border: 2px solid #2f1444;
    background: linear-gradient(180deg, rgba(255, 200, 67, 0.9) 0%, rgba(78, 18, 105, 0.88) 100%);
    box-shadow: 0 0 18px rgba(255, 195, 0, 0.45);
    z-index: 3;
    transition: left 0.3s ease;
    pointer-events: none;
}

.fright-meter__indicator::before,
.fright-meter__indicator::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
}

.fright-meter__indicator::before {
    bottom: -18px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 18px solid #2f1444;
}

.fright-meter__indicator::after {
    bottom: -15px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 15px solid #f9a603;
}

.fright-meter__pointer {
    position: absolute;
    top: -68px;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    background: radial-gradient(circle at 35% 30%, #ffe066 0%, #f77f00 45%, #6a040f 100%);
    border: 3px solid #1b1b1b;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fffaf1;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.1em;
    font-family: "Creepster", cursive;
    z-index: 5;
    transition: left 0.3s ease;
    pointer-events: none;
}

.fright-meter__pointer::before,
.fright-meter__pointer::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
}

.fright-meter__pointer::before {
    bottom: -25px;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 25px solid #1b1b1b;
}

.fright-meter__pointer::after {
    bottom: -22px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 22px solid #f77f00;
}

.fright-meter__pointer-icon {
    font-size: 1.55rem;
    line-height: 1;
    color: #fff7d6;
}

.fright-meter__pointer-value {
    font-size: 0.72rem;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 700;
}

.fright-meter__pointer-icon,
.fright-meter__pointer-value {
    pointer-events: none;
}

.fright-meter__labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    font-family: "Creepster", cursive;
    letter-spacing: 0.12em;
}

.fright-meter__labels span:first-child {
    color: #b3204d;
}

.fright-meter__labels span:last-child {
    color: #1b998b;
}

.btn-purple {
    background-color: #7b2ff7;
    border-color: #7b2ff7;
    color: #ffffff;
}

.btn-purple:hover,
.btn-purple:focus {
    background-color: #6820d9;
    border-color: #6820d9;
    color: #ffffff;
}

.expandable-placeholder {
    border: 2px dashed #bdbdbd;
    border-radius: 20px;
    padding: 3rem 1rem;
}

.all-recipes-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff922b, #ff6b6b);
    color: #fffaf0;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    box-shadow: 0 14px 28px -14px rgba(255, 107, 107, 0.65);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.all-recipes-cta:hover,
.all-recipes-cta:focus {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px -16px rgba(255, 107, 107, 0.75);
    color: #fffaf0;
}

.all-recipes-cta__icon {
    font-size: 1.25rem;
}

.all-recipes-cta__label {
    text-transform: uppercase;
}

.sacred-section {
    background: linear-gradient(135deg, #f9f7f1 0%, #f0e8ff 40%, #ffffff 100%);
}

.sacred-section h2,
.sacred-section p {
    color: #5d4b8a;
}

.sacred-section .card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(160, 140, 200, 0.25);
    box-shadow: 0 12px 24px -12px rgba(116, 98, 165, 0.35);
    border-radius: 18px;
}

.sacred-section .btn-warning {
    background: #ffe066;
    border-color: #ffe066;
    color: #3a2d58;
}

.sacred-section .btn-warning:hover,
.sacred-section .btn-warning:focus {
    background: #ffd43b;
    border-color: #ffd43b;
    color: #251c3a;
}

.cursed-section {
    background: radial-gradient(circle at top, #2c1228 0%, #120611 60%, #070208 100%);
    color: #f5ebff;
}

.cursed-section h2,
.cursed-section p {
    color: #f7def9;
}

.cursed-section .card {
    background: rgba(20, 8, 24, 0.85);
    border: 1px solid rgba(120, 58, 138, 0.4);
    box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.65);
    border-radius: 18px;
    color: #e8d2f1;
}

.cursed-section .card .btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #c9184a);
    border-color: #c9184a;
}

.cursed-section .card .btn-primary:hover,
.cursed-section .card .btn-primary:focus {
    background: linear-gradient(135deg, #c9184a, #780000);
    border-color: #780000;
}

.cursed-section .card p {
    color: rgba(248, 244, 252, 0.8);
}

.logout-bg {
    background-image: url("static/recipe_search/images/signout-bg.jpg");
    background-position: center;
    background-size: cover;
    padding: 15%;
    border-radius: 20px;
    margin: 5%;
    font-family: "Creepster", system-ui;
}