/* ===== Shared styles (copied from public/index.html <style>) ===== */
/* Paste the exact CSS from index.html’s <style> block here: */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  line-height: 1.6;
  color: #2f2f2f;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  margin-bottom: 3rem;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo {
  font-size: 3rem;
  font-weight: bold;
  color: #6d090e;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-favicon {
  width: 6rem;
  height: 6rem;
  margin-right: 0.5rem;
}

.tagline {
  font-size: 1.2rem;
  color: #2f2f2f;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-section {
  background: white;
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(109, 9, 14, 0.1);
}

.hero-title {
  font-size: 2.5rem;
  color: #6d090e;
  margin-bottom: 1rem;
  text-align: center;
}

.hero-description {
  font-size: 1.1rem;
  color: #2f2f2f;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-item {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #6d090e;
}

.feature-title {
  font-weight: bold;
  color: #6d090e;
  margin-bottom: 0.5rem;
}

.feature-description {
  color: #2f2f2f;
  font-size: 0.95rem;
}

.download-section {
  text-align: center;
  margin: 3rem 0;
}

.download-title {
  font-size: 2rem;
  color: #2f2f2f;
  margin-bottom: 1rem;
}

.download-subtitle {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background: #6d090e;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(109, 9, 14, 0.3);
  min-width: 200px;
  justify-content: center;
}

.download-btn:hover {
  background: #5a0809;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(109, 9, 14, 0.4);
}

.download-btn:active {
  transform: translateY(0);
}

.btn-icon {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
}

.note-section {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.note-title {
  color: #856404;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.note-text {
  color: #856404;
  font-size: 0.95rem;
}

.footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #dee2e6;
  color: #6c757d;
}

@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .hero-section {
    padding: 2rem;
  }

  .logo {
    font-size: 2.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .download-btn {
    width: 100%;
    max-width: 300px;
  }
}

body.delete-account {
  background: #f4f7fa;
}

body.delete-account form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

body.delete-account #deletionForm {
  /* Tile look comes from .feature-item class applied in HTML */
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
}

@media (min-width: 720px) {
  body.delete-account #deletionForm {
    grid-template-columns: auto 1fr; /* label | input */
    align-items: center;
    column-gap: 1rem;
  }
}

body.delete-account label {
  font-weight: 600;
  color: #6d090e;
}

body.delete-account input[type='email'],
body.delete-account input[type='text'] {
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  background: #fff;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  width: 100%;
}

body.delete-account input[type='email']:focus,
body.delete-account input[type='text']:focus {
  outline: none;
  border-color: #6d090e;
  box-shadow: 0 0 0 3px rgba(109, 9, 14, 0.1);
}

body.delete-account input[type='submit'] {
  grid-column: 1 / -1; /* full width row */
  justify-self: start; /* align like primary buttons on index */
  margin-top: 0.5rem;
}

body.delete-account #submittedData {
  display: none;
  margin-top: 1rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 1rem;
}

/* Destructive action button styled like primary buttons but red */
body.delete-account .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  background: #d32f2f;
  color: #fff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
  border: none;
  cursor: pointer;
}

body.delete-account .danger-button:hover {
  background: #b71c1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(183, 28, 28, 0.4);
}

body.delete-account .danger-button:active {
  transform: translateY(0);
}

body.delete-account .deletion-note {
  padding: 1rem 0; /* vertical padding */
}

body.delete-account .or-title {
  padding: 1rem 0; /* vertical padding */
}

/* Small links menu shared by pages */
.links-menu {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.links-menu a {
  color: #6d090e;
  font-weight: 600;
  text-decoration: none;
  margin: 0 0.75rem;
}

.links-menu a:hover {
  text-decoration: underline;
}

/* Support form — responsive grid and inputs/textarea look */
body.delete-account #supportForm {
  display: grid;
  grid-template-columns: 1fr; /* stack on small screens */
  gap: 0.75rem;
  margin: 1rem 0 1.5rem;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 720px) {
  body.delete-account #supportForm {
    grid-template-columns: auto 1fr; /* label | field on wider screens */
    align-items: center;
    column-gap: 1rem;
  }
}

body.delete-account #supportForm label {
  font-weight: 600;
  color: #6d090e;
}

body.delete-account #supportForm input[type='email'],
body.delete-account #supportForm textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  background: #fff;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  font-size: 16px; /* avoid iOS zoom */
  line-height: 1.4;
  min-width: 0; /* fix overflow in grid */
}

body.delete-account #supportForm input[type='email']:focus,
body.delete-account #supportForm textarea:focus {
  outline: none;
  border-color: #6d090e;
  box-shadow: 0 0 0 3px rgba(109, 9, 14, 0.1);
}

/* Textarea specifics */
body.delete-account #supportForm textarea {
  min-height: 96px;
  resize: vertical; /* allow manual resize */
  overflow: hidden; /* for smooth auto-grow via JS */
  max-height: 70vh; /* keep it usable */
}

/* Submit button behavior */
body.delete-account #supportForm input[type='submit'] {
  grid-column: 1 / -1; /* full row */
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  body.delete-account #supportForm input[type='submit'] {
    width: 100%; /* full-width button on small screens */
  }
}
