/* ==========================================================================
   Collaborators Page Styles - Matching Home Page Aesthetic
   ========================================================================== */

/* Page background with gradient and fairy lights */
body {
  background: linear-gradient(
    to bottom,
    var(--bg-deep, #060606) 0%,
    #2d1230 15%,
    #2d1230 85%,
    var(--bg-deep, #060606) 100%
  ) !important;
  min-height: 100vh;
  position: relative;
}

/* Fairy light effects */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 8% 25%, rgba(189, 154, 0, 0.35) 0%, transparent 6%),
    radial-gradient(circle at 92% 35%, rgba(189, 154, 0, 0.3) 0%, transparent 8%),
    radial-gradient(circle at 35% 55%, rgba(189, 154, 0, 0.25) 0%, transparent 5%),
    radial-gradient(circle at 75% 70%, rgba(189, 154, 0, 0.3) 0%, transparent 7%),
    radial-gradient(circle at 20% 80%, rgba(189, 154, 0, 0.28) 0%, transparent 6%);
  z-index: 0;
  pointer-events: none;
  animation: floatGlow1 12s ease-in-out infinite;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 65% 20%, rgba(189, 154, 0, 0.28) 0%, transparent 7%),
    radial-gradient(circle at 18% 45%, rgba(189, 154, 0, 0.32) 0%, transparent 6%),
    radial-gradient(circle at 85% 55%, rgba(189, 154, 0, 0.25) 0%, transparent 5%),
    radial-gradient(circle at 50% 85%, rgba(189, 154, 0, 0.3) 0%, transparent 8%);
  z-index: 0;
  pointer-events: none;
  animation: floatGlow2 15s ease-in-out infinite;
}

/* Floating glow animations */
@keyframes floatGlow1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(20px, -15px); }
  50% { transform: translate(-10px, 10px); }
  75% { transform: translate(15px, 20px); }
}

@keyframes floatGlow2 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-25px, 10px); }
  50% { transform: translate(15px, -20px); }
  75% { transform: translate(-10px, -10px); }
}

/* Ensure content is above the background effects */
.hero-section,
.collaborator-section,
.collab-cta-section,
.section-divider,
#footer-container {
  position: relative;
  z-index: 1;
}

/* Sticky navbar */
.navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.85) 100%
  ) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(189, 154, 0, 0.2);
}

/* Hide dice background */
.animated-dice,
.dice {
  display: none !important;
}

/* Override epic-body.css background pattern */
body:not(.custom-theme)::before {
  background-image: none !important;
  background:
    radial-gradient(circle at 8% 25%, rgba(189, 154, 0, 0.35) 0%, transparent 6%),
    radial-gradient(circle at 92% 35%, rgba(189, 154, 0, 0.3) 0%, transparent 8%),
    radial-gradient(circle at 35% 55%, rgba(189, 154, 0, 0.25) 0%, transparent 5%),
    radial-gradient(circle at 75% 70%, rgba(189, 154, 0, 0.3) 0%, transparent 7%),
    radial-gradient(circle at 20% 80%, rgba(189, 154, 0, 0.28) 0%, transparent 6%) !important;
  animation: floatGlow1 12s ease-in-out infinite !important;
}

body:not(.custom-theme)::after {
  background:
    radial-gradient(circle at 65% 20%, rgba(189, 154, 0, 0.28) 0%, transparent 7%),
    radial-gradient(circle at 18% 45%, rgba(189, 154, 0, 0.32) 0%, transparent 6%),
    radial-gradient(circle at 85% 55%, rgba(189, 154, 0, 0.25) 0%, transparent 5%),
    radial-gradient(circle at 50% 85%, rgba(189, 154, 0, 0.3) 0%, transparent 8%) !important;
  animation: floatGlow2 15s ease-in-out infinite !important;
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(45, 18, 48, 0.8) 50%,
    var(--bg-deep, #060606) 100%
  ),
  url("/images/party-loot-splash-alt2.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-content {
  z-index: 2;
}

.hero-title {
  font-family: "Nabla", system-ui !important;
  filter: saturate(0.7) brightness(1);
  font-size: 4rem;
  margin-bottom: 20px;
  color: #fff;
}

.hero-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 30px;
  max-width: 800px;
  color: rgba(255, 255, 255, 0.8);
}

/* Collaborator Sections */
.collaborator-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* Collaborator Image Card */
.collaborator-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  max-height: 400px;
  background: linear-gradient(
    145deg,
    rgba(30, 25, 10, 0.9),
    rgba(15, 12, 5, 0.95)
  );
  border: none;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    -6px 6px 0 rgba(189, 154, 0, 0.3),
    -7px 7px 0 rgba(138, 113, 0, 0.25);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.collaborator-image:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(189, 154, 0, 0.1),
    0 0 50px rgba(128, 26, 134, 0.5),
    -8px 8px 0 rgba(189, 154, 0, 0.4),
    -9px 9px 0 rgba(138, 113, 0, 0.35);
}

.collaborator-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
  max-height: 400px;
}

.collaborator-image:hover img {
  transform: scale(1.05);
}

.collaborator-type {
  position: absolute;
  top: 20px;
  right: -30px;
  background: linear-gradient(45deg, #bd9a00, #3d1c00);
  color: white;
  padding: 8px 30px;
  font-size: 0.85rem;
  transform: rotate(45deg);
  font-weight: 700;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  font-family: "Inter", sans-serif;
}

/* Collaborator Content */
.collaborator-content {
  padding: 30px;
}

.collaborator-name {
  font-family: "Nabla", system-ui !important;
  filter: saturate(0.7) brightness(1);
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  display: inline-block;
}

.collaborator-name::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--secondary-accent-color, #bd9a00),
    transparent
  );
}

.collaborator-bio {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
  font-family: "Inter", sans-serif;
}

.collaborator-content p strong {
  color: var(--secondary-accent-color, #bd9a00);
  font-family: "Inter", sans-serif;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    rgba(30, 25, 10, 0.9),
    rgba(15, 12, 5, 0.95)
  );
  color: var(--secondary-accent-color, #bd9a00);
  font-size: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(189, 154, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.social-link:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.social-link:hover:before {
  left: 100%;
}

.social-link:hover {
  transform: translateY(-5px);
  color: #fff;
  background: linear-gradient(45deg, #bd9a00, #3d1c00);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(189, 154, 0, 0.3);
}

/* Portfolio Preview */
.portfolio-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 30px;
}

.portfolio-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  background: linear-gradient(
    145deg,
    rgba(30, 25, 10, 0.9),
    rgba(15, 12, 5, 0.95)
  );
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.3),
    -3px 3px 0 rgba(189, 154, 0, 0.2),
    -4px 4px 0 rgba(138, 113, 0, 0.15);
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(128, 26, 134, 0.3),
    -4px 4px 0 rgba(189, 154, 0, 0.3),
    -5px 5px 0 rgba(138, 113, 0, 0.25);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover img {
  transform: scale(1.1);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 15px;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h5 {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Section Divider */
.section-divider {
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    var(--secondary-accent-color, #bd9a00),
    transparent
  );
  margin: 0;
  position: relative;
}

/* CTA Section */
.collab-cta-section {
  padding: 100px 0;
  background: linear-gradient(
    to bottom,
    var(--bg-deep, #060606) 0%,
    rgba(45, 18, 48, 0.6) 50%,
    var(--bg-deep, #060606) 100%
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}

.collab-cta-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.collab-cta-title {
  font-family: "Nabla", system-ui !important;
  filter: saturate(0.7) brightness(1);
  font-size: 3rem;
  margin-bottom: 30px;
  color: #fff;
}

.collab-cta-text {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Inter", sans-serif;
}

/* Join Form */
.join-form {
  background: linear-gradient(
    145deg,
    rgba(30, 25, 10, 0.9),
    rgba(15, 12, 5, 0.95)
  );
  border-radius: 16px;
  padding: 30px;
  border: 1px solid rgba(189, 154, 0, 0.3);
  max-width: 600px;
  margin: 0 auto;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.4),
    -6px 6px 0 rgba(189, 154, 0, 0.3),
    -7px 7px 0 rgba(138, 113, 0, 0.25);
}

.join-form .form-label {
  font-family: "Inter", sans-serif;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.join-form .form-control,
.join-form .form-select {
  background-color: rgba(30, 25, 10, 0.9) !important;
  border: 1px solid rgba(189, 154, 0, 0.3);
  color: #fff !important;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
}

.join-form .form-control:focus,
.join-form .form-select:focus {
  border-color: rgba(189, 154, 0, 0.6);
  box-shadow: 0 0 10px rgba(189, 154, 0, 0.2);
  outline: none;
}

.join-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.join-form .form-select option {
  background-color: #1a1a1a;
  color: #fff;
}

/* Floating coins - hide on collabs page */
.floating-coin {
  display: none !important;
}

/* Currency display */
.currency-display {
  margin-top: 30px;
}

.currency-icon {
  font-size: 2rem;
  margin: 0 10px;
  transition: transform 0.3s ease;
}

.currency-icon:hover {
  transform: scale(1.2) rotate(15deg);
}

.currency-icon.gold { color: #ffd700; }

.currency-icon.plat { color: #e5e4e2; }
.currency-icon.silver { color: #c0c0c0; }
.currency-icon.copper { color: #b87333; }

/* Scroll Arrow */
.scroll-arrow {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-arrow a {
  color: var(--secondary-accent-color, #bd9a00);
  transition: color 0.3s ease;
}

.scroll-arrow a:hover {
  color: #fff;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Responsive Styles */
@media (max-width: 992px) {
  .collaborator-section {
    padding: 60px 0;
  }

  .collaborator-name {
    font-size: 2rem;
  }

  .collaborator-type {
    font-size: 0.75rem;
    padding: 5px 25px;
  }

  .portfolio-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-md-1 {
    order: 1 !important;
  }

  .order-md-2 {
    order: 2 !important;
  }

  .collaborator-content {
    padding: 20px 0;
    margin-top: 30px;
  }

  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .portfolio-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .collaborator-name {
    font-size: 1.8rem;
  }

  .collaborator-bio {
    font-size: 1rem;
  }

  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .collab-cta-title {
    font-size: 2.5rem;
  }

  .collaborator-image {
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.4),
      -4px 4px 0 rgba(189, 154, 0, 0.3),
      -5px 5px 0 rgba(138, 113, 0, 0.25);
  }
}

@media (max-width: 576px) {
  .portfolio-preview {
    grid-template-columns: repeat(1, 1fr);
  }

  .collaborator-name {
    font-size: 1.6rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .social-links {
    justify-content: center;
  }

  .collab-cta-title {
    font-size: 2rem;
  }

  .join-form {
    padding: 20px;
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.4),
      -4px 4px 0 rgba(189, 154, 0, 0.3),
      -5px 5px 0 rgba(138, 113, 0, 0.25);
  }
}
