/* Bleex customized design system */

:root {
  --radius: 0.75rem;
  --background: #f8f9fa;
  --foreground: #1a1a1a;
  --card: rgba(255, 255, 255, 0.95);
  --card-foreground: #1a1a1a;
  --primary: #2f9e44;
  --primary-foreground: #ffffff;
  --accent: #e8f5e9;
  --accent-foreground: #1a1a1a;
  --border: #e0e0e0;
  --ring: #2f9e44;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background-color: var(--background);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--foreground);
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}

/* Hamburger */
.menu-container {
  position: relative;
  display: inline-block;
}

.hamburger {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  background: none;
  border: none;
}

.hamburger:hover {
  background-color: var(--accent);
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--foreground);
  border-radius: 2px;
  transition: 0.3s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 130%;
  left: 0;
  background-color: var(--card);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 160px;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.dropdown-menu.open {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--card-foreground);
  font-size: 0.95rem;
  border-radius: 8px;
  margin: 0 4px;
  transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: var(--accent);
}

/* Profile */
#profile-wrapper {
  transition: transform 0.3s ease;
}

#profile-wrapper:hover {
  transform: scale(1.05);
}

#profileIMG {
  border-radius: 50%;
  object-fit: cover;
  width: 50px;
  height: 50px;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Main title */
#title {
  text-align: center;
  font-size: 3.5rem;
  margin: 1.25rem 0 2.5rem;
  color: var(--foreground);
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  #title {
    font-size: 4rem;
  }
}

/* Layout */
main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* Cards */
.card {
  background-color: var(--card);
  backdrop-filter: blur(12px);
  color: var(--card-foreground);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin: 1.25rem auto;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.card p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.75;
}

/* Arrow */
.arrow-wrapper {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

.arrowCurvy {
  width: 80px;
  height: 80px;
  transform: rotate(-45deg);
  opacity: 0.6;
}

/* Sign Up Button */
.button-container {
  text-align: center;
  margin: 2.5rem 0;
}

#signUpButton1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 20px rgba(47, 158, 68, 0.2);
  border: none;
  border-radius: 14px;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

#signUpButton1:hover {
  background-color: #237a34;
  transform: scale(1.05);
  box-shadow: 0 14px 28px rgba(47, 158, 68, 0.25);
}

.desktop-break {
  display: none;
}

@media (min-width: 640px) {
  .desktop-break {
    display: block;
  }
}

/* Donate page styles */
.subtitle {
  display: block;
  text-align: center;
  color: #666;
  font-style: italic;
  margin-bottom: 2rem;
}

.donate-container {
  background-color: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 500px;
  margin: 0 auto 4rem;
  padding: 1.75rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.875rem;
  text-align: left;
}

.tier-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.tier-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background-color: #ffffff;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 1rem 0.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.tier-btn:hover {
  border-color: var(--primary);
  background-color: var(--accent);
  transform: translateY(-3px);
}

.tier-emoji {
  font-size: 1.6rem;
}

.tier-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--foreground);
}

.tier-caption {
  font-size: 0.7rem;
  color: #888;
}

.custom-row {
  display: flex;
  gap: 0.625rem;
}

.amount-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0 1rem;
  background-color: var(--background);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.amount-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.15);
}

.currency-symbol {
  color: #999;
  font-size: 1rem;
  margin-right: 4px;
}

#customAmount {
  border: none;
  outline: none;
  padding: 0.75rem 0;
  font-size: 1rem;
  width: 100%;
  background: transparent;
  color: var(--foreground);
}

#customAmount::placeholder {
  color: #999;
}

#customDonateBtn {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.3s ease;
  white-space: nowrap;
}

#customDonateBtn:hover:not(:disabled) {
  background-color: #237a34;
  transform: translateY(-2px);
}

#customDonateBtn:disabled {
  background-color: #a8d5b0;
  cursor: not-allowed;
  opacity: 0.7;
}

#amountError {
  display: none;
  text-align: left;
  font-size: 0.85rem;
  color: #e53935;
  margin-top: 0.5rem;
}

#amountError.visible {
  display: block;
}

.thanks-note {
  margin-top: 1.5rem;
  color: #888;
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
}

/* Checklist page styles */
.checklist-container {
  background-color: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 500px;
  margin: 0 auto 4rem;
  padding: 1.75rem;
}

.add-row {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

#taskInput {
  flex: 1;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  outline: none;
  background-color: var(--background);
  color: var(--foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#taskInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 158, 68, 0.15);
}

#taskInput::placeholder {
  color: #999;
}

#addTaskBtn {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

#addTaskBtn:hover {
  background-color: #237a34;
  transform: translateY(-2px);
}

#taskList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  transition: background-color 0.2s ease;
}

.task-item:hover {
  background-color: var(--accent);
}

.task-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease;
  background-color: transparent;
}

.task-checkbox:checked {
  background-color: var(--primary);
}

.task-checkbox:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
}

.task-text {
  flex: 1;
  font-size: 1rem;
  color: var(--foreground);
  word-break: break-word;
}

.task-text.done {
  text-decoration: line-through;
  color: #aaa;
}

.delete-btn {
  background: none;
  border: none;
  color: #bbb;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.2s ease;
}

.delete-btn:hover {
  color: #ff4d4d;
}

#emptyState {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 1.25rem 0;
}

#progressNote {
  text-align: center;
  margin-top: 1.25rem;
  color: #888;
  font-size: 0.9rem;
}

/* Profile page styles */
#return {
  display: inline-block;
  text-decoration: none;
  color: #666;
  margin-bottom: 1.25rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

#return:hover {
  color: #333;
}

.profile-container {
  background-color: var(--card);
  backdrop-filter: blur(12px);
  max-width: 500px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-container h1 {
  margin-top: 0;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 8px;
  font-size: 2.5rem;
  color: var(--foreground);
  margin-bottom: 1.875rem;
}

#image-preview {
  display: none;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  margin-bottom: 1.25rem;
}

.upload-section {
  width: 100%;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.upload-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

input[type="file"] {
  display: none;
}

.upload-btn-label {
  display: inline-block;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 12px rgba(47, 158, 68, 0.2);
  width: 80%;
  box-sizing: border-box;
}

.upload-btn-label:hover {
  background-color: #237a34;
  transform: translateY(-2px);
}

.file-name {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  word-break: break-all;
}

.error-msg {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #ff4d4d;
}

.reset-link {
  display: inline-block;
  margin-top: 0.625rem;
  font-size: 0.85rem;
  color: #999;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.reset-link:hover {
  color: #666;
}

.reset-link[hidden] {
  display: none;
}
