/**
 * Teaser Overlay Component Styles
 * For anonymous users - shows value proposition with locked preview
 * Mobile-first responsive design
 */

/* =============================================================================
   Teaser Container
============================================================================= */

.teaser-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  text-align: center;
  min-height: 400px;
  background: linear-gradient(135deg, var(--color-bg-page) 0%, var(--color-bg-hover) 100%);
  border-radius: var(--radius-lg);
  position: relative;
}

@media (min-width: 768px) {
  .teaser-container {
    padding: 48px 24px;
  }
}

/* =============================================================================
   Teaser Icon
============================================================================= */

.teaser-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.9;
  animation: teaser-bounce 2s ease-in-out infinite;
}

@media (min-width: 768px) {
  .teaser-icon {
    font-size: 64px;
    margin-bottom: 24px;
  }
}

@keyframes teaser-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* =============================================================================
   Teaser Headlines
============================================================================= */

.teaser-headline {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 8px 0;
  line-height: 1.3;
  max-width: 500px;
}

@media (min-width: 768px) {
  .teaser-headline {
    font-size: 28px;
    margin-bottom: 12px;
  }
}

.teaser-description {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 0 0 24px 0;
  max-width: 450px;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .teaser-description {
    font-size: 16px;
    margin-bottom: 32px;
  }
}

/* =============================================================================
   Teaser Preview (Sample Content)
============================================================================= */

.teaser-preview {
  width: 100%;
  max-width: 700px;
  margin-bottom: 24px;
  position: relative;
}

@media (min-width: 768px) {
  .teaser-preview {
    margin-bottom: 32px;
  }
}

.teaser-locked {
  position: relative;
  opacity: 0.5;
  pointer-events: none;
  filter: blur(2px);
}

.teaser-locked::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.8) 100%);
  z-index: 5;
}

/* Lock badge on preview */
.teaser-lock-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
}

.teaser-lock-badge::before {
  content: "🔒";
}

/* =============================================================================
   Teaser CTA Buttons
============================================================================= */

.teaser-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
}

@media (min-width: 480px) {
  .teaser-cta {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
}

.teaser-cta-primary {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: var(--touch-target-min, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.teaser-cta-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.teaser-cta-secondary {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: var(--touch-target-min, 44px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.teaser-cta-secondary:hover {
  background: var(--color-bg-hover);
  border-color: var(--color-border-hover, var(--color-border));
  color: var(--color-text);
}

/* =============================================================================
   Sample Question Cards (for Questions Teaser)
============================================================================= */

.teaser-sample-questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .teaser-sample-questions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.teaser-sample-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
}

.teaser-sample-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.teaser-sample-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.teaser-sample-tag {
  font-size: 11px;
  padding: 4px 8px;
  background: var(--color-bg-hover);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}

/* =============================================================================
   Sample Analytics (for Progress Teaser)
============================================================================= */

.teaser-sample-analytics {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 640px) {
  .teaser-sample-analytics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.teaser-kpi-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.teaser-kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.teaser-kpi-label {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =============================================================================
   Sample Sessions List (for Progress Teaser)
============================================================================= */

.teaser-sample-sessions {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.teaser-session-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 13px;
}

.teaser-session-row:last-child {
  border-bottom: none;
}

.teaser-session-question {
  color: var(--color-text);
  font-weight: 500;
}

.teaser-session-score {
  color: var(--color-success);
  font-weight: 600;
}

/* =============================================================================
   Sample Jobs (for Job Tracker Teaser)
============================================================================= */

.teaser-sample-jobs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.teaser-job-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}

.teaser-job-icon {
  font-size: 24px;
  background: var(--color-primary-bg);
  padding: 8px;
  border-radius: var(--radius);
}

.teaser-job-info {
  flex: 1;
}

.teaser-job-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 4px 0;
}

.teaser-job-company {
  font-size: 12px;
  color: var(--color-text-muted);
}

.teaser-job-status {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.teaser-job-status.applied {
  background: #FEF3C7;
  color: #92400E;
}

.teaser-job-status.interview {
  background: #D1FAE5;
  color: #065F46;
}

/* =============================================================================
   Sample Resume (for Resume Builder Teaser)
============================================================================= */

.teaser-sample-resume {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.teaser-resume-header {
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.teaser-resume-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 4px 0;
}

.teaser-resume-title {
  font-size: 13px;
  color: var(--color-primary);
  margin: 0;
}

.teaser-resume-section {
  margin-bottom: 12px;
}

.teaser-resume-section-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 6px 0;
}

.teaser-resume-text {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* =============================================================================
   Sample Form (for Community Submit Teaser)
============================================================================= */

.teaser-sample-form {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

.teaser-form-group {
  margin-bottom: 16px;
}

.teaser-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.teaser-form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--color-text-muted);
  background: var(--color-bg-page);
}

/* =============================================================================
   Sample Submissions List
============================================================================= */

.teaser-sample-submissions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.teaser-submission-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: left;
}

.teaser-submission-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 8px 0;
}

.teaser-submission-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.teaser-submission-stats {
  font-size: 12px;
  color: var(--color-text-muted);
}

.teaser-submission-status {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
  background: #D1FAE5;
  color: #065F46;
}

/* =============================================================================
   Feature List (alternative to preview)
============================================================================= */

.teaser-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 400px;
  margin: 0 auto 24px;
}

.teaser-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.teaser-feature-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.teaser-feature-text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* =============================================================================
   Loading Skeleton (Issue #174 fix)
   Shown during auth initialization to prevent login popup flash
============================================================================= */

.teaser-loading-skeleton {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
  min-height: 400px;
  justify-content: center;
}

.skeleton-pulse {
  background: linear-gradient(
    90deg,
    var(--color-bg-secondary) 25%,
    var(--color-bg-hover) 50%,
    var(--color-bg-secondary) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-title {
  height: 32px;
  width: 60%;
  margin: 0 auto 8px;
}

.skeleton-text {
  height: 16px;
  width: 100%;
  margin: 0 auto;
}

.skeleton-box {
  height: 200px;
  width: 100%;
  margin-top: 16px;
}

@keyframes skeleton-pulse {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Mobile adjustments for skeleton */
@media (max-width: 480px) {
  .teaser-loading-skeleton {
    padding: 24px 16px;
  }

  .skeleton-title {
    width: 80%;
  }
}
