/**
 * Infocruit Sidebar Styles
 * Extracted from sidebar.php to comply with CSP and performance rules.
 */
/* ─── Sidebar wrapper ──────────────────────────── */
.ic-sb-wrap {
    flex-shrink: 0;
    width: 300px;
    min-width: 300px;
}

.ic-sb-sticky {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ─── Card shell ────────────────────────────────── */
.ic-sb-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

/* ─── Gradient header strip ─────────────────────── */
.ic-sb-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.ic-sb-card-header.primary {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

.ic-sb-card-header.success {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.ic-sb-card-header.warning {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.ic-sb-card-header.accent {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

/* ─── Card body ─────────────────────────────────── */
.ic-sb-card-body {
    padding: 8px;
}

/* ─── Trending exam rows ─────────────────────────── */
.ic-sb-exam-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #111827;
    font-size: 13.5px;
    font-weight: 500;
    transition: background .13s, color .13s;
}

.ic-sb-exam-row:hover {
    background: #eff6ff;
    color: #2563eb;
}

.ic-sb-exam-row .emoji {
    font-size: 16px;
    flex-shrink: 0;
}

.ic-sb-exam-row .label {
    flex: 1;
}

.ic-sb-hot-badge {
    font-size: 10px;
    font-weight: 700;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 4px;
    padding: 1px 5px;
    flex-shrink: 0;
}

.ic-sb-exam-row .chevron {
    font-size: 13px;
    color: #d1d5db;
    opacity: 0;
    transition: opacity .13s;
    flex-shrink: 0;
}

.ic-sb-exam-row:hover .chevron {
    opacity: 1;
    color: #2563eb;
}

/* ─── Result / Admit rows ────────────────────────── */
.ic-sb-data-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    transition: background .13s;
}

.ic-sb-data-row:hover {
    background: #f9fafb;
}

.ic-sb-data-row .meta {
    min-width: 0;
}

.ic-sb-data-row .meta p {
    font-size: 12.5px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ic-sb-data-row .meta span {
    font-size: 11px;
    color: #6b7280;
}

.ic-sb-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
}

.ic-sb-badge.available {
    background: #dcfce7;
    color: #16a34a;
}

.ic-sb-badge.upcoming {
    background: #fef9c3;
    color: #ca8a04;
}

/* ─── View-all link ─────────────────────────────── */
.ic-sb-view-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 4px 6px 4px;
    padding: 7px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background .13s;
}

/* ─── Community CTA hover ─────────────────── */
.ic-sb-cta-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 8px;
    margin-bottom: 6px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    transition: filter .15s;
}
.ic-sb-cta-wa:hover { filter: brightness(.92); }

.ic-sb-cta-ig {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045);
    color: #fff;
    text-decoration: none;
    transition: filter .15s;
}
.ic-sb-cta-ig:hover { filter: brightness(.92); }

.ic-sb-view-all.success {
    background: #f0fdf4;
    color: #16a34a;
}

.ic-sb-view-all.success:hover {
    background: #dcfce7;
}

.ic-sb-view-all.warning {
    background: #fffbeb;
    color: #d97706;
}

.ic-sb-view-all.warning:hover {
    background: #fef3c7;
}

.ic-sb-view-all.accent {
    background: #f5f3ff;
    color: #7c3aed;
}

.ic-sb-view-all.accent:hover {
    background: #ede9fe;
}

.ic-sb-view-all.primary {
    background: #eff6ff;
    color: #2563eb;
}

.ic-sb-view-all.primary:hover {
    background: #dbeafe;
}

/* ─── Quick navigate grid ────────────────────────── */
.ic-sb-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 10px;
}

.ic-sb-nav-grid a {
    display: block;
    text-align: center;
    padding: 7px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    background: #f3f4f6;
    color: #374151;
    transition: background .13s, color .13s;
}

.ic-sb-nav-grid a:hover {
    background: #2563eb;
    color: #fff;
}

/* ─── Blog post row ────────────────────────── */
.ic-sb-blog-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-decoration: none;
    padding: 6px;
    border-radius: 8px;
    transition: background .15s;
}
.ic-sb-blog-row:hover {
    background: #f9fafb;
}

/* ─── Blog view all link ────────────────────────── */
.ic-sb-blog-view-all {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #7c3aed;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ede9fe;
    text-decoration: none;
    transition: background .15s;
}
.ic-sb-blog-view-all:hover {
    background: #ede9fe;
}

/* ─── Hide on mobile ────────────────────────────── */
@media (max-width: 1023px) {
    .ic-sb-wrap {
        display: none;
    }
}

/* ==========================================================================
   Utility Hover Classes (Replaces inline JS onmouseover for CSP compliance)
   ========================================================================== */
.hover-dim:hover {
    filter: brightness(0.88);
}

.hover-bg-gray:hover {
    background-color: #f3f4f6 !important;
}

.hover-bg-red:hover {
    background-color: #dc2626 !important;
    color: #fff !important;
}

.hover-scale-110:hover {
    transform: scale(1.1);
}

/* ─── Footer Link Hover ────────────────────────────── */
.ic-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color .15s, padding-left .15s;
    padding-left: 0;
}
.ic-footer-link:hover {
    color: #ffffff;
    padding-left: 4px;
}

/* ─── Search Result Card Hover ─────────────────────── */
.hover-shadow-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}
.hover-text-blue:hover {
    color: #2563eb !important;
}

/* ─── 404 Page Link Hovers ─────────────────────────── */
.ic-404-cat-link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1) !important;
}
.ic-404-job-link:hover {
    border-color: #2563eb !important;
    box-shadow: 0 2px 12px rgba(37,99,235,0.08) !important;
}
