/**
 * upload.css - 上傳頁面 + Loading 頁面樣式
 */

/* Upload Page */
.upload-container {
  max-width: 600px;
  width: 100%;
  padding: 40px 20px;
  text-align: center;
}

.logo-header {
  margin-bottom: 40px;
}

.threads-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

.logo-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.logo-header .year-svg-header {
  width: 150px;
  height: 60px;
  display: block;
  margin: 0 auto;
}

.drop-zone {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  padding: 60px 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.drop-zone:hover,
.drop-zone.dragover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.upload-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.drop-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.drop-subtext {
  font-size: 14px;
  color: #666666;
}

.upload-disclaimer {
  margin-top: 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.instructions {
  margin-top: 40px;
  text-align: left;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

.instructions p {
  font-size: 14px;
  font-weight: 600;
  color: #888888;
  margin-bottom: 12px;
}

.instructions ol {
  padding-left: 20px;
  color: #666666;
  font-size: 13px;
  line-height: 1.8;
}

/* Loading Page */
.loading-container {
  text-align: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 24px;
}

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

#loading-text {
  font-size: 16px;
  color: #888888;
  margin-bottom: 24px;
}

.progress-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #FFFFFF;
  transition: width 0.3s ease;
}

/* Upload Buttons */
.upload-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.upload-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.upload-btn svg {
  width: 20px;
  height: 20px;
}

.upload-btn-primary {
  background: #FFFFFF;
  color: #000000;
}

.upload-btn-primary:hover {
  background: #E0E0E0;
  transform: translateY(-2px);
}

.upload-btn-secondary {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.upload-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

/* Upload Modal */
.upload-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.upload-modal.active {
  display: flex;
  opacity: 1;
}

.upload-modal-content {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 320px;
}

.upload-modal-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
  color: #888;
}

.upload-modal-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 20px 16px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-modal-btn:last-child {
  margin-bottom: 0;
}

.upload-modal-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.upload-modal-btn-primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.upload-modal-btn-primary:hover {
  background: #e0e0e0;
  border-color: #e0e0e0;
}

.upload-modal-btn-primary .upload-modal-desc {
  color: #666;
}

.upload-modal-btn svg {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  opacity: 0.8;
}

.upload-modal-btn span:first-of-type {
  font-size: 15px;
  font-weight: 600;
}

.upload-modal-desc {
  font-size: 12px;
  color: #666;
  font-weight: 400;
}

/* Mobile RWD */
@media (max-width: 480px) {
  .upload-buttons {
    flex-direction: column;
  }

  .upload-btn {
    width: 100%;
    justify-content: center;
  }

  .drop-zone {
    padding: 40px 20px;
  }
}
