/* ------------------------------------------------------------- */
/* CANDIDATE BOOKMARKS & REVISION HUB STYLES                      */
/* ------------------------------------------------------------- */

/* Bookmarks Hero Banner */
.bkm-hero-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.09) 0%, rgba(37, 99, 235, 0.08) 100%);
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.bkm-hero-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.35rem;
}

.bkm-hero-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  letter-spacing: -0.3px;
  margin: 0;
}

.bkm-hero-tag {
  background: #F59E0B;
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bkm-hero-sub {
  font-size: 0.88rem;
  color: var(--text-muted, #64748b);
  max-width: 620px;
  line-height: 1.45;
  margin: 0;
}

.bkm-stats-container {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.bkm-stat-pill {
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  min-width: 90px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bkm-stat-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-blue, #2563EB);
  font-family: var(--font-mono, monospace);
  font-feature-settings: 'tnum' 1;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.bkm-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 3px;
}

/* Quick Action Buttons Header */
.bkm-actions-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-bkm-drill {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.btn-bkm-drill:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-bkm-drill:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-bkm-clear {
  background: var(--bg-card, #ffffff);
  color: #DC2626;
  border: 1px solid #FECACA;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.52rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-bkm-clear:hover:not(:disabled) {
  background: #FEF2F2;
  border-color: #F87171;
}

.btn-bkm-clear:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Filter Toolbar */
.bkm-filter-toolbar {
  background: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.bkm-filter-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.bkm-search-wrap {
  position: relative;
  flex: 1 1 240px;
  min-width: 220px;
}

.bkm-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.bkm-search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.52rem 0.75rem 0.52rem 2.2rem;
  font-size: 0.88rem;
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 8px;
  background: var(--bg-base, #f8fafc);
  color: var(--text-main, #0f172a);
  transition: border-color 0.2s;
}

.bkm-search-input:focus {
  outline: none;
  border-color: var(--brand-blue, #2563EB);
  background: var(--bg-card, #ffffff);
}

.bkm-select {
  padding: 0.52rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border-color, #cbd5e1);
  border-radius: 8px;
  background: var(--bg-card, #ffffff);
  color: var(--text-main, #0f172a);
  cursor: pointer;
  min-width: 140px;
}

/* Quick Filter Pills */
.bkm-pills-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}

.bkm-pill-btn {
  background: var(--bg-hover, #f1f5f9);
  color: var(--text-muted, #475569);
  border: 1px solid transparent;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bkm-pill-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.bkm-pill-btn.active {
  background: #2563EB;
  color: #ffffff;
  border-color: #2563EB;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* Question Cards Grid */
.bkm-cards-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bkm-q-card {
  background: var(--card-bg, #ffffff);
  border: 1.5px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 1.4rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}

.bkm-q-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.bkm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.bkm-meta-chips {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.bkm-badge-subject {
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-blue, #2563EB);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.bkm-badge-diff {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.bkm-diff-easy {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.bkm-diff-medium {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.bkm-diff-hard {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.bkm-badge-paper {
  background: var(--bg-hover, #f1f5f9);
  color: var(--text-muted, #64748b);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-color, #e2e8f0);
}

.bkm-card-actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.btn-bkm-card-remove {
  background: transparent;
  color: var(--text-muted, #94a3b8);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-bkm-card-remove:hover {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #F87171;
}

.bkm-q-statement {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-main, #0f172a);
  margin-bottom: 1rem;
  font-weight: 500;
}

.bkm-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.bkm-option-item {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border-color, #e2e8f0);
  background: var(--bg-base, #f8fafc);
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-main, #334155);
}

.bkm-option-item.correct {
  background: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
  font-weight: 700;
}

/* Shortcut Trick Box in Card */
.bkm-shortcut-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: #78350F;
}

.bkm-shortcut-tag {
  background: #F59E0B;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 1px;
}

/* Explanation Box in Card */
.bkm-explanation-box {
  background: var(--bg-hover, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.86rem;
  color: var(--text-main, #334155);
  line-height: 1.5;
}

/* Personal Study Note Box in Card */
.bkm-note-box {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.86rem;
  color: var(--text-main, #1e1b4b);
  line-height: 1.5;
  transition: all 0.2s ease;
}

.bkm-note-tag {
  background: linear-gradient(135deg, #7C3AED 0%, #6D28D9 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-bkm-note-edit {
  background: none;
  border: 1px solid #7C3AED;
  color: #6D28D9;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-bkm-note-edit:hover {
  background: #6D28D9;
  color: #FFFFFF;
}

.bkm-note-text {
  margin: 6px 0 4px;
  font-size: 0.86rem;
  color: var(--text-main, #0F172A);
}

.bkm-note-time {
  font-size: 0.72rem;
  color: var(--text-muted, #64748B);
  display: block;
}

/* Empty State */
.bkm-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--card-bg, #ffffff);
  border-radius: 14px;
  border: 1.5px dashed var(--border-color, #cbd5e1);
}

.bkm-empty-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.bkm-empty-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  margin-bottom: 0.4rem;
}

.bkm-empty-desc {
  font-size: 0.9rem;
  color: var(--text-muted, #64748b);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}
