/* src/styles/completion-screen.css */

.completion-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: calc(100vh - env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: transparent;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  box-sizing: border-box;
}

.completion-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.completion-card {
  position: relative;
  background: rgba(45, 45, 45, 0.95);
  border: 1px solid #555;
  border-radius: 12px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.completion-header {
  text-align: center;
  margin-bottom: 30px;
}

.completion-icon {
  font-size: 48px;
  color: #2fd2a4;
  margin-bottom: 16px;
}

.completion-title {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  margin: 0 0 8px 0;
  font-family: "Ubuntu", sans-serif;
}

.completion-subtitle {
  font-size: 16px;
  color: #888888;
  margin: 0;
  font-family: "Ubuntu", sans-serif;
}

.credits-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  font-family: "Ubuntu Mono", monospace;
}

.credit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.credit-label {
  color: #888888;
  font-weight: 500;
}

.credit-value {
  color: #ffffff;
  font-weight: normal;
}

.completion-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-primary,
.btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-family: "Ubuntu", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: #2fd2a4;
  color: #000000;
}

.btn-primary:hover {
  background: #58ffd8;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #cccccc;
  border: 1px solid #555;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

@media (max-width: 768px) {
  .completion-card {
    padding: 20px 16px;
    width: 95%;
    overflow-y: auto;
  }

  .completion-title {
    font-size: 22px;
    margin: 0 0 6px 0;
  }

  .completion-icon {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .credits-section {
    gap: 8px;
    margin-bottom: 20px;
  }

  .credit-item {
    padding: 6px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .completion-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    padding: 10px 16px;
    font-size: 14px;
  }
}
