@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
  .animation-delay-2000 {
    animation-delay: 2s;
  }
  .animation-delay-4000 {
    animation-delay: 4s;
  }
}

@keyframes blob {
  0% {
    transform: translate(0px, 0px) scale(1);
  }
  33% {
    transform: translate(30px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
  100% {
    transform: translate(0px, 0px) scale(1);
  }
}

.animate-blob {
  animation: blob 7s infinite;
}

/* Additional utility classes for the loan cards */
.loan-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .loan-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .loan-example-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
  }
}

.loan-card {
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background-color: white;
  transition: box-shadow 0.2s;
}

.loan-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.loan-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.loan-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.loan-value-highlight {
  color: #2563eb;
}

.loan-example {
  background-color: #f9fafb;
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
}

.loan-example-title {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #374151;
}

.loan-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .loan-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .loan-benefits {
    margin-bottom: 0;
  }
}

.loan-benefit {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: #4b5563;
}

.loan-benefit-icon {
  color: #10b981;
  margin-right: 0.25rem;
  width: 1rem;
  height: 1rem;
}

.loan-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #2563eb;
  color: white;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s;
  font-size: 0.875rem;
}

.loan-button:hover {
  background-color: #1d4ed8;
}

.loan-button-icon {
  margin-left: 0.25rem;
  width: 1rem;
  height: 1rem;
}

/* Ultra-compact loan card styles */
.loan-card-ultra-compact {
  max-width: 320px;
  margin: 0 auto;
  border-radius: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  background-color: white;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.loan-card-ultra-compact:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.loan-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.loan-logo {
  height: 1.25rem;
}

.loan-tag {
  font-size: 0.625rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
}

.loan-info-grid-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
}

.loan-info-label {
  color: #6b7280;
  margin-bottom: 0.125rem;
}

.loan-info-value {
  font-weight: 600;
  color: #111827;
}

.loan-info-value-highlight {
  color: #2563eb;
}

.loan-example-compact {
  font-size: 0.625rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.loan-example-compact strong {
  font-weight: 500;
}

.loan-example-compact .highlight {
  color: #2563eb;
  font-weight: 600;
}

.loan-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.loan-benefits-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.loan-benefit-compact {
  display: flex;
  align-items: center;
  font-size: 0.625rem;
  color: #4b5563;
}

.loan-benefit-icon-compact {
  width: 0.75rem;
  height: 0.75rem;
  color: #10b981;
  margin-right: 0.125rem;
}

.loan-button-compact {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: #2563eb;
  color: white;
  border-radius: 0.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.loan-button-compact:hover {
  background-color: #1d4ed8;
}

.loan-button-icon-compact {
  width: 0.75rem;
  height: 0.75rem;
  margin-left: 0.25rem;
}

@media (min-width: 768px) {
  .loan-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
  }
}

