/* ════════════════════════════════════════════════════════════
   INTERVIEW PAGE — Dark theme, matches site design system
════════════════════════════════════════════════════════════ */

/* Two-column layout */
.interview-amazon-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2.5rem auto;
  width: 100%;
}

/* Sidebar */
.interview-sidebar {
  min-width: 220px;
  max-width: 250px;
  background: var(--bg-panel, rgba(11,17,34,0.82));
  border: 1px solid var(--surface-border, rgba(255,255,255,0.09));
  border-radius: var(--radius-lg, 20px);
  padding: 1.5rem 1.2rem;
  position: sticky;
  top: calc(var(--header-height, 88px) + 1rem);
  height: fit-content;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.interview-sidebar .filter-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #a5b0d3);
  margin-bottom: 1rem;
}

.interview-sidebar .filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.interview-sidebar .filter-btn {
  display: block;
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-soft, #cfd8f6);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.interview-sidebar .filter-btn:hover {
  background: rgba(0,217,255,0.06);
  border-color: rgba(0,217,255,0.2);
  color: var(--neon-blue, #00d9ff);
}

.interview-sidebar .filter-btn.active {
  background: rgba(0,217,255,0.1);
  border-color: var(--neon-blue, #00d9ff);
  color: var(--neon-blue, #00d9ff);
}

/* Main content */
.interview-main-content {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Controls bar */
.interview-controls-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  background: var(--bg-panel, rgba(11,17,34,0.82));
  border: 1px solid var(--surface-border, rgba(255,255,255,0.09));
  border-radius: var(--radius-md, 20px);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(12px);
  flex-wrap: wrap;
}

.interview-search {
  flex: 1;
  min-width: 160px;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  color: var(--text, #f4f7ff);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.interview-search::placeholder {
  color: var(--text-muted, #a5b0d3);
}

.interview-search:focus {
  border-color: var(--neon-blue, #00d9ff);
}

.interview-controls-bar label {
  color: var(--text-muted, #a5b0d3);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.interview-page-size,
.interview-sort {
  padding: 0.45rem 0.7rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text, #f4f7ff);
  font-size: 0.85rem;
}

/* Cards grid */
.interview-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.interview-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid var(--surface-border, rgba(255,255,255,0.09));
  border-radius: var(--radius-lg, 20px);
  padding: 0;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.2s ease, box-shadow 0.3s ease;
}

.interview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,217,255,0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,217,255,0.1);
}

.interview-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.4rem;
  width: 100%;
}

.interview-card-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,217,255,0.08);
  border-radius: 12px;
}

.interview-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.interview-card-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #f4f7ff);
  line-height: 1.3;
}

.interview-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted, #a5b0d3);
  line-height: 1.5;
}

/* Pagination */
.interview-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text-muted, #a5b0d3);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  border-color: var(--neon-blue, #00d9ff);
  color: var(--neon-blue, #00d9ff);
}

.pagination-btn.active {
  background: rgba(0,217,255,0.12);
  border-color: var(--neon-blue, #00d9ff);
  color: var(--neon-blue, #00d9ff);
}

/* Sidebar toggle */
.interview-sidebar-toggle {
  display: none;
  background: rgba(0,217,255,0.1);
  border: 1px solid rgba(0,217,255,0.2);
  color: var(--neon-blue, #00d9ff);
  padding: 0.65rem 1.2rem;
  margin: 0 0 1rem 0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.interview-sidebar-toggle:hover {
  background: rgba(0,217,255,0.18);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .interview-amazon-layout {
    flex-direction: column;
    gap: 1rem;
  }
  .interview-sidebar {
    max-width: 100%;
    min-width: 0;
    position: static;
  }
  .interview-sidebar .filter-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .interview-sidebar .filter-btn {
    width: auto;
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  .interview-card a {
    padding: 1rem;
  }
  .interview-card-icon {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }
  .interview-card-title {
    font-size: 0.92rem;
  }
  .interview-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.8rem;
  }
  .interview-search {
    width: 100%;
  }
  .interview-sidebar-toggle {
    display: block;
  }
  .interview-sidebar.collapsed {
    display: none;
  }
}

/* ─── Light mode overrides ─── */
html.light-mode .interview-sidebar {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.08);
}

html.light-mode .interview-sidebar .filter-btn {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
  color: #3a4060;
}

html.light-mode .interview-sidebar .filter-btn:hover {
  background: rgba(0,130,255,0.06);
  border-color: rgba(0,130,255,0.2);
  color: #0077cc;
}

html.light-mode .interview-sidebar .filter-btn.active {
  background: rgba(0,130,255,0.08);
  border-color: #0077cc;
  color: #0077cc;
}

html.light-mode .interview-controls-bar {
  background: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.08);
}

html.light-mode .interview-search {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.1);
  color: #1a1d2e;
}

html.light-mode .interview-search::placeholder {
  color: #5a6280;
}

html.light-mode .interview-page-size,
html.light-mode .interview-sort {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.1);
  color: #1a1d2e;
}

html.light-mode .interview-card {
  background: rgba(255,255,255,0.65);
  border-color: rgba(0,0,0,0.06);
}

html.light-mode .interview-card:hover {
  border-color: rgba(0,100,200,0.18);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

html.light-mode .interview-card-title {
  color: #1a1d2e;
}

html.light-mode .interview-card-desc {
  color: #5a6280;
}

html.light-mode .interview-card-icon {
  background: rgba(0,130,255,0.06);
}

html.light-mode .pagination-btn {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.08);
  color: #5a6280;
}

html.light-mode .pagination-btn:hover,
html.light-mode .pagination-btn.active {
  border-color: #0077cc;
  color: #0077cc;
  background: rgba(0,130,255,0.06);
}

html.light-mode .interview-sidebar-toggle {
  background: rgba(0,130,255,0.06);
  border-color: rgba(0,130,255,0.2);
  color: #0077cc;
}