/**
 * Meetings Page Styles - 會議記錄頁面樣式
 * 
 * 包含:
 * - 時間軸視覺效果
 * - 會議卡片樣式
 * - 會議詳情模態框
 * - 響應式設計
 */

/* ==================== 會議容器 ==================== */

.meetings-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.page-title {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 2rem;
  text-align: center;
}

/* ==================== 會議時間軸 ==================== */

.meeting-timeline {
  position: relative;
  padding-left: 3rem;
  margin-top: 2rem;
}

/* 時間軸垂直線 */
.meeting-timeline::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

/* ==================== 會議卡片 ==================== */

.meeting-card {
  position: relative;
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.meeting-card:hover {
  transform: translateX(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* 時間軸節點 */
.meeting-card::before {
  content: '📅';
  position: absolute;
  left: -2.5rem;
  top: 1.5rem;
  width: 2rem;
  height: 2rem;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 0 0 4px var(--bg-primary);
  z-index: 1;
}

.meeting-date-badge {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.meeting-content {
  margin-top: 0.5rem;
}

.meeting-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.meeting-organizer,
.meeting-attendees {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.meeting-summary {
  color: var(--text-secondary);
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* 會議標籤 */
.meeting-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.meeting-tags .tag {
  background: var(--secondary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

.btn-view-detail {
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.btn-view-detail:hover {
  background: var(--primary-hover);
}

/* ==================== 會議詳情模態框 ==================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.meeting-detail-modal {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0;
}

.btn-close-modal {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.btn-close-modal:hover {
  color: var(--danger-color);
}

.modal-body {
  padding: 2rem;
  max-height: 70vh;
  overflow-y: auto;
}

.meeting-meta {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.meeting-meta p {
  margin: 0.5rem 0;
  color: var(--text-secondary);
}

.meeting-description,
.meeting-summary-section,
.meeting-transcript {
  margin-top: 1.5rem;
}

.meeting-description h4,
.meeting-summary-section h4,
.meeting-transcript h4 {
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.transcript-content,
.summary-content {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-wrap;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  max-height: 500px;
  overflow-y: auto;
}

.meeting-audio {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-highlight);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.meeting-audio h4 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.btn-download-audio {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.btn-download-audio:hover {
  background: var(--primary-hover);
}

/* ==================== 搜尋結果 ==================== */

.search-results-container h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.search-result-item {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.result-type-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.result-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.result-title {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.result-snippet {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.btn-view-result {
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-view-result:hover {
  background: var(--primary-hover);
}

/* ==================== 響應式設計 ==================== */

@media (max-width: 768px) {
  .meeting-timeline {
    padding-left: 2rem;
  }

  .meeting-timeline::before {
    left: 0.5rem;
  }

  .meeting-card::before {
    left: -1.75rem;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.875rem;
  }

  .modal-body {
    padding: 1rem;
    max-height: 60vh;
  }

  .transcript-content,
  .summary-content {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

/* ==================== Print 樣式 ==================== */

@media print {
  .main-header,
  .main-footer,
  .search-section,
  .btn-view-detail,
  .btn-close-modal {
    display: none;
  }

  .meeting-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .meeting-timeline::before,
  .meeting-card::before {
    display: none;
  }
}
