/* archive_board.css - 아카이브/도서관 실시간 모니터링 보드 전용 스타일 */

.archive-board-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--vc-black-88);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--vc-base) var(--vc-ease);
  pointer-events: none;
}

.archive-board-overlay.on {
  opacity: 1;
  pointer-events: auto;
}

.archive-board-container {
  width: 90%;
  max-width: 1100px;
  height: 85%;
  max-height: 850px;
  background: var(--vc-surface);
  border: 1px solid var(--vc-white-08);
  border-radius: var(--vc-r-6);
  box-shadow: var(--vc-elev-3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform var(--vc-base) var(--vc-ease);
}

.archive-board-overlay.on .archive-board-container {
  transform: scale(1);
}

/* Header */
.ab-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--vc-white-05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ab-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ab-icon-wrapper {
  color: var(--vc-purple);
  display: flex;
  align-items: center;
}

.ab-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--vc-text);
  letter-spacing: 0;
}

.ab-subtitle {
  font-size: 0.85rem;
  color: var(--vc-text-2);
  margin-top: 4px;
}

.ab-close-btn {
  background: transparent;
  border: none;
  color: var(--vc-text-2);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
}

.ab-close-btn:hover {
  background: var(--vc-white-05);
  color: var(--vc-text);
}

/* Scrollable Content */
.ab-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* 1. Progress Metric Panel */
.ab-metric-panel {
  background: var(--vc-white-02);
  border: 1px solid var(--vc-white-04);
  border-radius: var(--vc-r-5);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ab-metric-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.ab-progress-pct {
  font-size: 3rem;
  font-weight: 800;
  color: var(--vc-purple);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 0 20px var(--vc-purple-30);
}

.ab-counts {
  text-align: right;
  font-size: 0.95rem;
  color: var(--vc-text-2);
}

.ab-counts strong {
  color: var(--vc-text);
}

/* Neon Glow Progress Bar */
.ab-progress-bar-bg {
  width: 100%;
  height: 12px;
  background: var(--vc-white-05);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.ab-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--vc-blue), var(--vc-purple), var(--vc-red));
  border-radius: 6px;
  box-shadow: 0 0 10px var(--vc-purple-30);
  transition: width 0.8s var(--vc-ease);
  position: relative;
}

.ab-progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--vc-white-15) 50%,
    transparent 100%
  );
  animation: barShimmer 2s infinite linear;
}

@keyframes barShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 2. Timeline Card Grid */
.ab-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--vc-text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ab-section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--vc-purple);
  border-radius: 2px;
}

.ab-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.ab-card {
  background: var(--vc-white-02);
  border: 1px solid var(--vc-white-04);
  border-radius: var(--vc-r-4);
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ab-card:hover {
  transform: translateY(-2px);
  border-color: var(--vc-purple-30);
  background: var(--vc-white-03);
}

.ab-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ab-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--vc-text);
  word-break: break-all;
  line-height: 1.4;
}

.ab-card-time {
  font-size: 0.75rem;
  color: var(--vc-text-2);
  white-space: nowrap;
}

.ab-card-summary {
  font-size: 0.85rem;
  color: var(--vc-text-2);
  line-height: 1.5;
  flex: 1;
}

.ab-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.ab-card-tag {
  font-size: 0.75rem;
  background: var(--vc-purple-10);
  color: var(--vc-purple);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--vc-purple-15);
}

/* 3. Terminal style Console Log */
.ab-console-wrapper {
  background: var(--vc-bg-deep);
  border: 1px solid var(--vc-white-05);
  border-radius: var(--vc-r-4);
  overflow: hidden;
}

.ab-console-header {
  padding: 10px 16px;
  background: var(--vc-surface);
  border-bottom: 1px solid var(--vc-white-05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ab-console-dots {
  display: flex;
  gap: 6px;
}

.ab-console-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ab-console-dots span:nth-child(1) { background: var(--vc-red); }
.ab-console-dots span:nth-child(2) { background: var(--vc-amber); }
.ab-console-dots span:nth-child(3) { background: var(--vc-green); }

.ab-console-title {
  font-family: var(--vc-mono);
  font-size: 0.75rem;
  color: var(--vc-text-2);
}

.ab-console-body {
  padding: 16px;
  max-height: 180px;
  overflow-y: auto;
  font-family: var(--vc-mono);
  font-size: 0.8rem;
  color: var(--vc-text);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}
