/* Donations Page Specific Styles */

/* Summary Cards */
.donations-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.summary-card {
  background: linear-gradient(135deg, #fbaf33 0%, #e89d1a 100%);
  color: #1d1d1a;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(251, 175, 51, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
}

.summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(251, 175, 51, 0.4);
}

/* Special styling for the request card */
.request-card {
  background: linear-gradient(135deg, #1d1d1a 0%, #2a2a27 100%);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(29, 29, 26, 0.3);
}

.request-card:hover {
  box-shadow: 0 20px 50px rgba(29, 29, 26, 0.4);
}

.request-card i {
  color: #fbaf33;
}

.summary-card i {
  font-size: 2.5rem;
  color: #1d1d1a;
  flex-shrink: 0;
}

.summary-content {
  text-align: left;
  flex: 1;
}

.summary-content h3 {
  font-family: "Eurostile Extended", Arial Black, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.summary-content p {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Request button styling */
.request-btn {
  background: #fbaf33;
  color: #1d1d1a;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid #fbaf33;
}

.request-btn:hover {
  background: #ffffff;
  color: #1d1d1a;
  border-color: #ffffff;
  transform: scale(1.05);
}

/* Loading and Error States */
.loading-container,
.error-container {
  text-align: center;
  padding: 60px 20px;
  margin: 40px 0;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f0f0f0;
  border-top: 5px solid #fbaf33;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-message {
  background: #fff5f5;
  border: 2px solid #fed7d7;
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  margin: 0 auto;
}

.error-message i {
  font-size: 3rem;
  color: #e53e3e;
  margin-bottom: 20px;
}

.error-message h3 {
  font-family: "Eurostile Extended", Arial Black, sans-serif;
  color: #1d1d1a;
  font-size: 1.5rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-weight: 900;
}

.error-message p {
  font-family: "Open Sans", sans-serif;
  color: #666;
  margin: 0;
}

/* Enhanced Table Styles */
.donations-table-container {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(29, 29, 26, 0.1);
  border: 1px solid #f0f0f0;
  margin: 40px 0;
}

.donations-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.donations-table th {
  background: linear-gradient(135deg, #1d1d1a 0%, #2a2a27 100%);
  color: #ffffff;
  padding: 20px 15px;
  text-align: left;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 3px solid #fbaf33;
}

.donations-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

.donations-table th.sortable:hover {
  background: linear-gradient(135deg, #2a2a27 0%, #1d1d1a 100%);
}

.donations-table th i {
  margin-left: 8px;
  color: #fbaf33;
  font-size: 0.8rem;
}

.donations-table td {
  padding: 20px 15px;
  border-bottom: 1px solid #f0f0f0;
  font-family: "Open Sans", sans-serif;
  vertical-align: top;
}

.donations-table tr:hover {
  background-color: rgba(251, 175, 51, 0.05);
}

.donations-table tr:last-child td {
  border-bottom: none;
}

/* Table Cell Specific Styles */
.date-cell {
  font-weight: 600;
  color: #666;
  white-space: nowrap;
  min-width: 120px;
}

.organisation-cell strong {
  font-family: "Open Sans", sans-serif;
  color: #1d1d1a;
  font-weight: 700;
  font-size: 1rem;
}

.amount-cell {
  text-align: right;
  min-width: 120px;
}

.amount {
  font-family: "Eurostile Extended", Arial Black, sans-serif;
  color: #fbaf33;
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.description-cell {
  max-width: 300px;
  position: relative;
}

.description-text {
  color: #666;
  line-height: 1.5;
}

.expand-btn {
  background: none;
  border: none;
  color: #fbaf33;
  cursor: pointer;
  margin-left: 10px;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.expand-btn:hover {
  background: rgba(251, 175, 51, 0.1);
  color: #1d1d1a;
}

.full-description {
  color: #666;
  line-height: 1.5;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

/* Info Card Sections */
.funding-application,
.support-section {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  margin: 50px 0;
  box-shadow: 0 15px 40px rgba(29, 29, 26, 0.1);
  border: 1px solid #f0f0f0;
  text-align: center;
}

.funding-application {
  border-top: 5px solid #fbaf33;
}

.support-section {
  border-top: 5px solid #1d1d1a;
}

.funding-application h3,
.support-section h3 {
  font-family: "Eurostile Extended", Arial Black, sans-serif;
  color: #1d1d1a;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 900;
}

.funding-application p,
.support-section > p {
  font-family: "Open Sans", sans-serif;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Support Options */
.support-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 30px 0;
}

.support-option {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 25px;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.support-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(29, 29, 26, 0.1);
  border-color: #fbaf33;
}

.support-option i {
  font-size: 2rem;
  color: #fbaf33;
  margin-bottom: 15px;
  display: block;
}

.support-option h4 {
  font-family: "Open Sans", sans-serif;
  color: #1d1d1a;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.support-option p {
  font-family: "Open Sans", sans-serif;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Button Styles */
.btn-primary {
  background: #fbaf33;
  color: #1d1d1a;
  padding: 15px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid #fbaf33;
}

.btn-primary:hover {
  background: #1d1d1a;
  color: #fbaf33;
  border-color: #fbaf33;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(251, 175, 51, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .donations-table-container {
    overflow-x: auto;
  }

  .donations-table {
    min-width: 700px;
  }
}

@media (max-width: 768px) {
  .summary-card {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .summary-content {
    text-align: center;
  }

  .donations-table th,
  .donations-table td {
    padding: 15px 10px;
  }

  .description-cell {
    max-width: 200px;
  }

  .support-options {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .funding-application,
  .support-section {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .donations-summary {
    grid-template-columns: 1fr;
  }

  .donations-table {
    min-width: 600px;
  }

  .donations-table th,
  .donations-table td {
    padding: 12px 8px;
    font-size: 0.9rem;
  }

  .summary-card {
    padding: 25px 20px;
  }
}
