/* ── Showcase element: content paths ──
   Three-card row (Listen / Practice / Idioms) for [pp_showcase_paths],
   inviting a front-page visitor into each CPT's archive. Card tints are the
   documented --pp-card-bg-* tokens (STYLING.md "any card surface representing
   a specific CPT must use the --pp-card-bg-* token"); icons are the SAME
   markup archive-cards.php already uses for these CPTs, injected server-side
   — nothing here re-authors them. The whole card is the link (better tap
   target than a separate button, and only one thing to tab to); the
   "Explore" cue is inert markup riding inside that one link, never a second
   focusable element. */
.pp-showcase-paths {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pp-showcase-paths__card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(var(--pp-steel-7-rgb), 0.10); /* STYLING.md Elevation: Card tier */
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.pp-showcase-paths__card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(var(--pp-steel-7-rgb), 0.20); /* STYLING.md Elevation: Popover tier */
}

.pp-showcase-paths__card:focus-visible {
    outline: 2px solid var(--pp-focus-ring);
    outline-offset: 2px;
}

.pp-showcase-paths__card--listen {
    background: var(--pp-card-bg-listen);
}

.pp-showcase-paths__card--practice {
    background: var(--pp-card-bg-worksheets);
}

.pp-showcase-paths__card--idioms {
    background: var(--pp-card-bg-dips);
}

/* Idle + hover sheen sweep — same effect as the convai/smart-review pill
   CTAs, under its own keyframe names so this file stays self-contained.
   Tuned brighter (0.5 vs. the pills' 0.36) than the original: that version
   sweeps across a saturated teal fill, this one crosses a pale tint, and the
   same alpha would barely register against a lighter surface. */
.pp-showcase-paths__card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 78%);
    transform: translateX(-135%);
    animation: pp-showcase-paths-sheen-idle 5s linear infinite;
    pointer-events: none;
}

.pp-showcase-paths__card:hover::before {
    animation: pp-showcase-paths-sheen-hover 0.65s ease-out 1 forwards;
}

@keyframes pp-showcase-paths-sheen-idle {
    0%, 86%, 100% { transform: translateX(-135%); }
    93% { transform: translateX(135%); }
}

@keyframes pp-showcase-paths-sheen-hover {
    from { transform: translateX(-135%); }
    to { transform: translateX(135%); }
}

@media (prefers-reduced-motion: reduce) {
    .pp-showcase-paths__card::before {
        animation: none;
    }
}

/* Icon + heading inline, left-aligned — the description and Explore cue
   below follow the same left edge rather than centering under it. */
.pp-showcase-paths__head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pp-showcase-paths__icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    color: var(--theme-palette-color-5);
}

.pp-showcase-paths__icon svg {
    width: 100%;
    height: 100%;
    display: block;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pp-showcase-paths__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--theme-palette-color-5);
}

/* Inherits body font-size/color/line-height from the theme by default
   (STYLING.md typography rule) — no explicit color here. */
.pp-showcase-paths__desc {
    position: relative;
    z-index: 2;
    margin: 12px 0 0;
}

/* Pinned to the card's bottom edge regardless of description length, since
   the flex column + margin-top:auto combination holds it there even when
   the grid stretches all three cards to the tallest one's height. */
.pp-showcase-paths__cta {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 18px;
    font-size: 0.85rem; /* STYLING.md: secondary/meta UI text */
    font-weight: 600;
    color: var(--theme-palette-color-5);
}

.pp-showcase-paths__cta svg {
    width: 15px;
    height: 15px;
    transition: transform 0.18s ease;
}

.pp-showcase-paths__card:hover .pp-showcase-paths__cta svg {
    transform: translateX(3px);
}

@media (max-width: 768px) {
    .pp-showcase-paths {
        grid-template-columns: 1fr;
    }
}
