/* Package Manager — Custom Styles */

/* Capability badges */
.badge-platform { font-size: 0.65rem; font-weight: 600; border-radius: 0.25rem; padding: 0.05rem 0.35rem; }
.badge-gl { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-ansi { background: rgba(234, 179, 8, 0.15); color: #eab308; border: 1px solid rgba(234, 179, 8, 0.3); }
.badge-any { background: rgba(113, 113, 122, 0.15); color: #a1a1aa; border: 1px solid rgba(113, 113, 122, 0.2); }

.badge-feature { font-size: 0.6rem; font-weight: 600; border-radius: 0.25rem; padding: 0.05rem 0.3rem; }
.badge-required { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.badge-optional { background: rgba(234, 179, 8, 0.1); color: #ca8a04; border: 1px solid rgba(234, 179, 8, 0.15); }
.badge-unsupported { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.15); }

/* Package cards */
.pkg-card {
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.pkg-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
}

/* Tag pills */
.tag-pill {
    font-size: 0.65rem;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(6, 182, 212, 0.1);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: 0.25rem;
    padding: 0.05rem 0.35rem;
}

/* Search bar */
.search-input:focus {
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* Install button */
.btn-install {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}
.btn-install:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.5);
}

.btn-uninstall {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-uninstall:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

/* ─── Fund Me tier ───────────────────────────────────────────────── */

.fund-me-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 0.25rem;
    padding: 0.1rem 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Funding progress bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(63, 63, 70, 0.5);
    border-radius: 9999px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

/* Standard / Fund Me tier tabs */
.tier-tab {
    color: #71717a;
    border-color: transparent;
}
.tier-tab:hover {
    color: #a1a1aa;
}
.tier-tab-active {
    color: #22d3ee;
    border-color: #22d3ee;
}
.tier-tab-active-amber {
    color: #fbbf24;
    border-color: #fbbf24;
}
