/* === FC UPGRADE — Enhanced Search, Filter, Compare, Reviews, Bookmarks === */

/* === LIVE SEARCH RESULTS === */
.fc-live-results {
    background: #15152a;
    border: 1px solid #252545;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}
.fc-live-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: #e8e8f0;
    text-decoration: none;
    border-bottom: 1px solid #252545;
    transition: background 0.15s;
}
.fc-live-result:last-child { border-bottom: none; }
.fc-live-result:hover { background: #1a1a35; }
.fc-lr-platform {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
    min-width: 60px;
    text-align: center;
}
.fc-lr-mybb { background: rgba(66,133,244,0.2); color: #4285f4; }
.fc-lr-wordpress { background: rgba(29,163,90,0.2); color: #1da35a; }
.fc-lr-phpbb { background: rgba(226,82,37,0.2); color: #e25225; }
.fc-lr-xenforo { background: rgba(211,84,0,0.2); color: #d35400; }
.fc-lr-vbulletin { background: rgba(147,108,227,0.2); color: #936ce3; }
.fc-lr-title { flex: 1; font-size: 13px; }
.fc-lr-price { font-weight: 700; font-size: 13px; color: #f0c040; flex-shrink: 0; }
.fc-lr-free { color: #00a32a; }

/* === FILTER CHIPS === */
.fc-filter-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 12px 0;
}
.fc-chip {
    padding: 6px 14px;
    background: #15152a;
    border: 1px solid #252545;
    border-radius: 20px;
    color: #8888aa;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.fc-chip:hover { border-color: #353560; color: #e8e8f0; }
.fc-chip.active {
    background: #f0c040;
    border-color: #f0c040;
    color: #0a0a15;
}

/* === COMPARE BAR === */
.fc-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #15152a;
    border-top: 1px solid #353560;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    z-index: 9998;
}
.fc-compare-count { color: #e8e8f0; font-size: 14px; font-weight: 600; }
.fc-compare-bar .fc-compare-clear {
    background: none;
    border: 1px solid #353560;
    color: #8888aa;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.fc-compare-bar .fc-compare-clear:hover { border-color: #f0c040; color: #f0c040; }
.fc-compare-go {
    background: #f0c040;
    color: #0a0a15;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: opacity 0.2s;
}
.fc-compare-label { cursor: pointer; }
.fc-compare-check { accent-color: #f0c040; width: 16px; height: 16px; }

/* === COMPARE PAGE === */
.compare-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.compare-header h1 { font-size: 28px; font-weight: 800; }
.btn-ghost {
    display: inline-block;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #353560;
    color: #8888aa;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}
.btn-ghost:hover { border-color: #f0c040; color: #f0c040; }
.compare-grid {
    display: grid;
    grid-template-columns: 140px repeat(var(--cols, 3), 1fr);
    gap: 1px;
    background: #252545;
    border: 1px solid #252545;
    border-radius: 12px;
    overflow: hidden;
}
.compare-cell {
    background: #0a0a15;
    padding: 16px;
    font-size: 14px;
    color: #e8e8f0;
    min-height: 48px;
    display: flex;
    align-items: center;
}
.compare-header-cell { background: #15152a; }
.compare-label-cell { background: #15152a; font-weight: 700; color: #8888aa; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; }
.compare-product-header { background: #15152a; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.compare-product-title { font-size: 15px; font-weight: 700; color: #e8e8f0; }
.compare-product-platform { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #f0c040; padding: 2px 8px; background: rgba(240,192,64,0.12); border-radius: 4px; }
.compare-product-price { font-size: 18px; font-weight: 800; color: #f0c040; }
.compare-badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge-premium { background: rgba(0,163,42,0.15); color: #00a32a; }
.badge-free { background: rgba(240,192,64,0.15); color: #f0c040; }
.compare-price-cell { justify-content: center; }
.compare-price { font-size: 22px; font-weight: 800; color: #f0c040; }
.compare-price-free { color: #00a32a; }
.compare-features-cell { flex-direction: column; align-items: flex-start; gap: 4px; }
.compare-feature { font-size: 13px; color: #e8e8f0; }
.compare-req-cell { font-size: 13px; color: #8888aa; }
.compare-install-cell summary { cursor: pointer; color: #8888aa; font-size: 13px; }
.compare-install-cell summary:hover { color: #f0c040; }
.compare-install-cell pre { margin-top: 8px; font-size: 12px; color: #666688; white-space: pre-wrap; }
.btn-gold { display: inline-block; padding: 8px 16px; background: #f0c040; color: #0a0a15; text-decoration: none; border-radius: 6px; font-weight: 700; font-size: 14px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.compare-winners { margin-top: 24px; display: flex; gap: 12px; }
.winner-badge { padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.winner-best-price { background: rgba(240,192,64,0.1); border: 1px solid rgba(240,192,64,0.3); color: #f0c040; }

/* === REVIEWS === */
.fc-reviews-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid #252545; }
.fc-reviews-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.fc-avg-rating { font-size: 24px; font-weight: 800; color: #f0c040; }
.fc-avg-rating.rating-high { color: #00a32a; }
.fc-avg-rating.rating-mid { color: #f0c040; }
.fc-avg-rating.rating-low { color: #d63638; }
.fc-rating-count { font-size: 14px; color: #8888aa; }
.fc-rating-stars { display: flex; gap: 4px; }
.fc-rating-star {
    font-size: 32px;
    color: #353560;
    cursor: pointer;
    transition: color 0.1s, transform 0.1s;
    user-select: none;
}
.fc-rating-star:hover { transform: scale(1.2); }
.fc-rating-star.active { color: #f0c040; }
.fc-rating-value { font-size: 18px; font-weight: 700; color: #f0c040; margin-left: 8px; }
.fc-review-text-area { width: 100%; padding: 12px; background: #15152a; border: 1px solid #252545; border-radius: 8px; color: #e8e8f0; font-size: 14px; min-height: 80px; resize: vertical; font-family: inherit; }
.fc-review-text-area:focus { outline: none; border-color: #f0c040; }
.fc-review-submit {
    margin-top: 12px;
    padding: 10px 24px;
    background: #f0c040;
    color: #0a0a15;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}
.fc-review-submit:hover { background: #f5d76e; }
.fc-review-list { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.fc-review-item { padding: 16px; background: #15152a; border: 1px solid #252545; border-radius: 8px; }
.fc-review-stars { display: flex; gap: 2px; margin-bottom: 8px; }
.fc-review-star { color: #353560; font-size: 14px; }
.fc-review-star.active { color: #f0c040; }
.fc-review-text { font-size: 14px; color: #e8e8f0; margin-bottom: 8px; line-height: 1.6; }
.fc-review-meta { font-size: 12px; color: #666688; }
.fc-no-reviews { padding: 24px; text-align: center; color: #666688; font-size: 14px; }

/* === BOOKMARK BUTTON === */
.fc-bookmark-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #15152a;
    border: 1px solid #252545;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}
.fc-bookmark-btn:hover { border-color: #f0c040; }
.fc-bookmark-btn.bookmarked { background: rgba(240,192,64,0.15); border-color: #f0c040; }

/* === DASHBOARD === */
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.dashboard-header h1 { font-size: 28px; font-weight: 800; }
.dashboard-user { font-size: 16px; color: #8888aa; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.dash-stat-card { background: #15152a; border: 1px solid #252545; border-radius: 12px; padding: 20px; text-align: center; }
.dash-stat-icon { font-size: 32px; margin-bottom: 8px; }
.dash-stat-num { font-size: 28px; font-weight: 800; color: #f0c040; }
.dash-stat-label { font-size: 12px; color: #666688; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.dash-section { margin-bottom: 32px; }
.dash-section-title { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.dash-empty { text-align: center; padding: 48px 24px; background: #15152a; border: 1px solid #252545; border-radius: 12px; }
.dash-empty-icon { font-size: 48px; margin-bottom: 12px; }
.dash-empty p { color: #8888aa; margin-bottom: 16px; }
.dash-bookmarks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.dash-bookmark-card { display: flex; align-items: center; justify-content: space-between; background: #15152a; border: 1px solid #252545; border-radius: 8px; padding: 14px; }
.dash-bm-info { flex: 1; }
.dash-bm-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.dash-bm-title a { color: #e8e8f0; text-decoration: none; }
.dash-bm-title a:hover { color: #f0c040; }
.dash-bm-platform { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #f0c040; }
.dash-bm-price { font-size: 14px; font-weight: 700; color: #e8e8f0; margin-top: 2px; }
.dash-bm-remove { background: none; border: 1px solid #252545; color: #666688; width: 28px; height: 28px; border-radius: 6px; cursor: pointer; font-size: 12px; margin-left: 8px; }
.dash-bm-remove:hover { border-color: #d63638; color: #d63638; }
.dash-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.dash-action-card { display: flex; flex-direction: column; align-items: center; gap: 8px; background: #15152a; border: 1px solid #252545; border-radius: 8px; padding: 20px; text-decoration: none; color: #e8e8f0; transition: all 0.2s; }
.dash-action-card:hover { border-color: #f0c040; }
.dash-action-icon { font-size: 28px; }
.dash-action-text { font-size: 13px; font-weight: 600; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .compare-grid { grid-template-columns: 100px 1fr !important; }
    .compare-product-header:nth-child(n+3) { display: none; }
    .compare-cell:nth-child(n+3) { display: none; }
    .fc-compare-bar { flex-direction: column; gap: 8px; }
    .dash-stats { grid-template-columns: 1fr; }
}
