/* ============================================ */
/* Shared Archive Styles (Mobile-First) */
/* Used by: archives.css, archive-details.css */
/* ============================================ */

/* Individual Card */
.archive-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 1px solid #D9D9D9;
  border-radius: 0.5rem;
  padding: 1rem;
}

.archive-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  color: #1E1E1E;
  margin: 0 0 1rem 0;
}

/* Card Content - Single Column on Mobile */
.archive-card-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  flex-grow: 1;
}

/* Archive Details */
.archive-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.archive-detail {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.archive-detail-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  color: #757575;
}

.archive-detail-value {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: #1E1E1E;
}

/* Indicators */
.archive-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.archive-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.archive-indicator-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Checkmark Icon (Yes) */
.archive-indicator--yes .archive-indicator-icon::before {
  content: '';
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2328a745' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Dash Icon (No) */
.archive-indicator--no .archive-indicator-icon::before {
  content: '';
  width: 1rem;
  height: 2px;
  background-color: #757575;
  border-radius: 1px;
}

.archive-indicator-label {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: #1E1E1E;
}

.archive-indicator--no .archive-indicator-label {
  color: #757575;
}

/* Card Button */
.archive-card-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #DDEEFF;
  border: 1px solid #3366CC;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  color: #1E1E1E;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  margin-top: 1rem;
}

.archive-card-button:hover {
  background: #CCE5FF;
  border-color: #2255AA;
  color: #1E1E1E;
  text-decoration: none;
}

.archive-card-button:focus {
  outline: 2px solid #3366CC;
  outline-offset: 2px;
}

/* Loading State */
.archive-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 1rem;
  max-width: 995px;
  margin: 0 auto;
}

.archive-loading[aria-busy="true"] {
  display: flex;
}

.archive-loading-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid #D9D9D9;
  border-top-color: #3366CC;
  border-radius: 50%;
  animation: archive-spin 0.8s linear infinite;
}

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

.archive-loading-text {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #757575;
}

/* Empty State */
.archive-empty,
.archive-error {
  text-align: center;
  padding: 3rem 1rem;
  max-width: 995px;
  margin: 0 auto;
}

.archive-empty[hidden],
.archive-error[hidden] {
  display: none;
}

.archive-empty p,
.archive-error p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: #757575;
  margin: 0;
}

.archive-error p {
  color: #dc3545;
}

/* ============================================ */
/* Tablet (768px and up) */
/* ============================================ */
@media (min-width: 768px) {
  .archive-card {
    padding: 1.25rem;
  }

  .archive-card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .archive-card-details {
    gap: 0.75rem;
  }

  .archive-card-info {
    gap: 0.5rem;
  }
}

/* ============================================ */
/* Desktop (992px and up) */
/* ============================================ */
@media (min-width: 992px) {
  .archive-card {
    padding: 1.5rem;
  }

  .archive-card-title {
    font-size: 1.5rem;
  }
}
