/* Framework Explainer — Inline explanation cards for psychological frameworks */

.framework-card {
    border-left: 4px solid var(--fw-color, #9B59B6);
    background: var(--fw-tint, rgba(155, 89, 182, 0.04));
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
    margin-bottom: 10px;
    transition: box-shadow 0.2s;
}

.framework-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.framework-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.framework-card-icon {
    font-size: 0.85rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.framework-card-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    letter-spacing: 0.3px;
}

.framework-card-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-left: auto;
    white-space: nowrap;
}

.framework-card-definition {
    font-size: 0.82rem;
    color: #444;
    line-height: 1.5;
    margin-bottom: 4px;
}

.framework-card-analogy {
    font-size: 0.78rem;
    color: #777;
    font-style: italic;
    line-height: 1.45;
    margin-bottom: 4px;
    padding-left: 10px;
    border-left: 2px solid rgba(0, 0, 0, 0.08);
}

.framework-card-context {
    font-size: 0.76rem;
    color: #004aad;
    font-weight: 500;
    margin-top: 4px;
    padding: 4px 8px;
    background: rgba(0, 74, 173, 0.05);
    border-radius: 6px;
}

/* Group headers within psyche_profile() */
.framework-group-header {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888;
    padding: 8px 0 4px 0;
    margin-top: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Responsive: stack tighter on small screens */
@media (max-width: 768px) {
    .framework-card {
        padding: 10px 12px;
        margin-bottom: 8px;
    }
    .framework-card-definition {
        font-size: 0.78rem;
    }
    .framework-card-analogy {
        font-size: 0.74rem;
    }
}


/* ============================================================
   Value Carousel — Card navigator for framework values
   ============================================================ */

.value-carousel-card {
    animation: carouselFadeIn 0.25s ease-in-out;
}

@keyframes carouselFadeIn {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.value-carousel-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.value-carousel-ref-link {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 8px;
    background: rgba(0, 74, 173, 0.06);
    font-size: 0.78rem;
    transition: background 0.2s, transform 0.15s;
}

.value-carousel-ref-link:hover {
    background: rgba(0, 74, 173, 0.14);
    transform: translateY(-1px);
    text-decoration: underline !important;
}

/* Dot indicators */
#psyche-carousel-cards + div span {
    transition: color 0.2s ease;
}

/* Responsive: carousel on smaller screens */
@media (max-width: 768px) {
    .value-carousel-card {
        padding: 10px 14px !important;
    }
    .value-carousel-ref-link {
        font-size: 0.72rem;
        padding: 1px 6px;
    }
}
