/* Tests Page Styles */

/* Active navigation link */
.nav-link.active {
  color: var(--mio-gold);
  position: relative;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--mio-gold);
  border-radius: 1px;
}

/* Tests Hero Section */
.tests-hero-section {
  background: linear-gradient(135deg, var(--night-blue) 0%, #1a242e 100%);
  padding: 8rem 0 6rem 0;
  position: relative;
  overflow: hidden;
}

.tests-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  background-size: 4px 4px;
  opacity: 0.03;
  pointer-events: none;
}

.tests-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.tests-hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: heroContentFadeIn 1s ease-out 0.3s forwards;
}

@keyframes heroContentFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tests-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.tests-hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.tests-hero-cta {
  background: linear-gradient(135deg, var(--mio-gold), #d4b771);
  color: var(--night-blue);
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease, transform 0.2s ease-out;
  box-shadow: 0 6px 20px rgba(199, 161, 91, 0.4);
  font-family: 'Montserrat', sans-serif;
}

.tests-hero-cta:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(199, 161, 91, 0.5);
  background: linear-gradient(135deg, #d4b771, var(--mio-gold));
}

.tests-hero-cta:active {
  transform: scale(0.98);
}

.tests-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateX(50px);
  animation: heroImageFadeIn 1s ease-out 0.6s forwards;
}

@keyframes heroImageFadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-detective-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: detectiveFloat 4s ease-in-out infinite;
}

@keyframes detectiveFloat {
  0%, 100% {
    transform: translateY(0px) rotate(-1deg);
  }
  50% {
    transform: translateY(-15px) rotate(1deg);
  }
}

/* Tests Grid Section */
.tests-grid-section {
  background-color: var(--night-blue);
  padding: 6rem 0 4rem 0;
}

.tests-grid-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tests-grid-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 1rem;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.tests-grid-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease 0.2s;
}

.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.test-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(199, 161, 91, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease, transform 0.2s ease-out;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
}

.test-card:hover {
  transform: scale(1.03) translateY(-5px);
  border-color: rgba(199, 161, 91, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(199, 161, 91, 0.1);
}

.test-card.featured {
  border: 2px solid var(--mio-gold);
  background: rgba(199, 161, 91, 0.05);
}

.test-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--mio-gold), #d4b771);
}

.test-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.test-icon {
  width: 60px;
  height: 60px;
  background: rgba(199, 161, 91, 0.1);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.test-card:hover .test-icon {
  background: rgba(199, 161, 91, 0.2);
  transform: scale(1.1);
}

.test-badge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}

.test-badge.premium {
  background: linear-gradient(135deg, var(--mio-gold), #d4b771);
  color: var(--night-blue);
}

.test-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.test-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.test-features {
  margin-bottom: 1.5rem;
}

.test-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.test-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
}

.test-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mio-gold);
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.test-card-button {
  width: 100%;
  background: transparent;
  border: 2px solid var(--mio-gold);
  color: var(--mio-gold);
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease, transform 0.2s ease-out;
  font-family: 'Montserrat', sans-serif;
}

.test-card-button:hover {
  background: var(--mio-gold);
  color: var(--night-blue);
  transform: scale(1.02);
}

.test-card-button:active {
  transform: scale(0.98);
}

.test-card-button.premium {
  background: linear-gradient(135deg, var(--mio-gold), #d4b771);
  color: var(--night-blue);
  border: none;
}

.test-card-button.premium:hover {
  background: linear-gradient(135deg, #d4b771, var(--mio-gold));
}

/* How Tests Work Section */
.how-tests-work-section {
  background-color: #202938;
  padding: 4rem 0 6rem 0;
}

.how-tests-work-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.how-tests-work-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 4rem;
}

.how-tests-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.how-tests-work-step {
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s ease;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--mio-gold), #d4b771);
  color: var(--night-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem auto;
  box-shadow: 0 8px 25px rgba(199, 161, 91, 0.3);
}

.step-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.step-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

/* Tests CTA Section */
.tests-cta-section {
  background: linear-gradient(135deg, var(--night-blue) 0%, #1a242e 100%);
  padding: 8rem 0;
  text-align: center;
  position: relative;
}

.tests-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  background-size: 4px 4px;
  opacity: 0.03;
  pointer-events: none;
}

.tests-cta-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.tests-cta-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.tests-cta-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.tests-cta-button {
  background: linear-gradient(135deg, var(--mio-gold), #d4b771);
  color: var(--night-blue);
  border: none;
  padding: 1.2rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease, transform 0.2s ease-out;
  box-shadow: 0 8px 25px rgba(199, 161, 91, 0.4);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 2rem;
}

.tests-cta-button:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(199, 161, 91, 0.5);
  background: linear-gradient(135deg, #d4b771, var(--mio-gold));
}

.tests-cta-button:active {
  transform: scale(0.98);
}

.tests-cta-guarantee {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .tests-grid-section {
    padding: 4rem 0 3rem 0;
  }
  
  .tests-grid-title {
    font-size: 2.5rem;
  }
  
  .tests-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .how-tests-work-section {
    padding: 3rem 0 4rem 0;
  }
  
  .how-tests-work-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .how-tests-work-title {
    font-size: 2.5rem;
  }
  
  .tests-cta-title {
    font-size: 2.5rem;
  }
  
  .tests-cta-subtitle {
    font-size: 1.1rem;
  }
  
  .nav-link.active::after {
    bottom: -4px;
  }
}

@media (max-width: 480px) {
  .tests-grid-section {
    padding: 3rem 0 2rem 0;
  }
  
  .test-card {
    padding: 1.5rem;
  }
  
  .test-stats {
    gap: 1rem;
  }
  
  .how-tests-work-section {
    padding: 2rem 0 3rem 0;
  }
  
  .tests-cta-section {
    padding: 4rem 0;
  }
  
  .tests-grid-title,
  .how-tests-work-title,
  .tests-cta-title {
    font-size: 2rem;
  }
}