/* r32 owner: shared-card-foundations. Exact r30 source lines 1109-1234; route scope is declared by data/css-ownership.json. */
/* Theme cards
   ========================================================================== */

.theme-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.theme-preview-card {
    position: relative;
    min-height: 28rem;
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(var(--signal-rgb), 0.04), transparent 42%),
        transparent;
    transform-style: preserve-3d;
    transition:
        background 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.theme-preview-card::after {
    position: absolute;
    right: -3rem;
    bottom: -3rem;
    width: 10rem;
    height: 10rem;
    border: 1px solid var(--line);
    border-radius: 50%;
    content: "";
    transition: transform 0.55s var(--ease), border-color 0.35s ease;
}

.theme-preview-card:hover {
    z-index: 2;
    border-color: rgba(var(--signal-rgb), 0.55);
    background:
        radial-gradient(circle at 80% 80%, rgba(var(--signal-rgb), 0.12), transparent 13rem),
        var(--surface);
    box-shadow: var(--shadow);
}

.theme-preview-card:hover::after {
    border-color: var(--signal);
    transform: scale(1.25) rotate(70deg);
}

.theme-preview-card__top,
.theme-atlas-card__top,
.source-card__top {
    display: flex;
    margin-bottom: 3.3rem;
    align-items: center;
    justify-content: space-between;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.theme-preview-card__top span:first-child,
.theme-atlas-card__top span:first-child,
.source-card__top span:first-child {
    color: var(--signal);
    font-size: 0.78rem;
    font-weight: 900;
}

.theme-preview-card h3 {
    max-width: 10ch;
    margin-bottom: 1.3rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 4rem);
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

.theme-preview-card > p {
    max-width: 33rem;
    color: var(--muted);
}

.theme-preview-card__signal {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    left: 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.theme-preview-card__signal span {
    color: var(--faint);
}

.theme-preview-card__signal > div {
    height: 0.18rem;
    overflow: hidden;
    background: var(--line);
}

.theme-preview-card__signal i {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--signal), var(--dawn));
    transition: width 1.2s var(--ease);
}

.theme-preview-card__signal strong {
    color: var(--signal);
}

