/* Integration Collective — The Tech Bin (scoped under .techbin-page) */

.techbin-page {
    background: #f8fafc;
    padding-bottom: 1px;
}

.techbin-page .techbin-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header — keep dark for contrast */
.techbin-page .tb-header {
    text-align: center;
    padding: 32px 20px 28px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 2px solid #2563EB;
    margin-bottom: 24px;
}

.techbin-page .tb-header-logo {
    font-size: 12px;
    color: #2563EB;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.techbin-page .tb-header h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 6px;
}

.techbin-page .tb-header p {
    color: #999;
    font-size: 14px;
    max-width: 560px;
    margin: 0 auto;
}

/* Search */
.techbin-page .tb-search-section {
    position: sticky;
    top: 0;
    z-index: 99;
    background: #f8fafc;
    padding: 16px 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.techbin-page .tb-search-bar {
    position: relative;
    margin-bottom: 14px;
}

.techbin-page .tb-search-bar input {
    width: 100%;
    padding: 14px 50px 14px 18px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.3s ease;
}

.techbin-page .tb-search-bar input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.techbin-page .tb-search-bar input::placeholder {
    color: #94a3b8;
}

.techbin-page .tb-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* Filter pills */
.techbin-page .tb-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.techbin-page .tb-filter-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    background: #ffffff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.techbin-page .tb-filter-btn:hover {
    border-color: #2563EB;
    color: #2563EB;
}

.techbin-page .tb-filter-btn.active {
    background: #2563EB;
    border-color: transparent;
    color: #fff;
    font-weight: 700;
}

/* Stats bar */
.techbin-page .tb-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.techbin-page .tb-stat {
    flex: 1;
    text-align: center;
}

.techbin-page .tb-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #2563EB;
    margin-bottom: 4px;
}

.techbin-page .tb-stat-label {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Document card grid */
.techbin-page .tb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.techbin-page .tb-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.techbin-page .tb-card:hover {
    border-color: #2563EB;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.techbin-page .tb-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.techbin-page .tb-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.techbin-page .tb-card-icon--manual        { background: rgba(37,99,235,0.08);  color: #2563EB; }
.techbin-page .tb-card-icon--install_guide { background: rgba(16,185,129,0.08); color: #059669; }
.techbin-page .tb-card-icon--spec_sheet    { background: rgba(147,51,234,0.08); color: #7c3aed; }
.techbin-page .tb-card-icon--warranty      { background: rgba(245,158,11,0.08); color: #d97706; }
.techbin-page .tb-card-icon--checklist     { background: rgba(20,184,166,0.08); color: #0d9488; }
.techbin-page .tb-card-icon--other         { background: rgba(100,116,139,0.08); color: #64748b; }

.techbin-page .tb-card-meta {
    flex: 1;
    min-width: 0;
}

.techbin-page .tb-card-mfg {
    font-size: 12px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.techbin-page .tb-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.techbin-page .tb-card-model {
    font-size: 12px;
    color: #64748b;
    font-family: monospace;
    margin-top: 2px;
}

/* Type badge */
.techbin-page .tb-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.techbin-page .tb-badge--manual        { background: rgba(37,99,235,0.1);  color: #1d4ed8; }
.techbin-page .tb-badge--install_guide { background: rgba(16,185,129,0.1); color: #047857; }
.techbin-page .tb-badge--spec_sheet    { background: rgba(147,51,234,0.1); color: #6d28d9; }
.techbin-page .tb-badge--warranty      { background: rgba(245,158,11,0.1); color: #b45309; }
.techbin-page .tb-badge--checklist     { background: rgba(20,184,166,0.1); color: #0f766e; }
.techbin-page .tb-badge--other         { background: rgba(100,116,139,0.1); color: #475569; }

/* Tags */
.techbin-page .tb-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    flex: 1;
}

.techbin-page .tb-tag {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 6px;
}

/* Download link */
.techbin-page .tb-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #2563EB;
    text-decoration: none;
    transition: color 0.2s ease;
    margin-top: auto;
}

.techbin-page .tb-download:hover {
    color: #1d4ed8;
}

.techbin-page .tb-download svg {
    width: 16px;
    height: 16px;
}

.techbin-page .tb-file-size {
    font-weight: 400;
    color: #94a3b8;
    font-size: 11px;
    margin-left: 4px;
}

/* No results */
.techbin-page .tb-empty {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.techbin-page .tb-empty h3 {
    font-size: 22px;
    color: #475569;
    margin-bottom: 8px;
}

.techbin-page .tb-empty p {
    font-size: 14px;
}

/* CTA bottom */
.techbin-page .tb-cta {
    text-align: center;
    padding: 32px 20px;
    background: #1a1a1a;
    border-radius: 12px;
    border: 2px solid #2563EB;
    margin-bottom: 60px;
}

.techbin-page .tb-cta h3 {
    font-size: 22px;
    color: #2563EB;
    margin-bottom: 8px;
}

.techbin-page .tb-cta p {
    color: #999;
    margin-bottom: 20px;
    font-size: 14px;
}

.techbin-page .tb-cta-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #2563EB;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    transition: transform 0.2s ease;
}

.techbin-page .tb-cta-btn:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .techbin-page .tb-header h1 {
        font-size: 28px;
    }

    .techbin-page .tb-stats {
        flex-direction: column;
        gap: 12px;
    }

    .techbin-page .tb-grid {
        grid-template-columns: 1fr;
    }

    .techbin-page .tb-search-section {
        padding: 12px 0;
    }
}
