/* ======================================================
   COI SEARCH ENGINE STYLES (Archive Page)
   ====================================================== */

/* CONTAINER & LAYOUT */
.coi-wrapper { background: #f8fafc; color: #334155; padding: 40px 0; font-family: 'Inter', system-ui, sans-serif; line-height: 1.6; }
.coi-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.search-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }

/* HEADER */
.archive-header { text-align: center; margin-bottom: 50px; padding-bottom: 30px; border-bottom: 1px solid #e2e8f0; }
.archive-header h1 { font-size: 32px; font-weight: 800; color: #0f172a; margin-bottom: 10px; letter-spacing: -0.5px; }
.archive-header p { color: #64748b; font-size: 16px; margin: 0; }

/* SIDEBAR FILTERS */
.search-sidebar { background: white; padding: 25px; border-radius: 12px; border: 1px solid #e2e8f0; position: sticky; top: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }

.filter-group { margin-bottom: 20px; }
.filter-group label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #94a3b8; margin-bottom: 8px; letter-spacing: 0.5px; }
.filter-group input[type="text"], .filter-group select { width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #cbd5e1; font-size: 13px; color: #334155; background: #fff; }
.filter-group input:focus, .filter-group select:focus { border-color: #2563eb; outline: none; box-shadow: 0 0 0 2px rgba(37,99,235,0.1); }

/* Toggle Checkbox */
.toggle-group label { display: flex; align-items: center; gap: 10px; cursor: pointer; text-transform: none; color: #0f172a; font-size: 13px; font-weight: 600; }
.reset-link { display: block; text-align: center; font-size: 12px; color: #ef4444; margin-top: 15px; text-decoration: none; font-weight: 500; }
.reset-link:hover { text-decoration: underline; }

/* RESULTS GRID */
.result-count { font-size: 13px; color: #64748b; margin-bottom: 20px; }
.cards-wrapper { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; }

/* RESULT CARD DESIGN */
.result-card { background: white; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.result-card:hover { transform: translateY(-4px); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); border-color: #cbd5e1; }

.card-head { padding: 15px 20px 0; display: flex; justify-content: space-between; align-items: flex-start; }
.sector-pill { background: #f1f5f9; color: #64748b; font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; letter-spacing: 0.5px; }
.verified-icon { font-size: 14px; }

.card-body { padding: 20px; text-align: center; flex-grow: 1; }
.card-logo { width: 50px; height: 50px; margin: 0 auto 15px; background: #f8fafc; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; overflow: hidden; border: 1px solid #f1f5f9; }
.card-logo img { width: 100%; height: 100%; object-fit: cover; }

.result-card h3 { margin: 0 0 5px 0; font-size: 16px; font-weight: 700; color: #0f172a; line-height: 1.3; }
.result-card .company { font-size: 13px; color: #64748b; margin: 0 0 15px 0; font-weight: 500; }
.card-desc { font-size: 13px; color: #475569; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* CARD FOOTER */
.card-foot { border-top: 1px solid #f8fafc; padding: 12px 20px; display: flex; justify-content: space-between; background: #fcfcfc; }
.metric { display: flex; flex-direction: column; }
.metric .lbl { font-size: 9px; color: #94a3b8; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.metric .val { font-size: 14px; font-weight: 700; color: #334155; }
.metric .val.high { color: #15803d; }
.metric .val.arrow { color: #2563eb; }

/* PAGINATION & EMPTY STATES */
.pagination { margin-top: 50px; text-align: center; }
.page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid #e2e8f0; border-radius: 6px; margin: 0 4px; text-decoration: none; color: #64748b; font-size: 13px; background: white; transition: all 0.2s; }
.page-numbers:hover { background: #f8fafc; border-color: #cbd5e1; }
.page-numbers.current { background: #0f172a; color: white; border-color: #0f172a; }

.no-results { text-align: center; padding: 60px; background: white; border-radius: 12px; border: 1px dashed #cbd5e1; margin-top: 20px; }
.btn-reset { display: inline-block; margin-top: 15px; padding: 10px 20px; background: #0f172a; color: white; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 600; }

@media (max-width: 900px) {
    .search-layout { grid-template-columns: 1fr; }
    .search-sidebar { position: static; margin-bottom: 30px; }
    .cards-wrapper { grid-template-columns: 1fr; }
}