/* ==========================================================================
   PREVIEW LOCK OVERLAY SYSTEM - Premium paywall styling
   ========================================================================== */

/* Locked Section Container */
.locked-section {
  position: relative;
  pointer-events: none;
  user-select: none;
  min-height: 300px;
}

/* Blur Content Behind Lock */
.locked-section > *:not(.locked-overlay) {
  filter: blur(8px);
  opacity: 0.4;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Locked Overlay */
.locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.98) 100%
  );
  z-index: 10;
  pointer-events: all;
  padding: 20px;
}

/* Lock Card */
.locked-card {
  background: white;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 10px 40px -10px rgba(79, 70, 229, 0.2),
              0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(79, 70, 229, 0.1);
  text-align: center;
  position: relative;
}

/* Lock Icon */
.locked-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
}

/* Lock Title */
.locked-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

/* Lock Description */
.locked-description {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Lock Benefits */
.locked-benefits {
  margin: 24px 0;
  text-align: left;
}

.locked-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: #334155;
}

.locked-benefit::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #E0E7FF;
  color: #4F46E5;
  border-radius: 50%;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

/* Lock CTA Button */
.locked-cta {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: white;
  border: none;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.locked-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
}

.locked-cta:active {
  transform: translateY(0);
}

/* Lock Subtext / Sign In Link */
.locked-subtext {
  font-size: 14px;
  color: #64748b;
  margin-top: 16px;
}

.locked-signin-link {
  color: #4F46E5;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.locked-signin-link:hover {
  color: #3730A3;
  text-decoration: underline;
}

/* Preview Header Badge */
.preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEF3C7;
  color: #92400E;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.preview-badge::before {
  content: "👁️";
  font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .locked-section {
    min-height: 300px !important;
    margin-top: 24px !important;
  }

  .locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }

  .locked-card {
    max-width: 92vw;
    width: 92vw;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px 20px;
    border-radius: 16px;
    margin: 0 auto;
  }

  .locked-title {
    font-size: 20px;
  }

  .locked-description {
    font-size: 14px;
  }

  .locked-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .locked-cta {
    height: 48px;
    font-size: 15px;
  }

  .locked-benefits {
    margin: 20px 0;
  }

  .locked-benefit {
    font-size: 14px;
    padding: 8px 0;
  }
}

/* Small Mobile - Tighter Spacing */
@media (max-width: 480px) {
  .locked-section {
    min-height: 0 !important;
    height: auto !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    position: relative !important;
  }
  
  #locked-topics-placeholder,
  #locked-exam-bank-placeholder {
    display: none !important;
  }
  
  .locked-overlay {
    padding: 12px;
    position: absolute !important;
    inset: 0 !important;
    min-height: 400px;
  }
  
  .locked-card {
    padding: 20px 18px;
    border-radius: 18px;
    max-width: 94vw;
    width: min(92vw, 380px);
    margin: 0 auto;
  }
  
  .locked-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
    margin-bottom: 16px;
  }
  
  .locked-title {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .locked-description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .locked-benefits {
    margin: 18px 0;
  }

  .locked-benefit {
    font-size: 13px;
    padding: 7px 0;
  }
  
  .locked-cta {
    height: 46px;
    font-size: 15px;
  }
  
  .locked-subtext {
    font-size: 13px;
    margin-top: 14px;
  }
}
