/* CareerHunt components for the public website (works alongside the prebuilt tailwind.min.css). */

/* Logo: light version over the hero, dark version when the bar is white (scrolled, or pages without a hero). */
#topnav .ch-logo-on-white { display: none; }
#topnav .ch-logo-on-hero { display: inline-block; }
#topnav.nav-sticky .ch-logo-on-white, #topnav.ch-solid-nav .ch-logo-on-white { display: inline-block; }
#topnav.nav-sticky .ch-logo-on-hero, #topnav.ch-solid-nav .ch-logo-on-hero { display: none; }
.dark #topnav.nav-sticky .ch-logo-on-white, .dark #topnav.ch-solid-nav .ch-logo-on-white { display: none; }
.dark #topnav.nav-sticky .ch-logo-on-hero, .dark #topnav.ch-solid-nav .ch-logo-on-hero { display: inline-block; }
#topnav.ch-solid-nav { background-color: #fff; box-shadow: 0 0 3px rgba(60, 72, 88, .15); }
.dark #topnav.ch-solid-nav { background-color: #0f172a; }

.ch-alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 15px; border: 1px solid transparent; }
.ch-alert ul { margin: 0; padding-left: 18px; list-style: disc; }
.ch-alert-success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.ch-alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.ch-alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.ch-alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

.ch-toast { position: fixed; top: 84px; right: 16px; z-index: 1000; max-width: 420px; box-shadow: 0 8px 24px rgba(15, 23, 42, .15); border-radius: 8px; }
.ch-toast .ch-alert { margin: 0; padding-right: 36px; position: relative; }
.ch-toast-close { position: absolute; top: 6px; right: 10px; font-size: 20px; line-height: 1; background: none; border: 0; cursor: pointer; color: inherit; }

.ch-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.ch-badge-verified { background: #ecfdf5; color: #047857; }
.ch-badge-applied { background: #eff6ff; color: #1d4ed8; }
.ch-badge-shortlisted { background: #fffbeb; color: #b45309; }
.ch-badge-rejected { background: #fef2f2; color: #b91c1c; }
.ch-badge-selected { background: #ecfdf5; color: #047857; }
.ch-badge-muted { background: #f1f5f9; color: #475569; }

.ch-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(15, 23, 42, .1); padding: 20px; }
.dark .ch-card { background: #0f172a; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }

.ch-trust { border: 1px solid #a7f3d0; background: #f0fdf4; border-radius: 8px; padding: 16px; }
.ch-trust h6 { font-weight: 600; color: #047857; margin-bottom: 4px; }
.ch-warning-box { border: 1px solid #fde68a; background: #fffbeb; border-radius: 8px; padding: 12px 16px; color: #92400e; }

.ch-table { width: 100%; border-collapse: collapse; }
.ch-table th, .ch-table td { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.ch-table th { font-weight: 600; color: #475569; font-size: 14px; }

.ch-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid #d1fae5; }
.ch-timeline li { position: relative; padding: 0 0 14px 10px; }
.ch-timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #059669; }

.ch-input { width: 100%; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 6px; background: transparent; }
.ch-input:focus { outline: none; border-color: #059669; }
.ch-btn { display: inline-block; padding: 6px 18px; border-radius: 6px; font-weight: 600; border: 1px solid #059669; background: #059669; color: #fff; cursor: pointer; }
.ch-btn:hover { background: #047857; }
.ch-btn-outline { background: transparent; color: #059669; }
.ch-btn-outline:hover { background: #ecfdf5; }
.ch-btn-danger { border-color: #dc2626; background: #fff; color: #dc2626; }
.ch-btn-danger:hover { background: #fef2f2; }

.ch-grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .ch-grid-2 { grid-template-columns: 1fr 1fr; } }

.ch-muted { color: #64748b; font-size: 14px; }
.ch-section-title { font-size: 18px; font-weight: 600; margin: 24px 0 12px; }
details.ch-report summary { cursor: pointer; color: #b91c1c; font-weight: 600; }
