/* --- General Card & Layout Styles --- */
.card {
    background-color: white;
    padding: 1.5rem; /* 24px */
    border-radius: 1.5rem; /* 24px */
    border: 1px solid #E5E7EB; /* border-gray-200 */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease-in-out;
    overflow: hidden; /* NEW: Prevents children from breaking the card layout */
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border-color: #CBD5E1; /* border-slate-300 */
}

/* --- Opportunity Card Styles --- */
.card-title {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    color: #1E293B; /* text-slate-800 */
    word-break: break-word; /* Ensure titles wrap */
}

.sofs-badge {
    background-color: #F1F5F9; /* bg-slate-100 */
    color: #1E293B; /* text-slate-800 */
    font-size: 0.875rem; /* text-sm */
    font-weight: 700; /* font-bold */
    padding: 0.25rem 0.75rem; /* px-3 py-1 */
    border-radius: 9999px; /* rounded-full */
    white-space: nowrap;
}

.card-reasoning {
    color: #475569; /* text-slate-600 */
    margin-top: 0.5rem; /* mt-2 */
    font-size: 0.875rem; /* text-sm */
    word-break: break-word; /* Fixes long text wrapping */
}

.card-source-link {
    font-size: 0.875rem; /* text-sm */
    color: #64748B; /* text-slate-500 */
    display: inline-flex;
    align-items: center;
    gap: 0.25rem; /* gap-1 */
    text-decoration: none;
}
.card-source-link:hover {
    color: #1E293B; /* hover:text-slate-800 */
    text-decoration: underline;
}

/* --- Blueprint Display Styles --- */
.blueprint-container {
    margin-top: 1.5rem; /* mt-6 */
    border-top: 1px solid #E5E7EB; /* border-t border-gray-200 */
    padding-top: 1.5rem; /* pt-6 */
}

.blueprint-header {
    border-bottom: 1px solid #E5E7EB; /* border-b border-slate-200 */
    padding-bottom: 1rem; /* pb-4 */
    margin-bottom: 1.5rem; /* mb-6 */
}

.blueprint-title {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 700; /* font-bold */
    color: #334155; /* NEW: text-slate-700 to match buttons */
}

.blueprint-section {
    margin-bottom: 1.5rem; /* space-y-6 */
}

.blueprint-section h4 {
    font-size: 1.125rem; /* text-lg */
    font-weight: 600; /* font-semibold */
    margin-bottom: 0.25rem; /* mb-1 */
    color: #334155; /* text-slate-700 */
}

/* NEW: Universal rule for all text inside blueprint sections to wrap */
.blueprint-section p, .blueprint-section li {
    color: #475569; /* text-slate-600 */
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.blueprint-section ul {
    list-style-position: inside;
    list-style-type: disc;
    padding-left: 0.5rem;
}

.tier-card {
    flex: 1;
    background-color: #F8FAFC; /* bg-slate-50 */
    border: 1px solid #E2E8F0; /* border */
    padding: 1rem; /* p-4 */
    border-radius: 0.5rem; /* rounded-lg */
}

.prompt-code-block {
    background-color: #0F172A; /* bg-slate-900 */
    color: white;
    padding: 1rem; /* p-4 */
    border-radius: 0.5rem; /* rounded-lg */
    font-size: 0.875rem; /* text-sm */
    overflow-x: auto;
    white-space: pre-wrap;   /* Wraps code but preserves whitespace */
    word-break: break-all; /* Forces even long words to break */
}