/* ClawCove - Account Deletion Web Styles */

:root {
  --primary-blue: #2E8AE5;
  --submit-green: #52C838;
  --submit-green-hover: #46B32F;
  --submit-green-active: #3CA027;
  --submit-green-disabled: #94E084;
  --text-black: #000000;
  --text-gray: #999999;
  --border-black: #000000;
  --bg-white: #FFFFFF;
  --bg-page: #F8F9FA;
  --error-red: #D32F2F;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-black);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page Container */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
}

@media (min-width: 480px) {
  .page-wrapper {
    padding: 30px 16px;
  }
}

.card-container {
  width: 100%;
  max-width: 420px;
  background-color: var(--bg-white);
  padding: 24px 18px 48px;
  min-height: 100vh;
}

@media (min-width: 480px) {
  .card-container {
    min-height: auto;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 32px 24px 40px;
  }
}

/* View Sections */
.view-section {
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}

.view-section.active {
  display: block;
  opacity: 1;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.app-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(46, 138, 229, 0.15);
}

.header-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-blue);
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-black);
  line-height: 1.3;
  margin-top: 2px;
}

/* Body Content */
.intro-text,
.submitted-intro {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-black);
  line-height: 1.45;
  margin-bottom: 16px;
}

.section-heading {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-black);
  line-height: 1.3;
  margin-bottom: 12px;
}

.notice-block,
.next-steps-block {
  margin-bottom: 24px;
}

.notice-list,
.steps-list {
  padding-left: 22px;
  margin-bottom: 0;
}

.notice-list li,
.steps-list li {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-black);
  line-height: 1.45;
  margin-bottom: 12px;
}

.notice-list li:last-child,
.steps-list li:last-child {
  margin-bottom: 0;
}

.notice-list li strong,
.steps-list li strong {
  font-weight: 500;
  color: var(--text-black);
}

/* Form Styles */
.deletion-form {
  margin-top: 8px;
}

.form-heading {
  margin-bottom: 14px;
}

.input-group {
  margin-bottom: 18px;
}

.text-input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--border-black);
  border-radius: 12px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-black);
  background-color: var(--bg-white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.text-input::placeholder {
  color: var(--text-gray);
  font-size: 14px;
  font-weight: 500;
}

.text-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(46, 138, 229, 0.15);
}

.text-input.input-error {
  border-color: var(--error-red);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.15);
}

/* Checkbox Row */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 26px;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid var(--border-black);
  border-radius: 4px;
  background-color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s, border-color 0.15s;
  margin-top: 1px;
  outline: none;
}

.custom-checkbox:focus-visible {
  box-shadow: 0 0 0 3px rgba(46, 138, 229, 0.3);
}

.custom-checkbox.checked {
  background-color: var(--submit-green);
  border-color: var(--border-black);
}

.check-icon {
  width: 16px;
  height: 16px;
  display: none;
}

.custom-checkbox.checked .check-icon {
  display: block;
}

.checkbox-label {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-black);
  line-height: 1.4;
  cursor: pointer;
}

/* Submit Button */
.submit-button {
  width: 100%;
  height: 50px;
  background-color: var(--submit-green);
  border: none;
  border-radius: 25px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s, transform 0.1s, opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.submit-button:hover:not(:disabled) {
  background-color: var(--submit-green-hover);
}

.submit-button:active:not(:disabled) {
  background-color: var(--submit-green-active);
  transform: scale(0.98);
}

.submit-button:disabled {
  background-color: var(--submit-green-disabled);
  cursor: not-allowed;
  opacity: 0.85;
}

/* Spinner Animation */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

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

/* View 2: Submitted Page */
.submitted-header {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 24px;
}

.submitted-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--primary-blue);
  line-height: 1.3;
}

.support-footer {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-black);
  line-height: 1.45;
}

.support-email-link {
  color: var(--primary-blue);
  text-decoration: underline;
  font-weight: 500;
  word-break: break-all;
}

.support-email-link:hover {
  opacity: 0.85;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: 90%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  background-color: #1F1F24;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: toastFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-item.toast-error {
  background-color: var(--error-red);
}

.toast-item.toast-success {
  background-color: #2E7D32;
}

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