/**
 * teaching_painting.css
 * 📜 The wisdom card's teaching — the quote card shown once the journey is done — on the painted canvas: this card's own part,
 * its spacing, its words and the "Click for full details" hint over the painting. The look every painted card shares (canvas,
 * mat, plaque, switch) is painted_card.css, which loads before this sheet; static/js/teaching_painting.js attaches each
 * teaching's card. The card's base look is in styles_dark_premium.css (.main-quote-area) and its words are restyled by the
 * landing skin (active_theory_landing.css) with !important: the painted look wins by specificity.
 */

/* ---------- the painted card's spacing ---------- */
.main-quote-area.is-painted {
    padding: 2.8rem 2.6rem 1.15rem;
}

/* a clickable card (it opens the quote detail screen): it lights up under the pointer */
.main-quote-area.is-painted:hover {
    border-color: rgba(255, 215, 0, 0.6) !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55), 0 0 56px rgba(255, 215, 0, 0.14) !important;
}

/* ---------- the words ---------- */
/* the teaching's quote is set larger than the Quote of the Day's, over a card that is only as tall as the quote: a little more of
   the darkening is gathered behind the words than the shared veil gives, so even the brightest paintings keep 4.5:1 */
.main-quote-area.is-painted .awq-veil {
    background: radial-gradient(ellipse 92% 82% at 50% 38%, rgba(3, 6, 4, 0.46) 0%, rgba(3, 6, 4, 0.32) 58%, rgba(3, 6, 4, 0.12) 100%);
}

.main-quote-area.is-painted .primary-quote-text {
    font-family: var(--wc-serif) !important;
    font-size: 1.85rem !important;
    font-weight: 400 !important;
    font-style: italic;
    line-height: 1.5 !important;
    letter-spacing: 0.01em;
    text-wrap: balance;
    margin-bottom: 0 !important;
    color: var(--wc-cream) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 18px rgba(0, 0, 0, 0.8) !important;
}

.main-quote-area.is-painted .quote-author-line {
    width: fit-content;
    max-width: 100%;
    margin: 1.5rem auto 0;
    padding: 0.55rem 1.4rem;
    border: 1px solid var(--wc-hairline-faint);
    border-radius: 22px;
    background: rgba(6, 8, 5, 0.58);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: border-color 0.25s ease;
}

.main-quote-area.is-painted:hover .quote-author-line {
    border-color: var(--wc-hairline);
}

.main-quote-area.is-painted .quote-author-line p,
.main-quote-area.is-painted .quote-author-line strong {
    margin: 0;
    font-size: 1.05rem !important;
    color: var(--wc-gold-warm) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 1px 10px rgba(0, 0, 0, 0.8) !important;
}

.main-quote-area.is-painted .view-details-hint {
    margin-top: 0.9rem !important;
    color: var(--wc-gold-warm) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 1px 10px rgba(0, 0, 0, 0.8);
}

/* ---------- a phone: the painting drifts behind every glass piece and blurring it again and again is heavy,
   so the glass gets a little more body instead (as in the Hall of Wisdom) ---------- */
@media (max-width: 639px), (pointer: coarse) {
    .main-quote-area.is-painted .quote-author-line {
        background: rgba(6, 8, 5, 0.74);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

/* ---------- smaller screens ---------- */
@media (max-width: 768px) {
    .main-quote-area.is-painted {
        padding: 2rem 1.3rem 1rem;
    }

    .main-quote-area.is-painted .primary-quote-text {
        font-size: 1.45rem !important;
        line-height: 1.5 !important;
    }

    .main-quote-area.is-painted .quote-author-line p,
    .main-quote-area.is-painted .quote-author-line strong {
        font-size: 0.95rem !important;
    }
}

/* ---------- on paper the painting stays home ---------- */
@media print {
    .main-quote-area.is-painted .primary-quote-text,
    .main-quote-area.is-painted .quote-author-line p,
    .main-quote-area.is-painted .quote-author-line strong {
        color: #000 !important;
        text-shadow: none !important;
    }
}
