﻿#scopeSelector {
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    margin: -1rem; 0;
}

#scopeSelector p {
    font-size: 16px;
    margin: 0;
    padding: .3rem;
}

#scopeToggleBtn {
    font-size: 16px;
    margin: 0;
    padding: 0;
}


#summary-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}


.syv-area {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.syv-button {
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .5rem;
}

.syv-icon {
    font-size: 28px;
    margin: 1rem;
}

.syv-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: .3rem;

}

.syv-body {
    font-size: 12px;
    text-align: center;
    color: #555;
}

.cvc-card {
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    padding: .3rem;
    padding-bottom: 1rem;
}

.cvc-person-plate {
    margin-top: -.1rem;
    min-width: 0;
    overflow: hidden;
}

.cvc-person-info {
    min-width: 0;
    margin-right: 1rem;

}

.cvc-person {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.cvc-person-icon {
    height: 2rem;
    min-height: 2rem;
    max-height: 2rem;
    width: 2rem;
    min-width: 2rem;
    max-width: 2rem;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    display: flex;
    color: white;
    font-weight: 600;
    font-size: .9rem;
    margin-top: .3rem;
    margin-right: .4rem;
    object-fit: cover;
    overflow: clip;
}

    .cvc-logo-icon {
        padding: 0rem;
        width: 1.5rem;
    }

.cvc-action-container {
    display: flex;
    justify-content: end;
}

.cvc-button {
    max-width: 9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 2rem;
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
}

.cvc-status {
    padding: .3rem .5rem;
    background-color: #e3ae5d;
    color: #fff;
    margin-bottom: 0;
    border-radius: .5rem;
    height: 30px;
    margin-left: .7rem;
    width: fit-content;
    flex-shrink: 0;
}

.cvc-status-followup {
    padding: .3rem .5rem;
    background-color: #0369a1;
    color: #fff;
    margin-bottom: 0;
    border-radius: .5rem;
    height: 30px;
    margin-left: .7rem;
    width: fit-content;
    flex-shrink: 0;
}

.cvc-prayer-count-wrapper {
    height: 30px;
    align-content: center;
    align-items: center;
    display: flex;
}

.cvc-prayer-count {
    margin: 0;
    border-radius: .5rem;
    background-color: #fff5e6;
    color: black;
    padding: .3rem .7rem;
}

.cvc-prayer-count-number {
    font-weight: 500;
    font-family: monospace;
}

/* ── Prayer Response Indicator (candles) ──────────────────────────
   Reusable candle indicator rendered into .cvc-prayer-count-wrapper.
   Newest candle is on the left (top layer) and they stack down to the
   right, fading into the white background after ~4-5. Markup + behavior
   live in the CandleIndicator module in PrayerResponseIndicator.js. */
.cc-candle-indicator {
    display: flex;
    align-items: center;
    min-height: 30px;
    padding-left: 3px;
    overflow: visible;
}

.cc-candle {
    position: relative;
    flex: 0 0 auto;
    /* Slot width is the horizontal advance only; the glyph + glow overflow
       it so neighbouring candles overlap into a stacked look. */
    width: 23px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.55s ease, width 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Very faint gold light radiating from the candle's center. */
.cc-candle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 196, 87, 0.28) 0%, rgba(255, 196, 87, 0.13) 38%, rgba(255, 196, 87, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

/* Holds the inline candle SVG built by CandleIndicator.makeCandle(). Named for the
   emoji it replaced so the slide/fade transitions below stayed in one place. */
.cc-candle-emoji {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    line-height: 1;
    filter: drop-shadow(0 1px 3px rgba(255, 170, 40, 0.35));
    transition: opacity 0.42s ease 0.06s, transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) 0.06s;
}

.cc-candle-emoji svg {
    display: block;
    width: 8px;
    height: 24px;
}

/* Entrance state: collapsed slot + offset glyph. Removing the class lets the
   slot expand (pushing siblings right) while the glyph fades and slides in. */
.cc-candle.cc-entering {
    width: 0;
}

.cc-candle.cc-entering .cc-candle-emoji {
    opacity: 0;
    transform: translateX(-12px) scale(0.55);
}

@media (prefers-reduced-motion: reduce) {
    .cc-candle,
    .cc-candle-emoji {
        transition: none;
    }
}

/* Minimal tap/click tooltip for the candle indicator. Shown on tap of the
   prayer-count wrapper and dismissed on any other interaction (see
   PrayerResponseIndicator.js). */
.cc-pray-tooltip {
    position: absolute;
    z-index: 1080;
    background: #333;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.cvc-text {
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cvc-praise-report {
    border-left: 2px solid #e3ae5d;
    padding-left: .3rem;
}


.cvc-followup {
    border-left: 2px solid #0369a1;
    padding-left: .3rem;
}

.cvc-text-date {
    color: #777;
}

.cvc-date {
    margin-bottom: .7rem;
}

.cvc-location {
    margin-bottom: .7rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
}

.testimony-text {
    font-size: 15px;
}


.cv-status-blue {
    background-color: #0078d4;
}

.cv-status-green {
    background-color: #107c10;
}

.cv-status-red {
    background-color: #a80000;
}

.cv-status-orange {
    background-color: #d83b01;
}

/* Praying hands launch animation */
@keyframes PrayingHandsLaunch1 {
    0%   { transform: translateY(0)    scale(1);   opacity: 1; }
    100% { transform: translateY(-100px) translateX(30px) rotate(30deg) scale(2.6); opacity: 0; }
}
@keyframes PrayingHandsLaunch2 {
    0%   { transform: translateY(0)    scale(1);   opacity: 1; }
    100% { transform: translateY(-100px) translateX(10px) rotate(10deg) scale(2.2); opacity: 0; }
}
@keyframes PrayingHandsLaunch3 {
    0%   { transform: translateY(0)    scale(1);   opacity: 1; }
    100% { transform: translateY(-100px) translateX(-20px) rotate(-20deg) scale(2.7); opacity: 0; }
}

.praying-hands-launch {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 22px;
    color: inherit;
}

.launch-sequence-1 {
    animation: PrayingHandsLaunch1 1s cubic-bezier(.2, .8, .6, .7) forwards;
}
.launch-sequence-2 {
    animation: PrayingHandsLaunch2 1s cubic-bezier(.2, .8, .6, .7) forwards;
}
.launch-sequence-3 {
    animation: PrayingHandsLaunch3 1s cubic-bezier(.2, .8, .6, .7) forwards;
}

/* Fade-in for the "I Prayed" confirmed state */
@keyframes IPrayedFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.i-prayed-confirmed {
    animation: IPrayedFadeIn 0.5s ease-in forwards;
}

.cv-status-grey {
    background-color: #aaaaaa;
}


@media (max-width: 576px) {
    .sticky-header-wrapper {
        position: sticky;
        top: 3.5rem;
        background-color: white;
        margin: -1.05rem -1.05rem 0 -1.05rem;
        padding: 1rem 1rem 0 1rem;
        z-index: 200;
        overflow: clip;
    }

        .sticky-header-wrapper .card-header {
            border-radius: .5rem .5rem 0 0;
            border: .8px solid rgba(0,0,0,.125);
            -webkit-box-shadow: 0px 10px 13px 0px rgba(74, 53, 107, 0.08);
            box-shadow: 0px 0px 13px 0px rgba(74, 53, 107, 0.08);
        }

    .sticky-header-card {
        border-top: none;
        -webkit-box-shadow: none;
        box-shadow: none;
        -webkit-box-shadow: 0px 10px 13px 0px rgba(74, 53, 107, 0.08);
        box-shadow: 0px 0px 13px 0px rgba(74, 53, 107, 0.08);
    }
}

.syv-button {
    cursor: pointer;
}

.white-text-background-1 { background-color: #b91c1c; } /* Red */
.white-text-background-2 { background-color: #c2410c; } /* Orange */
.white-text-background-3 { background-color: #b45309; } /* Amber */
.white-text-background-4 { background-color: #4d7c0f; } /* Lime */
.white-text-background-5 { background-color: #15803d; } /* Green */
.white-text-background-6 { background-color: #0f766e; } /* Teal */
.white-text-background-7 { background-color: #0369a1; } /* Light Blue */
.white-text-background-8 { background-color: #1d4ed8; } /* Blue */
.white-text-background-9 { background-color: #4338ca; } /* Indigo */
.white-text-background-10 { background-color: #7e22ce; } /* Purple */
.white-text-background-11 { background-color: #a21caf; } /* Fuchsia */
.white-text-background-12 { background-color: #be185d; } /* Pink */

.cvc-icon-bg-gold { background-color: #d97706; }
.cvc-icon-bg-purple { background-color: #7e22ce; }
.cvc-icon-bg-green { background-color: #15803d; }
.cvc-icon-bg-blue { background-color: #0369a1; }
.cvc-icon-bg-red { background-color: #b91c1c; }
.cvc-icon-bg-gray { background-color: #aaaaaa; }

.cvc-text-gold { color: #d97706; }
.cvc-text-purple { color: #7e22ce; }
.cvc-text-blue { color: #0369a1; }


.btn-check + .btn-outline-primary {
    border-color: #dadce0;
    color: var(--color);
}

    .btn-check + .btn-outline-primary:hover {
        background-color: rgba(13, 110, 253, 0.1);
        color: var(--color);
    }


.btn-check:active + .btn-outline-primary, .btn-check:checked + .btn-outline-primary, .btn-outline-primary.active, .btn-outline-primary.dropdown-toggle.show, .btn-outline-primary:active {
    background-color: rgba(13, 110, 253, 0.7);
    color: white;
    font-weight: 500;
}

@media (min-width: 576px) {
    .btn.col-12 {
        display: flex;
        justify-content: center !important;
    }

    .btn.col-12:first-of-type {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-right: none;
    }

    .btn.col-12:not(:first-of-type):not(:last-of-type) {
        border-radius: 0;
        border-right: none;
    }

    .btn.col-12:last-of-type {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}

.pr-link {
    cursor: pointer;

}

.my-prayer-card .my-prayer-header {
    flex: 1 1 auto;
    min-width: 0;
    margin-right: .5rem;
    overflow: hidden;
}

.my-prayer-card .my-prayer-header .cvc-date {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 .25rem 0;
}

.my-prayer-card .my-prayer-header .cvc-location {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.my-prayer-card .my-prayer-text-wrapper {
    height: auto;
    margin-top: .5rem;
}

.my-prayer-card .my-prayer-text-wrapper .cvc-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.btn-pill {
    display: inline-flex;
    border: 1px solid #ddd;
    border-radius: 1rem !important;
    height: 2rem;
    cursor: pointer;
    margin: 0 0rem;
    align-items: center;
    justify-content: center;
}

.btn-group:has(.btn-pill) {
    gap: 1rem;
}

.btn-pill input {
    display: none;
}

.btn-pill.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}


.add-info-select-btn {
    width: 50%;
    display: flex;
    flex-direction: column;
    padding: 2rem 1rem;
}

/* Prayer Request View page */
.pv-card {
    border-bottom: none;
    padding: 2rem 1rem;
    margin-bottom: 0;
}

.pv-card .cvc-person-icon {
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.pv-jump-row {
    display: flex;
    justify-content: flex-end;
    margin-top: .25rem;
    margin-bottom: .25rem;
}

.pv-jump-btn {
    font-size: 13px;
    padding: .25rem .6rem;
    text-decoration: none;
    box-shadow: none;
}

.pv-jump-btn:focus,
.pv-jump-btn:hover {
    text-decoration: none;
    box-shadow: none;
}

.pv-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: .5rem;
    margin-bottom: 1rem;
}

.pv-entry {
    position: relative;
    padding: 0;
    border: none;
    background-color: transparent;
    border-radius: 0;
}

.pv-entry-header {
    margin-bottom: .15rem;
}

.pv-entry-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.pv-entry-date {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.pv-label-initial {
    color: #888;
}

.pv-label-followup {
    color: #0369a1;
}

.pv-label-praise {
    color: #b07012;
}

.pv-text {
    margin: 0;
    white-space: pre-line;
    word-wrap: break-word;
    font-size: 15px;
    /* override the cvc-text line clamp inherited from list view */
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
}

@media (min-width: 577px) {
    .pv-text {
        display: block;
        -webkit-line-clamp: unset;
        -webkit-box-orient: unset;
        overflow: visible;
    }
}

.pv-meta {
    font-size: 13px;
    color: #666;
}

@keyframes pv-entry-flash-anim {
    0%   { background-color: #fff3cd; }
    100% { background-color: transparent; }
}

.pv-entry-flash {
    animation: pv-entry-flash-anim 1.5s ease-out;
    border-radius: .3rem;
}

