/* Base Styles using Injected Theme Variables */
:root {
  /* Fallback values for local testing before theme injection */
  --sweater-primary: #EF5B0C;
  --sweater-secondary: #1C2828;
  --sweater-background: #F5F5F5;
  --sweater-surface: #FFFFFF;
  --sweater-text: #1C2828;
  --sweater-text-secondary: #77797B;
  --sweater-gray: #AEAEB2;
  --sweater-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sweater-font-semibold: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sweater-direction: ltr;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--sweater-font);
  background-color: var(--sweater-background);
  color: var(--sweater-text);
  margin: 0;
  padding: 16px;
  direction: var(--sweater-direction);
  min-height: 100vh;
}

/* List Container */
#charity-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/* Charity Card Item */
.charity-card {
  background-color: var(--sweater-surface);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1; /* Make cards square */
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}

.charity-card:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* Focus state for accessibility */
.charity-card:focus {
  outline: none;
  border-color: var(--sweater-primary);
}

/* Logo Image */
.charity-logo {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensure logo fits within the square */
  max-width: 120px; /* Prevent logos from becoming too huge on larger screens */
  max-height: 120px;
}
