/**
 * The Experience Section Styles
 * Elegant full-width image section with centered text overlay
 * 
 * @package TablyClub
 */

/* ========================================
   THE EXPERIENCE SECTION
   ======================================== */

.tc-the-experience {
  position: relative;
  padding: 0;
  margin: 0;
  overflow: hidden;
  min-height: 100vh; /* Fullscreen */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Smooth gradient fade from Hero - seamless connection */
.tc-the-experience::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 25vh;
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 1) 0%,
    rgba(13, 13, 13, 0.8) 30%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Smooth gradient fade to next section - seamless transition */
.tc-the-experience::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20vh;
  background: linear-gradient(
    to top,
    rgba(13, 13, 13, 1) 0%,
    rgba(13, 13, 13, 0.8) 35%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Dark theme - consistent with theme background */
.tc-theme-dark .tc-the-experience::before {
  background: linear-gradient(
    to bottom,
    rgba(13, 13, 13, 1) 0%,
    rgba(13, 13, 13, 0.7) 35%,
    transparent 100%
  );
}

.tc-theme-dark .tc-the-experience::after {
  background: linear-gradient(
    to top,
    rgba(13, 13, 13, 1) 0%,
    rgba(13, 13, 13, 0.7) 35%,
    transparent 100%
  );
}

/* Light theme - subtle fade */
.tc-theme-light .tc-the-experience::before {
  background: linear-gradient(
    to bottom,
    rgba(255, 249, 243, 0.9) 0%,
    rgba(255, 249, 243, 0.6) 30%,
    transparent 100%
  );
}

.tc-theme-light .tc-the-experience::after {
  background: linear-gradient(
    to top,
    rgba(255, 249, 243, 0.9) 0%,
    rgba(255, 249, 243, 0.6) 35%,
    transparent 100%
  );
}

.tc-the-experience__wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.tc-the-experience__image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.tc-the-experience__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s ease;
}

.tc-the-experience__wrapper:hover .tc-the-experience__image {
  transform: scale(1.05);
}

.tc-the-experience__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

/* Dark theme - VERY dark overlay for white text contrast */
.tc-theme-dark .tc-the-experience__overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.90) 100%
  );
}

.tc-the-experience__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 90%;
  max-width: 800px;
  padding: 2rem;
}

.tc-the-experience__title {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  margin-bottom: 2rem;
  line-height: 1.1;
  text-shadow: 
    0 2px 10px rgba(0, 0, 0, 0.8),
    0 4px 20px rgba(0, 0, 0, 0.6);
  animation: fadeInUp 0.8s ease-out;
  color: var(--tc-color-2, #ffffff); /* Use theme color or white fallback */
  letter-spacing: -0.02em;
}

.tc-the-experience__text {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
  text-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.9),
    0 3px 15px rgba(0, 0, 0, 0.7);
  animation: fadeInUp 0.8s ease-out 0.2s both;
  color: var(--tc-color-2, #ffffff); /* Use theme color or white fallback */
  max-width: 700px;
  margin: 0 auto;
}

/* Dark theme - FORCE white text with ultra-strong shadows */
.tc-theme-dark .tc-the-experience__title {
  color: #ffffff !important;
  text-shadow: 
    0 3px 15px rgba(0, 0, 0, 1),
    0 6px 30px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(0, 0, 0, 0.5);
}

.tc-theme-dark .tc-the-experience__text {
  color: #ffffff !important;
  text-shadow: 
    0 3px 12px rgba(0, 0, 0, 1),
    0 5px 25px rgba(0, 0, 0, 0.8);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .tc-the-experience {
    min-height: 100vh;
  }
  
  /* Ensure bottom gradient is visible on mobile */
  .tc-the-experience::after {
    height: 25vh;
    background: linear-gradient(
      to top,
      rgba(13, 13, 13, 1) 0%,
      rgba(13, 13, 13, 0.9) 40%,
      transparent 100%
    );
  }
  
  .tc-theme-dark .tc-the-experience::after {
    background: linear-gradient(
      to top,
      rgba(13, 13, 13, 1) 0%,
      rgba(13, 13, 13, 0.85) 40%,
      transparent 100%
    );
  }
  
  .tc-theme-light .tc-the-experience::after {
    background: linear-gradient(
      to top,
      rgba(255, 249, 243, 1) 0%,
      rgba(255, 249, 243, 0.8) 40%,
      transparent 100%
    );
  }
  
  .tc-the-experience__content {
    width: 90%;
    padding: 2rem 1.5rem;
  }
  
  .tc-the-experience__title {
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 8vw, 3.5rem);
  }
  
  .tc-the-experience__text {
    font-size: clamp(1.125rem, 4vw, 1.375rem);
  }
}

@media (max-width: 480px) {
  /* Stronger bottom gradient on small mobile */
  .tc-the-experience::after {
    height: 30vh;
    background: linear-gradient(
      to top,
      rgba(13, 13, 13, 1) 0%,
      rgba(13, 13, 13, 0.95) 50%,
      transparent 100%
    );
  }
  
  .tc-theme-dark .tc-the-experience::after {
    background: linear-gradient(
      to top,
      rgba(13, 13, 13, 1) 0%,
      rgba(13, 13, 13, 0.9) 50%,
      transparent 100%
    );
  }
  
  .tc-theme-light .tc-the-experience::after {
    background: linear-gradient(
      to top,
      rgba(255, 249, 243, 1) 0%,
      rgba(255, 249, 243, 0.85) 50%,
      transparent 100%
    );
  }
  
  .tc-the-experience__content {
    width: 95%;
    padding: 1.5rem 1rem;
  }
  
  .tc-the-experience__title {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}
