/* static/css/components/investment-list-grid.css */
/* Investment List Grid Component */
.investment-list-grid {
  padding: clamp(2rem, 6vw, 4rem) 0;
  padding-top: 0%;
  background: var(--bg-primary);
}

.investment-list-grid__container {
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
  grid-template-columns: 1fr;
}

/* Grid Responsive Breakpoints */
@media (min-width: 768px) {
  .investment-list-grid__container {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .investment-list-grid__container {
      grid-template-columns: repeat(3, 1fr);
  }
}

/* Investment Card - Reuse homepage styles but ensure proper grid layout */
.investment-card {
  display: flex;
  padding: clamp(0.75rem, 2vw, 1rem);
  flex-direction: column;
  align-items: center;
  gap: clamp(0.4rem, 1vw, 0.5rem);
  border-radius: clamp(1.5rem, 4vw, 2rem);
  background: #FFF;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  overflow: hidden;
  border: 2px solid transparent;
  width: 100%; /* Ensure full width in grid */
}

.investment-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px clamp(8px, 2vw, 16px) clamp(16px, 4vw, 32px) rgba(0, 0, 0, 0.15);
  text-decoration: none;
  border-color: rgba(235, 18, 96, 0.2);
}

/* Card Image */
.investment-card__image {
  border-radius: clamp(0.75rem, 2vw, 1rem);
  border: 1px solid #EB1260;
  background: #FFF;
  height: clamp(120px, 20vw, 169px);
  align-self: stretch;
  overflow: hidden;
}

.investment-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Card Content - Pink background as specified */
.investment-card__content {
  display: flex;
  padding: clamp(0.6rem, 2vw, 0.625rem);
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.6rem, 1.5vw, 0.625rem);
  align-self: stretch;
  border-radius: clamp(0.75rem, 2vw, 1rem);
  border: clamp(0.5px, 0.1vw, 0.847px) solid #EB1260;
  background: rgba(235, 18, 96, 0.15); /* Pink background as specified */
}

/* Card Header */
.investment-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
  gap: clamp(0.5rem, 2vw, 1rem);
}

.investment-card__info {
  flex: 1;
}

.investment-card__type {
  color: #040548;
  font-family: var(--font-family);
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: capitalize;
  margin: 0 0 clamp(0.25rem, 1vw, 0.375rem) 0;
}

.investment-card__subtitle {
  color: #000;
  font-family: 'Poppins', var(--font-family);
  font-size: clamp(0.625rem, 2vw, 0.75rem);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin: 0;
}

.investment-card__price {
  display: flex;
  min-width: clamp(80px, 15vw, 106px);
  height: clamp(32px, 6vw, 40px);
  padding: clamp(0.5rem, 2vw, 0.7rem) clamp(0.7rem, 2.5vw, 0.93rem);
  justify-content: center;
  align-items: center;
  border-radius: clamp(1.5rem, 5vw, 2.46rem);
  border: clamp(0.5px, 0.1vw, 0.787px) solid #040548;
  background: radial-gradient(50.91% 97.54% at 50% 2.46%, #11127C 0%, #040548 100%);
  
  color: #FFF;
  text-align: center;
  font-family: 'Poppins', var(--font-family);
  font-size: clamp(0.625rem, 2vw, 0.79rem);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Card Description */
.investment-card__description {
  color: #040548;
  font-family: 'Poppins', var(--font-family);
  font-size: clamp(0.75rem, 2.5vw, 0.875rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  align-self: stretch;
}

/* Funding Progress */
.investment-card__funding {
  align-self: stretch;
  margin: clamp(0.2rem, 1.5vw, 0.2rem) 0;
}

.investment-card__funding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem);
}

.investment-card__funding-label,
.investment-card__funding-percentage {
  color: #040548;
  font-family: 'Poppins', var(--font-family);
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.investment-card__progress-container {
  padding: clamp(2px, 0.5vw, 3px);
  background: #040548;
  border-radius: clamp(6px, 1.5vw, 8px);
  overflow: hidden;
}

.investment-card__progress-bar {
  display: flex;
  align-items: flex-start;
  align-self: stretch;
  border-radius: clamp(4px, 1vw, 6px);
  background: #040548;
  height: clamp(8px, 2vw, 12px);
  overflow: hidden;
  position: relative;
}

.investment-card__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #EB1260 0%, #FF1E6B 100%);
  transition: width 1.2s ease-out;
  width: 0%;
  border-radius: clamp(4px, 1vw, 6px);
}

/* Features Container */
.investment-card__features-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-self: stretch;
}

.investment-card__feature {
  color: #000;
  font-family: 'Poppins', var(--font-family);
  font-size: clamp(0.625rem, 2vw, 0.75rem);
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  padding: clamp(0.5rem, 1.5vw, 0.75rem) 0;
  display: flex;
  align-items: center;
  min-height: clamp(28px, 6vw, 36px);
}

.investment-card__feature-divider {
  width: 100%;
  height: 1px;
  background: rgba(4, 5, 72, 0.15);
  margin: 0;
}

/* Empty State */
.investment-list-grid__empty {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(2rem, 8vw, 4rem) 0;
}

.investment-list-grid__empty-content {
  text-align: center;
  max-width: 400px;
}

.investment-list-grid__empty-content h3 {
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.investment-list-grid__empty-content p {
  color: var(--text-secondary);
  font-family: 'Poppins', var(--font-family);
  margin-bottom: 2rem;
}

/* Theme Variants */
[data-theme="light"] .investment-card__type,
[data-theme="light"] .investment-card__description,
[data-theme="light"] .investment-card__funding-label,
[data-theme="light"] .investment-card__funding-percentage,
[data-theme="light"] .investment-card__feature {
  color: #040548;
}

[data-theme="light"] .investment-card__subtitle {
  color: #000;
}