/* SCORE PILL */
.score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 16px;
}
.score-pill-sm { min-width: 36px; height: 36px; font-size: 14px; border-radius: 10px; }
.score-recommended { background: #dcfce7; color: var(--green); }
.score-acceptable { background: #dbeafe; color: var(--blue); }
.score-caution { background: #fef3c7; color: var(--amber); }
.score-migrate_away { background: #fee2e2; color: var(--red); }

/* VERDICT TAG */
.verdict { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.verdict-recommended { color: var(--green); }
.verdict-acceptable { color: var(--blue); }
.verdict-caution { color: var(--amber); }
.verdict-migrate_away { color: var(--red); }

/* GEN TAG */
.gen { font-size: 12px; font-weight: 600; }
.gen-legacy { color: var(--red); }
.gen-modern { color: var(--green); }

/* CARDS — diffused glow hover */
.card-editorial {
    border-radius: 12px;
    overflow: visible;
    background: var(--white);
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, border-color 0.15s ease-out;
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.card-editorial::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 20px;
    background: linear-gradient(135deg,
        rgba(59,130,246,0.45),
        rgba(6,182,212,0.4),
        rgba(16,185,129,0.45));
    filter: blur(20px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.15s ease-out;
}
.card-editorial:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-color: rgba(59,130,246,0.2);
}
.card-editorial:hover::before {
    opacity: 1;
}
.card-editorial > * {
    border-radius: inherit;
}
.card-editorial .card-img-wrap {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    position: relative;
}
.card-editorial .card-img-bg {
    transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}
.card-editorial:hover .card-img-bg {
    transform: scale(1.08);
}
.card-editorial .card-chip {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.card-editorial:hover .card-chip {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.card-editorial .card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.card-editorial .card-body {
    padding: 20px 24px 24px;
    background: var(--white);
    border-radius: 0 0 12px 12px;
}
.card-editorial .card-body h3 {
    transition: color 0.15s ease-out, transform 0.2s ease-out;
    transform: translateY(0);
}
.card-editorial:hover .card-body h3 {
    color: var(--blue);
    transform: translateY(-2px);
}
.card-editorial .card-body p {
    transition: opacity 0.2s ease-out 0.03s;
    opacity: 0.75;
}
.card-editorial:hover .card-body p {
    opacity: 1;
}
.card-editorial .card-body .tag {
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
.card-editorial:hover .card-body .tag {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.card-editorial .card-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 0.25s ease-out, opacity 0.2s ease-out, transform 0.2s ease-out;
    transform: translateY(8px);
    font-size: 14px;
    font-weight: 600;
    color: var(--blue);
}
.card-editorial:hover .card-cta {
    height: 24px;
    opacity: 1;
    transform: translateY(0);
}
.card-editorial .card-cta .card-arrow {
    display: inline-block;
    transition: transform 0.2s ease-out;
}
.card-editorial:hover .card-cta .card-arrow {
    transform: translateX(4px);
}
.card-editorial .card-body .caption {
    transition: color 0.15s ease-out;
}
.card-editorial:hover .card-body .caption {
    color: var(--dark);
}

/* TABLE — clean editorial */
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mid-grey);
    border-bottom: 2px solid var(--dark);
}
.data-table th.right, .data-table td.right { text-align: right; }
.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--warm-grey);
    font-size: 15px;
}
.data-table tr:hover { background: var(--cream); }
.data-table .fw-name { font-weight: 700; color: var(--dark); }
.data-table .fw-meta { font-size: 13px; color: var(--mid-grey); }

/* BARS */
.bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bar-label { width: 120px; font-size: 14px; font-weight: 500; }
.bar-track { flex: 1; height: 6px; background: var(--warm-grey); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 3px; transition: width 0.8s ease; }
.bar-val { width: 36px; text-align: right; font-weight: 700; font-size: 14px; font-family: var(--mono); }

/* INPUT */
.input-group { display: flex; gap: 8px; }
.input-group input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid var(--warm-grey);
    border-radius: 12px;
    font-family: var(--font);
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}
.input-group input:focus { border-color: var(--dark); }
.input-group button {
    padding: 16px 32px;
    background: var(--dark);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.input-group button:hover { background: var(--near-black); }

/* RESULT CARD */
.result-card {
    background: var(--white);
    border: 1px solid var(--warm-grey);
    border-radius: 16px;
    padding: 32px;
    margin: 24px auto;
    max-width: 580px;
}
.result-card .domain { font-size: 18px; font-weight: 700; }
.result-card .framework-name { font-size: 28px; font-weight: 800; margin: 12px 0 6px; letter-spacing: -0.5px; }

.error-box {
    background: #fee2e2;
    color: var(--red);
    padding: 16px;
    border-radius: 12px;
    margin: 16px auto;
    max-width: 500px;
    font-size: 14px;
}

/* HIGHLIGHT */
.highlight-box {
    border-left: 4px solid var(--dark);
    padding: 24px 28px;
    background: var(--cream);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
}

/* RESPONSIVE overrides for deferred components */
@media (max-width: 900px) {
    .card-editorial .card-body { padding: 16px 18px 20px; }
    .card-editorial .card-cta { height: 24px; opacity: 1; transform: translateY(0); }
    .data-table td, .data-table th { padding: 10px 8px; font-size: 13px; }
    .input-group { flex-direction: column; }
    .input-group input, .input-group button { width: 100%; }
}

@media (max-width: 600px) {
    .card-editorial { border-radius: 12px; }
    .card-editorial .card-cta { opacity: 1; transform: translateY(0); height: auto; }
    .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
