/* css/home-collections.css — Master Editorial Collections Bento Section */

.collections-bento-section {
  padding: 120px 0;
  position: relative;
  background: var(--color-bg-dark-alt);
  color: #ffffff;
  overflow: hidden;
}

/* Header Grid */
.collections-header-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: flex-end;
  margin-bottom: 60px;
}

.collections-header-title h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 300;
  color: #ffffff;
  margin-top: 12px;
}

.collections-header-title h2 em {
  font-style: italic;
  color: var(--color-accent);
  font-family: var(--font-heading);
}

.collections-header-desc p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 24px;
}

/* ── Asymmetrical Bento Grid (12 Columns) ───────── */
.collections-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* Base Bento Card */
.bento-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #0f171a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.4s ease, 
              box-shadow 0.4s ease;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-card:hover {
  transform: translateY(-8px);
  border-color: rgba(70, 156, 118, 0.4);
  box-shadow: 
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(70, 156, 118, 0.2);
}

/* Card Image Background & Zoom */
.bento-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
  filter: brightness(0.72) contrast(1.08);
}

.bento-card:hover .bento-img {
  transform: scale(1.06);
  filter: brightness(0.8) contrast(1.12);
}

/* Gradient Overlay */
.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 33, 41, 0.2) 0%,
    rgba(10, 33, 41, 0.6) 50%,
    rgba(10, 33, 41, 0.95) 100%
  );
  z-index: 2;
}

/* Floating Glass Content Overlay */
.bento-glass-content {
  position: relative;
  z-index: 10;
  padding: 32px;
  background: rgba(10, 33, 41, 0.65);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 16px;
  border-radius: 18px;
  transition: all 0.4s ease;
}

.bento-card:hover .bento-glass-content {
  background: rgba(10, 33, 41, 0.8);
  border-color: rgba(70, 156, 118, 0.4);
}

/* Bento Card Grid Spans */
/* Card 1: Feature Hero (Spans 7 cols, 2 rows) */
.bento-card-hero {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 580px;
}

.bento-card-hero .bento-glass-content {
  padding: 40px;
  margin: 24px;
}

/* Card 2: Tall Portrait (Spans 5 cols, 2 rows) */
.bento-card-tall {
  grid-column: span 5;
  grid-row: span 2;
  min-height: 580px;
}

/* Card 3: Horizontal Wide (Spans 7 cols) */
.bento-card-wide {
  grid-column: span 7;
  min-height: 380px;
}

/* Card 4: Square Accent (Spans 5 cols) */
.bento-card-square {
  grid-column: span 5;
  min-height: 380px;
}

/* Card Elements */
.bento-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(70, 156, 118, 0.14);
  border: 1px solid rgba(70, 156, 118, 0.3);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.bento-title {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 300;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 12px;
}

.bento-title em {
  font-style: italic;
  color: var(--color-accent);
  font-family: var(--font-heading);
}

.bento-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 20px;
}

.bento-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.bento-pill {
  font-size: 0.64rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 12px;
  border-radius: 20px;
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.bento-link svg {
  transition: transform 0.3s ease;
}

.bento-card:hover .bento-link svg {
  transform: translateX(6px);
}

/* ── RESPONSIVE BENTO GRID ──────────────────────── */
@media (max-width: 1024px) {
  .collections-header-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bento-card-hero,
  .bento-card-tall,
  .bento-card-wide,
  .bento-card-square {
    grid-column: span 12;
    grid-row: span 1;
    min-height: 420px;
  }
}

@media (max-width: 640px) {
  .collections-bento-section {
    padding: 80px 0;
  }
  .bento-card {
    min-height: 380px;
    border-radius: 18px;
  }
  .bento-glass-content {
    padding: 22px 18px;
    margin: 12px;
  }
  .bento-title {
    font-size: 1.4rem;
  }
}
