/* ============================================
   Review Landing Page
   Aesthetic: Editorial Luxury meets Corporate Precision
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  --navy: #1B365D;
  --navy-deep: #0F2240;
  --navy-light: #2A4A7A;
  --cream: #F8F6F1;
  --cream-dark: #EDE9E0;
  --white: #FFFFFF;
  --warm-gold: #C9A96E;
  --warm-gold-light: #D4BA88;
  --text-primary: #1B365D;
  --text-secondary: #5A6B80;
  --text-muted: #8B95A3;

  /* Platform colors */
  --google-blue: #4285F4;
  --google-red: #EA4335;
  --google-yellow: #FBBC04;
  --google-green: #34A853;
  --indeed-blue: #2164F3;
  --indeed-dark: #1A1A2E;
  --glassdoor-green: #0CAA41;
  --glassdoor-dark: #0A3D1F;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--cream);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Background Texture --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(27, 54, 93, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(201, 169, 110, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle noise grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}

/* --- Layout Wrapper --- */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Top Spacing (replaces logo area) --- */
.logo-container {
  padding: var(--space-2xl) 0 var(--space-sm);
  text-align: center;
}

/* --- Hero / Landing Section --- */
.hero {
  text-align: center;
  padding: 0 var(--space-xl) var(--space-xl);
  max-width: 520px;
  animation: fadeSlideUp 0.8s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.hero p {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.65;
}

/* --- Link Buttons (Landing Page) --- */
.link-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: 100%;
  max-width: 420px;
  padding: var(--space-md) var(--space-xl) var(--space-3xl);
}

.link-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  background: var(--white);
  border: 1px solid rgba(27, 54, 93, 0.08);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(27, 54, 93, 0.04);
}

.link-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0 4px 4px 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(27, 54, 93, 0.1);
  border-color: rgba(27, 54, 93, 0.12);
}

.link-card:hover::before {
  opacity: 1;
}

.link-card:active {
  transform: translateY(0);
}

/* Platform-specific accent bars */
.link-card--google::before {
  background: linear-gradient(180deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green));
}
.link-card--indeed::before {
  background: var(--indeed-blue);
}
.link-card--glassdoor::before {
  background: var(--glassdoor-green);
}

.link-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-card:hover .link-card__icon {
  transform: scale(1.05);
}

.link-card--google .link-card__icon {
  background: linear-gradient(135deg, #E8F0FE, #FEF7E0);
}
.link-card--indeed .link-card__icon {
  background: linear-gradient(135deg, #E8EFFE, #DAE3FF);
}
.link-card--glassdoor .link-card__icon {
  background: linear-gradient(135deg, #E6F7EC, #D0F0DC);
}

.link-card__content {
  flex: 1;
}

.link-card__title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 2px;
}

.link-card__subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.link-card__arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}

.link-card:hover .link-card__arrow {
  transform: translateX(4px);
  color: var(--text-primary);
}

/* Staggered entrance */
.link-card:nth-child(1) { animation: fadeSlideUp 0.6s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both; }
.link-card:nth-child(2) { animation: fadeSlideUp 0.6s 0.42s cubic-bezier(0.22, 1, 0.36, 1) both; }
.link-card:nth-child(3) { animation: fadeSlideUp 0.6s 0.54s cubic-bezier(0.22, 1, 0.36, 1) both; }


/* ============================================
   INSTRUCTION PAGES (Google, Indeed, Glassdoor)
   ============================================ */

.instruction-page {
  width: 100%;
  max-width: 640px;
  padding: 0 var(--space-xl);
  padding-bottom: var(--space-3xl);
}

/* Back navigation */
.back-nav {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
  animation: fadeSlideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.back-nav:hover {
  color: var(--text-primary);
}

.back-nav svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.back-nav:hover svg {
  transform: translateX(-3px);
}

/* Page header with platform badge */
.page-header {
  text-align: center;
  padding: var(--space-lg) 0 var(--space-2xl);
  animation: fadeSlideUp 0.7s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.platform-badge--google {
  background: linear-gradient(135deg, #E8F0FE, #FEF7E0);
  color: var(--google-blue);
}
.platform-badge--indeed {
  background: linear-gradient(135deg, #E8EFFE, #DAE3FF);
  color: var(--indeed-blue);
}
.platform-badge--glassdoor {
  background: linear-gradient(135deg, #E6F7EC, #D0F0DC);
  color: var(--glassdoor-green);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}

.page-header p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 460px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Content cards */
.content-card {
  background: var(--white);
  border: 1px solid rgba(27, 54, 93, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin-bottom: var(--space-lg);
  box-shadow: 0 1px 4px rgba(27, 54, 93, 0.03);
  animation: fadeSlideUp 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.content-card + .content-card {
  animation-delay: 0.3s;
}

.content-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.content-card h2 .icon {
  font-size: 1.1rem;
  opacity: 0.7;
}

/* Tips list */
.tips-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.tips-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--cream);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.tips-list li .tip-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.tips-list--google .tip-number {
  background: linear-gradient(135deg, #E8F0FE, #FEF7E0);
  color: var(--google-blue);
}
.tips-list--indeed .tip-number {
  background: linear-gradient(135deg, #E8EFFE, #DAE3FF);
  color: var(--indeed-blue);
}
.tips-list--glassdoor .tip-number {
  background: linear-gradient(135deg, #E6F7EC, #D0F0DC);
  color: var(--glassdoor-green);
}

/* Indeed-specific: Question/Answer format */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.qa-item {
  padding: var(--space-lg);
  background: var(--cream);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--indeed-blue);
}

.qa-list--glassdoor .qa-item {
  border-left-color: var(--glassdoor-green);
}

.qa-item__question {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.qa-item__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--indeed-blue);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.qa-list--glassdoor .qa-item__number {
  background: var(--glassdoor-green);
}

/* Section heading within Q&A */
.qa-section-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--navy);
  padding: var(--space-sm) 0;
  margin-top: var(--space-sm);
  border-bottom: 1px solid var(--cream-dark);
}

.qa-item__answer {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding-left: 30px;
}

.qa-item__warning {
  font-size: 0.78rem;
  font-weight: 600;
  color: #DC2626;
  padding-left: 30px;
  margin-top: var(--space-xs);
}

.qa-item__warning--tip {
  padding-left: 0;
  margin-top: 6px;
}

/* Bullet list inside tips */
.tip-bullets {
  margin: 6px 0 0 1.1rem;
  padding: 0;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tip-bullets li {
  display: list-item;
  padding: 0;
  background: none;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.qa-item__answer .checkmark {
  color: #22C55E;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.4;
}

/* Multi-option answers */
.qa-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qa-options strong {
  display: block;
}

.qa-separator {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding-left: 2px;
}

/* CTA Section */
.cta-section {
  text-align: center;
  padding: var(--space-2xl) 0;
  animation: fadeSlideUp 0.7s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cta-button:hover::before {
  opacity: 1;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

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

.cta-button--google {
  background: var(--google-blue);
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.3);
}
.cta-button--indeed {
  background: var(--indeed-blue);
  box-shadow: 0 4px 20px rgba(33, 100, 243, 0.3);
}
.cta-button--glassdoor {
  background: var(--glassdoor-green);
  box-shadow: 0 4px 20px rgba(12, 170, 65, 0.3);
}

.cta-button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.cta-button:hover svg {
  transform: translateX(3px);
}

.cta-note {
  display: block;
  margin-top: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Screenshot Upload Section --- */
.upload-section {
  padding-top: var(--space-md);
  animation: fadeSlideUp 0.7s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.upload-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

/* Name input */
.upload-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.upload-name {
  display: block;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid rgba(27, 54, 93, 0.15);
  border-radius: var(--radius-md);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  transition: border-color 0.25s ease;
}

.upload-name:focus {
  outline: none;
  border-color: var(--navy-light);
}

.upload-name::placeholder {
  color: var(--text-muted);
}

.upload-dropzone {
  border: 2px dashed rgba(27, 54, 93, 0.15);
  border-radius: var(--radius-md);
  background: var(--cream);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.upload-dropzone:hover,
.upload-dropzone.drag-over {
  border-color: var(--navy-light);
  background: var(--cream-dark);
}

.upload-dropzone.drag-over {
  border-color: var(--warm-gold);
  background: rgba(201, 169, 110, 0.06);
}

.upload-dropzone__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-2xl) var(--space-xl);
  color: var(--text-muted);
}

.upload-dropzone__content svg {
  opacity: 0.4;
  margin-bottom: var(--space-xs);
}

.upload-dropzone__text {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.upload-dropzone__hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Preview state — hidden by default, shown via JS class */
.upload-preview {
  position: relative;
  padding: var(--space-md);
  display: none;
  justify-content: center;
}

.upload-preview.is-visible {
  display: flex;
}

.upload-preview img {
  max-width: 100%;
  max-height: 300px;
  border-radius: var(--radius-sm);
  object-fit: contain;
}

.upload-remove {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(27, 54, 93, 0.8);
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  line-height: 1;
}

.upload-remove:hover {
  background: var(--navy);
}

/* Submit button */
.upload-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  margin-top: var(--space-lg);
  border: none;
  border-radius: var(--radius-md);
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.upload-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.upload-submit:not(:disabled):hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27, 54, 93, 0.2);
}

.upload-submit:not(:disabled):active {
  transform: translateY(0);
}

/* Upload status messages — empty by default, visible when given a type class */
.upload-status {
  margin-top: var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

.upload-status:empty {
  display: none;
}

.upload-status--sending,
.upload-status--success,
.upload-status--error {
  padding: var(--space-md) var(--space-lg);
}

.upload-status--sending {
  background: rgba(33, 100, 243, 0.08);
  color: var(--indeed-blue);
}

.upload-status--success {
  background: rgba(34, 197, 94, 0.08);
  color: #16A34A;
}

.upload-status--error {
  background: rgba(234, 67, 53, 0.08);
  color: var(--google-red);
}

/* --- Thank You Page --- */
.thankyou-page {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  max-width: 480px;
  animation: fadeSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.thankyou-icon {
  margin-bottom: var(--space-xl);
  animation: fadeSlideUp 0.6s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.thankyou-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 400;
  color: var(--navy);
  margin-bottom: var(--space-md);
  animation: fadeSlideUp 0.7s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.thankyou-page p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  animation: fadeSlideUp 0.7s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.thankyou-home {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--white);
  border: 1px solid rgba(27, 54, 93, 0.1);
  border-radius: var(--radius-xl);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  animation: fadeSlideUp 0.7s 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.thankyou-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 54, 93, 0.1);
  border-color: rgba(27, 54, 93, 0.2);
}

.thankyou-home svg {
  transition: transform 0.25s ease;
}

.thankyou-home:hover svg {
  transform: translateX(-3px);
}

/* --- Footer --- */
.footer {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-2xl);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.footer-divider {
  width: 40px;
  height: 1px;
  background: var(--cream-dark);
  margin: 0 auto var(--space-md);
}

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

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .link-card {
    padding: var(--space-md) var(--space-lg);
  }

  .content-card {
    padding: var(--space-xl);
  }

  .qa-item {
    padding: var(--space-md);
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .cta-button {
    width: 100%;
    padding: var(--space-lg);
  }
}

@media (min-width: 768px) {
  .logo-container {
    padding-top: var(--space-4xl);
  }
}
