/* ============================================================================
 * shorts/teaser.css — homepage teaser section (после hero, перед остальным).
 *
 * 4 карточки grid + CTA «Смотреть все расследования →» → /shorts
 * Mobile: 2x2 grid → horizontal scroll; Desktop: 4 в ряд.
 * ========================================================================== */

.pb-shorts-teaser {
    margin: 32px 0 48px;
    padding: 0;
}

.pb-shorts-teaser-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.pb-shorts-teaser-head {
    margin-bottom: 18px;
    padding: 0 16px;
}

.pb-shorts-teaser-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #eef0f5;
}

.pb-shorts-teaser-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(76, 226, 193, 0.42);
    background: rgba(76, 226, 193, 0.08);
    color: #4ce2c1;
    font-family: monospace, "SF Mono", Consolas;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
}

.pb-shorts-teaser-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ce2c1;
    box-shadow: 0 0 6px rgba(76, 226, 193, 0.6);
    animation: pb-shorts-teaser-pulse 1.6s ease-in-out infinite;
}

@keyframes pb-shorts-teaser-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.4); }
}

.pb-shorts-teaser-sub {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

/* ─── Grid (4 cards) ─────────────────────────────────────────────────────── */
.pb-shorts-teaser-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 0 16px;
    margin-bottom: 20px;
}

@media (max-width: 980px) {
    .pb-shorts-teaser-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    /* Horizontal scroll на мобайле */
    .pb-shorts-teaser-grid {
        grid-template-columns: none;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding-bottom: 6px;
        scrollbar-width: none;
    }
    .pb-shorts-teaser-grid::-webkit-scrollbar { display: none; }
    .pb-shorts-teaser-card {
        flex: 0 0 65%;
        scroll-snap-align: start;
    }
}

/* ─── Card ───────────────────────────────────────────────────────────────── */
.pb-shorts-teaser-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.20s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.20s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.20s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.pb-shorts-teaser-card:hover {
    transform: translateY(-3px);
    border-color: rgba(76, 226, 193, 0.36);
    box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(76, 226, 193, 0.18) inset;
}

.pb-shorts-teaser-img {
    position: relative;
    aspect-ratio: 9 / 12;
    overflow: hidden;
    background: linear-gradient(135deg, #14171f 0%, #0b0d12 100%);
}

.pb-shorts-teaser-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.50s cubic-bezier(0.16, 1, 0.3, 1);
}

.pb-shorts-teaser-card:hover .pb-shorts-teaser-img img {
    transform: scale(1.06);
}

.pb-shorts-teaser-img.is-empty {
    background:
        radial-gradient(circle at 40% 30%, rgba(76, 226, 193, 0.05), transparent 50%),
        linear-gradient(135deg, #14171f 0%, #0b0d12 100%);
}
.pb-shorts-teaser-img.is-empty::before {
    content: "📦";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    opacity: 0.32;
}

/* Verdict badge на изображении (top-right) */
.pb-shorts-teaser-badge-pct {
    position: absolute;
    top: 10px;
    right: 10px;
    /* v0.25.28: bigger + bolder. Юзер: «проценты сделать явно виднее ибо сейчас
       не видно». 11px → 14px font + 800 weight + bigger padding. */
    padding: 6px 12px;
    border-radius: 999px;
    font-family: monospace, "SF Mono", Consolas;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

/* v0.25.32: SOLID dark bg + bright cold-tinted text для maximum contrast.
   Юзер: «жёлтые проценты вообще не видно» (на белом фоне iPhone-card image
   gold цветной background светился, но gold text ставал invisible). Now: bg
   solid rgba(0,0,0,0.78) — гарантированный dark backdrop под badge независимо
   от image яркости. Text — bright per-verdict color. Cold border + glow для
   visual identity. Text-shadow для extra contrast. */
.pb-shorts-teaser-badge-pct.is-pink {
    color: #ffabc4;
    background: rgba(0, 0, 0, 0.78);
    border-color: rgba(255, 93, 143, 0.85);
    box-shadow: 0 0 16px -2px rgba(255, 93, 143, 0.55);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.pb-shorts-teaser-badge-pct.is-gold {
    color: #ffe49a;
    background: rgba(0, 0, 0, 0.78);
    border-color: rgba(255, 201, 74, 0.85);
    box-shadow: 0 0 16px -2px rgba(255, 201, 74, 0.55);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.pb-shorts-teaser-badge-pct.is-mint {
    color: #9af5e0;
    background: rgba(0, 0, 0, 0.78);
    border-color: rgba(76, 226, 193, 0.85);
    box-shadow: 0 0 16px -2px rgba(76, 226, 193, 0.55);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.pb-shorts-teaser-badge-pct.is-neutral {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(0, 0, 0, 0.78);
    border-color: rgba(255, 255, 255, 0.45);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

/* Card body */
.pb-shorts-teaser-card-body {
    padding: 12px 14px 14px;
}

.pb-shorts-teaser-mp {
    font-family: monospace, "SF Mono", Consolas;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pb-shorts-teaser-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #eef0f5;
    /* 2-line clamp */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* ─── CTA button ─────────────────────────────────────────────────────────── */
.pb-shorts-teaser-cta {
    display: flex;
    justify-content: center;
    padding: 0 16px;
}

.pb-shorts-teaser-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    background: linear-gradient(180deg,
        rgba(76, 226, 193, 0.18) 0%,
        rgba(76, 226, 193, 0.08) 100%);
    border: 1px solid rgba(76, 226, 193, 0.42);
    color: #eef0f5;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 0 24px -4px rgba(76, 226, 193, 0.22),
        inset 0 0 12px -4px rgba(76, 226, 193, 0.08);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.pb-shorts-teaser-cta-btn svg {
    width: 18px;
    height: 18px;
    stroke: #4ce2c1;
    fill: none;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.pb-shorts-teaser-cta-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg,
        rgba(76, 226, 193, 0.26) 0%,
        rgba(76, 226, 193, 0.14) 100%);
    border-color: rgba(76, 226, 193, 0.62);
    box-shadow:
        0 0 32px -2px rgba(76, 226, 193, 0.36),
        inset 0 0 16px -4px rgba(76, 226, 193, 0.18);
}
.pb-shorts-teaser-cta-btn:hover svg {
    transform: translateX(4px);
}
.pb-shorts-teaser-cta-btn:active { transform: translateY(0); }

/* ─── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .pb-shorts-teaser-dot { animation: none; }
    .pb-shorts-teaser-card,
    .pb-shorts-teaser-card:hover,
    .pb-shorts-teaser-cta-btn,
    .pb-shorts-teaser-cta-btn:hover { transform: none; transition: none; }
    .pb-shorts-teaser-img img { transition: none; }
    .pb-shorts-teaser-card:hover .pb-shorts-teaser-img img { transform: none; }
}

/* v0.25.9: row of 2 CTA buttons (Лента + Список) */
.pb-shorts-teaser-cta {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.pb-shorts-teaser-cta-btn.pb-shorts-teaser-cta-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #eef0f5;
    box-shadow: none;
}
.pb-shorts-teaser-cta-btn.pb-shorts-teaser-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.20);
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.4);
}
.pb-shorts-teaser-cta-btn.pb-shorts-teaser-cta-secondary svg {
    stroke: #eef0f5;
    width: 16px;
    height: 16px;
}

@media (max-width: 480px) {
    .pb-shorts-teaser-cta-btn { padding: 12px 22px; font-size: 14px; }
}
