/* Practice Questions Page Styles */

.questions_hero {
  padding: 80px 0 60px;
  text-align: center;
}

.filter_bar {
  display: flex;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 40px auto 0;
}

.filter_select {
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 0 16px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  outline: none;
}

/* Questions Grid */
.questions_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding-bottom: 60px;
}

.q_card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.q_card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-gold);
}

.q_card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 16px;
  flex: 1;
}

.q_meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.q_diff {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 20px;
}

.q_diff.easy { background: rgba(45, 74, 62, 0.1); color: var(--accent); }
.q_diff.medium { background: rgba(197, 163, 88, 0.1); color: var(--accent-gold); }
.q_diff.hard { background: rgba(163, 74, 62, 0.1); color: #a34a3e; }

.q_tags {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.q_footer {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.btn_solve_full {
  flex: 1;
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn_solve_full:hover { background: var(--accent-light); }

.scroll_sentinel {
  text-align: center;
  padding: 60px 0 140px;
  color: var(--text-muted);
}

.loading_spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .filter_bar { flex-direction: column; }
  .questions_grid { grid-template-columns: 1fr; }
}
