/* ==========================================================================
   WOLFMEDIA — RECOGNIZED INDUSTRY LEADERS DYNAMIC CREATIVE COLLAGE
   Aesthetic: Non-Uniform Asymmetric Gallery Collage (No Crop, Full Images)
   Behavior: 100% Clean Image Idle State -> Detailed HUD Overlay on Hover
   ========================================================================== */

.collab-section {
  position: relative;
  background-color: #050507;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Ambient glow accents */
.collab-ambient-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 9999px;
  filter: blur(140px);
  opacity: 0.16;
}

.collab-glow-1 {
  top: 5%;
  left: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #00CFFF 0%, transparent 70%);
}

.collab-glow-2 {
  bottom: 5%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #7B2FFF 0%, transparent 70%);
}

/* Dynamic Multi-Column Collage Layout (Non-uniform, natural heights, zero crop) */
.collab-collage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

@media (min-width: 640px) {
  .collab-collage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .collab-collage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    align-items: start;
  }

  /* Stagger columns vertically for genuine organic collage aesthetic */
  .collab-col-1 {
    padding-top: 0;
  }
  .collab-col-2 {
    padding-top: 2.75rem;
  }
  .collab-col-3 {
    padding-top: 1.25rem;
  }
}

/* Column wrappers for organic vertical flow */
.collab-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Base Collage Card */
.collab-card {
  position: relative;
  border-radius: 0.65rem;
  background-color: #0b0b0e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease;
  transform-origin: center center;
  outline: none;
}

/* Organic Asymmetrical Tilts (Collage Feel) */
.collab-tilt-left-sm {
  transform: rotate(-1.5deg);
}

.collab-tilt-right-md {
  transform: rotate(1.8deg);
}

.collab-tilt-right-sm {
  transform: rotate(0.9deg);
}

.collab-tilt-left-md {
  transform: rotate(-1.8deg);
}

/* Hover & Focus State: Straighten, Lift, and Glow */
.collab-card:hover,
.collab-card:focus-within,
.collab-card.is-active {
  transform: rotate(0deg) scale(1.035) translateY(-8px) !important;
  z-index: 35;
  border-color: rgba(0, 207, 255, 0.9);
  box-shadow: 0 25px 60px -10px rgba(0, 207, 255, 0.35),
              0 0 30px rgba(0, 0, 0, 0.95);
}

/* Image Wrapper: NO CROP, full picture shown naturally */
.collab-img-wrap {
  position: relative;
  width: 100%;
  background: #000000;
  display: block;
}

.collab-card-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: filter 0.5s ease;
}

.collab-card:hover .collab-card-img,
.collab-card:focus-within .collab-card-img {
  filter: brightness(0.9) contrast(1.06);
}

/* Minimal Corner Archive Stamp (Subtle HUD ID visible in idle state) */
.collab-stamp {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 10;
  padding: 0.2rem 0.55rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.25rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(232, 232, 232, 0.75);
  transition: all 0.3s ease;
  pointer-events: none;
}

.collab-card:hover .collab-stamp,
.collab-card:focus-within .collab-stamp {
  color: #00CFFF;
  border-color: #00CFFF;
  box-shadow: 0 0 10px rgba(0, 207, 255, 0.35);
}

/* Corner Bracket Accents (GTA HUD Aesthetic) */
.collab-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 15;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.collab-corner-tl {
  top: 8px;
  left: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.collab-corner-tr {
  top: 8px;
  right: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
  border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.collab-corner-bl {
  bottom: 8px;
  left: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  border-left: 2px solid rgba(255, 255, 255, 0.3);
}

.collab-corner-br {
  bottom: 8px;
  right: 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.collab-card:hover .collab-corner-tl,
.collab-card:focus-within .collab-corner-tl {
  border-color: #00CFFF;
  transform: translate(-2px, -2px);
}
.collab-card:hover .collab-corner-tr,
.collab-card:focus-within .collab-corner-tr {
  border-color: #00CFFF;
  transform: translate(2px, -2px);
}
.collab-card:hover .collab-corner-bl,
.collab-card:focus-within .collab-corner-bl {
  border-color: #00CFFF;
  transform: translate(-2px, 2px);
}
.collab-card:hover .collab-corner-br,
.collab-card:focus-within .collab-corner-br {
  border-color: #00CFFF;
  transform: translate(2px, 2px);
}

/* ==========================================================================
   HOVER INFORMATION OVERLAY:
   100% Hidden in idle state -> Revealed ONLY when hovering over the card
   ========================================================================== */
.collab-hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.15rem;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 8, 0) 0%,
    rgba(5, 5, 8, 0.2) 20%,
    rgba(5, 5, 8, 0.88) 65%,
    rgba(5, 5, 8, 0.98) 100%
  );
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.38s ease;
  border-radius: inherit;
}

.collab-card:hover .collab-hover-overlay,
.collab-card:focus-within .collab-hover-overlay,
.collab-card.is-active .collab-hover-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Glass Details Card Inside Hover Overlay */
.collab-hover-card {
  padding: 0.95rem 1.15rem;
  border-radius: 0.45rem;
  background: rgba(10, 10, 16, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 207, 255, 0.45);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), inset 0 0 15px rgba(0, 207, 255, 0.06);
  transform: translateY(10px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.collab-card:hover .collab-hover-card,
.collab-card:focus-within .collab-hover-card,
.collab-card.is-active .collab-hover-card {
  transform: translateY(0);
}

.collab-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  color: #00CFFF;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.collab-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background-color: #00CFFF;
  box-shadow: 0 0 6px #00CFFF;
}

.collab-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow: 0 0 10px rgba(0, 207, 255, 0.35);
}

@media (min-width: 640px) {
  .collab-name {
    font-size: 1.5rem;
  }
}

.collab-role {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  color: #F9D923;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
  margin-bottom: 0.45rem;
  display: block;
}

.collab-story {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: rgba(235, 235, 240, 0.92);
  line-height: 1.4;
  border-left: 2px solid #00CFFF;
  padding-left: 0.6rem;
  margin-top: 0.3rem;
}

.collab-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.7rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  color: rgba(232, 232, 232, 0.55);
}

.collab-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #F9D923;
  font-weight: bold;
  transition: color 0.2s ease, transform 0.2s ease;
}

.collab-card:hover .collab-cta-btn {
  color: #00CFFF;
  transform: translateX(2px);
}

/* ==========================================================================
   MOBILE BREAKPOINTS — 768px, 480px, 360px OPTIMIZATION
   ========================================================================== */
@media (max-width: 768px) {
  .collab-collage-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .collab-col {
    gap: 1.75rem;
  }

  /* Remove desktop rotations on mobile to prevent horizontal viewport overflow */
  .collab-tilt-left-sm,
  .collab-tilt-right-md,
  .collab-tilt-right-sm,
  .collab-tilt-left-md {
    transform: none !important;
  }

  .collab-card:hover,
  .collab-card:focus-within,
  .collab-card.is-active {
    transform: translateY(-4px) scale(1.01) !important;
  }

  .collab-hover-overlay {
    padding: 1rem;
    /* On mobile, semi-opaque background so text is crystal clear */
    background: linear-gradient(
      180deg,
      rgba(5, 5, 8, 0) 0%,
      rgba(5, 5, 8, 0.4) 15%,
      rgba(5, 5, 8, 0.92) 55%,
      rgba(5, 5, 8, 0.99) 100%
    );
  }

  .collab-hover-card {
    padding: 0.85rem 1rem;
  }

  .collab-name {
    font-size: clamp(1.15rem, 4.5vw, 1.35rem);
  }

  .collab-story {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .collab-cta-btn {
    min-height: 44px;
    padding: 0.5rem 0;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .collab-collage-grid {
    gap: 1.25rem;
  }

  .collab-col {
    gap: 1.25rem;
  }

  .collab-stamp {
    font-size: 0.6rem;
    padding: 0.15rem 0.45rem;
    top: 0.5rem;
    right: 0.5rem;
  }

  .collab-hover-overlay {
    padding: 0.75rem;
  }

  .collab-hover-card {
    padding: 0.75rem 0.85rem;
  }

  .collab-name {
    font-size: 1.15rem;
  }

  .collab-role {
    font-size: 0.65rem;
  }

  .collab-story {
    font-size: 0.75rem;
  }
}

@media (max-width: 360px) {
  .collab-collage-grid {
    gap: 1rem;
  }

  .collab-col {
    gap: 1rem;
  }

  .collab-hover-card {
    padding: 0.65rem 0.75rem;
  }

  .collab-name {
    font-size: 1.05rem;
  }

  .collab-story {
    font-size: 0.7rem;
    line-height: 1.4;
  }
}
