/* Bento Grid Plugin Styles */
.bento-grid-container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 20px !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Updated grid to match React version with 3 rows and proper column distribution */
.bento-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr !important;
  grid-template-rows: 280px 240px 260px !important;
  gap: 16px !important;
  width: 100% !important;
}

/* Card Base Styles */
.bento-card {
  position: relative !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  cursor: pointer !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.bento-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.bento-card-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 20px !important;
}

.bento-card-content {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  justify-content: space-between !important;
}

/* Updated card positioning to match exact React layout */
/* Row 1 */
.bento-row-1-col-1 {
  grid-column: 1 / 3 !important;
  grid-row: 1 / 2 !important;
}

.bento-row-1-col-2 {
  grid-column: 3 / 4 !important;
  grid-row: 1 / 2 !important;
}

/* Row 2 */
.bento-row-2-col-1 {
  grid-column: 1 / 2 !important;
  grid-row: 2 / 3 !important;
}

.bento-row-2-col-2 {
  grid-column: 2 / 3 !important;
  grid-row: 2 / 3 !important;
}

.bento-row-2-col-3 {
  grid-column: 3 / 4 !important;
  grid-row: 2 / 3 !important;
}

/* Row 3 */
.bento-row-3-col-1 {
  grid-column: 1 / 2 !important;
  grid-row: 3 / 4 !important;
}

.bento-row-3-col-2 {
  grid-column: 2 / 4 !important;
  grid-row: 3 / 4 !important;
}

/* Badges */
.bento-card-badges {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
  flex-wrap: wrap !important;
}

.bento-badge {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #1a1a1a !important;
  padding: 6px 12px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Removed source badge styles since we removed author */
.bento-badge-category {
  background: #10b981 !important;
  color: white !important;
}

/* Typography */
.bento-card-title {
  color: white !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  margin: 0 0 12px 0 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

.bento-card-title a {
  color: inherit !important;
  text-decoration: none !important;
}

.bento-card-title a:hover {
  color: #60a5fa !important;
}

.bento-card-large .bento-card-title {
  font-size: 22px !important;
}

.bento-card-small .bento-card-title {
  font-size: 16px !important;
}

.bento-card-meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: auto !important;
}

.bento-card-date {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.bento-card-read-more {
  color: #60a5fa !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  text-decoration: none !important;
}

.bento-card-read-more:hover {
  color: #93c5fd !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: repeat(7, 250px) !important;
  }

  .bento-row-1-col-1,
  .bento-row-1-col-2,
  .bento-row-2-col-1,
  .bento-row-2-col-2,
  .bento-row-2-col-3,
  .bento-row-3-col-1,
  .bento-row-3-col-2 {
    grid-column: 1 / 2 !important;
  }

  .bento-row-1-col-1 {
    grid-row: 1 / 2 !important;
  }
  .bento-row-1-col-2 {
    grid-row: 2 / 3 !important;
  }
  .bento-row-2-col-1 {
    grid-row: 3 / 4 !important;
  }
  .bento-row-2-col-2 {
    grid-row: 4 / 5 !important;
  }
  .bento-row-2-col-3 {
    grid-row: 5 / 6 !important;
  }
  .bento-row-3-col-1 {
    grid-row: 6 / 7 !important;
  }
  .bento-row-3-col-2 {
    grid-row: 7 / 8 !important;
  }

  .bento-grid-container {
    padding: 16px !important;
  }

  .bento-card-overlay {
    padding: 16px !important;
  }
}

@media (max-width: 480px) {
  .bento-card-title {
    font-size: 16px !important;
  }

  .bento-card-large .bento-card-title {
    font-size: 18px !important;
  }

  .bento-card-meta {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }
}
