
/* ==========================================================================
   Bento Grid Layout (Premium VC Aesthetic)
   ========================================================================== */

.bento-section-header {
  border-bottom: 1px solid var(--color-border-default);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.bento-section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-text-primary);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

.bento-card {
  position: relative;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border-default);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.3s ease, background-color 0.3s ease;
  min-height: 320px;
}

.bento-card:hover {
  transform: translateY(-4px);
}

/* Base Card Content Padding */
.bento-card-content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  z-index: 2;
}

/* Standard Box */
.bento-card-standard {
  grid-column: span 1;
  grid-row: span 1;
}

/* Tall Box (Spans 2 rows) - Often has image bg */
.bento-card-tall {
  grid-column: span 1;
  grid-row: span 2;
}

/* Wide Box (Spans 2 cols) */
.bento-card-wide {
  grid-column: span 2;
  grid-row: span 1;
}

/* Dark variant */
.bento-card-dark {
  background-color: #111111;
  color: #ffffff;
  border-color: transparent;
}

.bento-card-dark .bento-logo {
  filter: brightness(0) invert(1);
}

.bento-card-dark p, .bento-card-dark span, .bento-card-dark .bento-footer-label {
  color: rgba(255, 255, 255, 0.7);
}
.bento-card-dark .bento-startup-name {
  color: #ffffff;
}

/* Card Elements */
.bento-logo-wrapper {
  margin-bottom: var(--space-6);
  height: 48px;
  display: flex;
  align-items: center;
}

.bento-logo {
  max-width: 120px;
  max-height: 48px;
  object-fit: contain;
}

.bento-logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.bento-startup-name {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.bento-tagline {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  opacity: 0.7;
}

.bento-description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
  position: relative;
  z-index: 2;
}

.bento-card-dark .bento-description {
  color: rgba(255, 255, 255, 0.7);
}

.bento-footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-default);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 0.75rem;
  position: relative;
  z-index: 2;
}

.bento-card-dark .bento-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.bento-footer-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.bento-footer-label {
  font-weight: 600;
  opacity: 0.6;
}

/* Image overlay for Tall cards */
.bento-img-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.bento-card.has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2) 0%,
    rgba(0,0,0,0.6) 40%,
    rgba(0,0,0,0.95) 100%
  );
  z-index: 1;
}

.bento-card.has-bg .bento-card-content {
  justify-content: flex-end;
  color: white;
}

.bento-card.has-bg .bento-logo {
  filter: brightness(0) invert(1);
}

.bento-card.has-bg .bento-description,
.bento-card.has-bg .bento-footer,
.bento-card.has-bg .bento-footer-label,
.bento-card.has-bg .bento-tagline,
.bento-card.has-bg .bento-startup-name,
.bento-card.has-bg span {
  color: white;
  opacity: 1 !important;
}

.bento-card.has-bg .bento-footer {
  border-top-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card-tall {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 400px;
  }
}

@media (max-width: 640px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card-wide {
    grid-column: span 1;
  }
}
