/* ------------------------------------------------------ сетка интервью */
.interviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

/* ------------------------------------------------------ карточка интервью */
.interview-card {
  background: white;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.interview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ------------------------------------------------------ заголовок карточки */
.interview-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 1.5rem;
}

.interview-company {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.interview-position {
  font-size: 1rem;
  opacity: 0.9;
  word-break: break-word;
  margin-bottom: 0.8rem;
}

/* ------------------------------------------------------ ссылка на вакансию */
.vacancy-link {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.vacancy-link--empty {
  opacity: 0.7;
  font-style: italic;
  display: none; /* скрываем, если не указана */
}

.vacancy-url {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.vacancy-url:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ------------------------------------------------------ мета информация */
.interview-meta {
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e9ecef;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.interview-salary {
  font-weight: 600;
  color: #28a745;
  word-break: break-word;
}

.interview-date {
  font-size: 0.9rem;
  color: #6c757d;
  white-space: nowrap;
}

.interview-interviewer {
  font-size: 0.9rem;
  color: #6c757d;
  font-style: italic;
  white-space: nowrap;
}

.interview-interviewer--empty {
  opacity: 0.6;
  display: none; /* скрываем, если не указан */
}

/* ------------------------------------------------------ информация о пользователе */
.interview-user {
  padding: 0.8rem 1.5rem;
  border-bottom: 1px solid #f1f3f4;
  background: #fafbfc;
}

/* GitHub пользователь */
.user-github {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.github-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #24292e;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.github-link:hover {
  color: #0366d6;
  text-decoration: underline;
}

.github-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #e1e4e8;
}

.github-username {
  font-size: 0.9rem;
}

/* Локальный пользователь (только имя + email) */
.user-local {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  font-size: 0.9rem;
  font-style: italic;
}

.user-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.user-name {
  font-weight: 500;
  color: #495057;
  font-style: normal;
}

.user-email {
  font-size: 0.8rem;
  color: #6c757d;
  opacity: 0.8;
}

/* Анонимный пользователь */
.user-anonymous {
  color: #6c757d;
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.8;
}

/* Локальное сохранение */
.user-local-save {
  color: #28a745;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ------------------------------------------------------ ссылки компании */
.company-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: text-decoration 0.3s ease;
}

.company-link:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------ статистика */
.interview-stats {
  padding: 1rem;
  font-size: 1.1rem;
  line-height: 1.3rem;
  font-weight: 400;
}

/* ------------------------------------------------------ контент */
.interview-content {
  padding: 1.5rem;
  max-height: 400px;
  overflow-y: auto;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
  margin: 1rem 0 0.5rem 0;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #667eea;
  word-break: break-word;
}

.subsection-title {
  font-size: 1rem;
  font-weight: 500;
  color: #6c757d;
  margin: 0.8rem 0 0.4rem 0;
  word-break: break-word;
}

.question-item {
  margin-bottom: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f3f4;
}

.question-text {
  font-size: 0.9rem;
  color: #495057;
  margin-bottom: 0.3rem;
  word-break: break-word;
  line-height: 1.4;
}

.question-checked {
  color: #28a745;
  font-weight: 500;
}

.question-unchecked {
  color: #6c757d;
}

.question-note {
  font-size: 0.8rem;
  color: #764ba2;
  font-style: italic;
  background: #f8f9fa;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  margin-top: 0.3rem;
  word-break: break-word;
  line-height: 1.3;
}

/* ------------------------------------------------------ кнопки действий */
.interview-actions {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn--small {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.btn--small:hover {
opacity: 0.75;
}

.btn--secondary {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.btn--secondary:hover {
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: translateY(-1px);
    color: white;
}

.btn:not(.btn--secondary) {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.btn:not(.btn--secondary):hover {
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
  transform: translateY(-1px);
}

/* ------------------------------------------------------ скроллбар */
.interview-content::-webkit-scrollbar {
  width: 6px;
}

.interview-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.interview-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 3px;
}

.interview-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* ------------------------------------------------------ адаптивность */
@media (max-width: 768px) {
  .interviews-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }
  
  .interview-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  
  .interview-actions {
    justify-content: stretch;
  }
  
  .interview-actions .btn {
    flex: 1;
  }
}