/* ==========================================================================
   Pattern dictionary & live-detection styles
   Dipakai oleh:
   - public/edukasi/kamus-pola-saham.php (kamus 56 pola)
   - public/market-pulse-overview.php (kartu live pola IHSG)
   - public/tools/marketlens_analisis.php (kartu live pola per saham)
   ========================================================================== */

.pattern-tile {
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.9rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pattern-tile-svg {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 0.35rem;
    padding: 0.35rem;
    min-height: 84px;
}

.pattern-tile-svg svg {
    max-width: 100%;
    height: auto;
}

.pattern-tile-name {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.25;
}

.pattern-tile-text {
    font-size: 0.8rem;
    color: #475569;
    line-height: 1.45;
}

.pattern-bias {
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.pattern-bias-bullish { background: #dcfce7; color: #166534; }
.pattern-bias-bearish { background: #fee2e2; color: #991b1b; }
.pattern-bias-neutral { background: #e2e8f0; color: #334155; }

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.85rem;
}

.pattern-live-card {
    border-left: 4px solid #0d6efd;
}

.pattern-live-card.is-bearish { border-left-color: #dc2626; }
.pattern-live-card.is-bullish { border-left-color: #16a34a; }
.pattern-live-card.is-neutral { border-left-color: #64748b; }

.pattern-confidence-track {
    height: 0.4rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.pattern-confidence-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0d6efd, #20c997);
}

.pattern-filter-btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}
