/* Sample Work Page Styles */

/* Sample Intro */
.sample-intro {
  background: var(--warm-off-white);
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 6vw, 60px);
  text-align: center;
}

.sample-intro h1 {
  font-size: var(--text-hero);
  margin-bottom: 24px;
}

.sample-intro .section-intro {
  max-width: 800px;
  margin: 0 auto;
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--medium-gray);
}

/* Sample Example */
.sample-example {
  padding: var(--section-padding) 0;
  background: white;
}

.sample-example:nth-of-type(even) {
  background: var(--warm-off-white);
}

.sample-example h2 {
  font-size: var(--text-section);
  margin-bottom: 16px;
}

.sample-example h2 em {
  font-style: italic;
}

.example-context {
  font-size: var(--text-small);
  color: var(--medium-gray);
  margin-bottom: 16px;
  font-style: italic;
}

.example-context a {
  color: var(--deep-slate);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-brick);
}

.example-context a:hover {
  color: var(--accent-brick);
}

.tech-description {
  font-size: var(--text-small);
  line-height: 1.7;
  color: var(--warm-charcoal);
  margin-bottom: 16px;
  padding: 16px;
  background: var(--badge-bg);
  border-radius: 4px;
  border-left: 3px solid var(--deep-slate);
}

.approach-description {
  font-size: var(--text-small);
  line-height: 1.7;
  color: var(--medium-gray);
  margin-bottom: 32px;
  font-style: italic;
}

/* Comparison Grid */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 32px;
}

.comparison-card {
  background: white;
  border: 1px solid var(--light-border);
  border-radius: 4px;
  padding: 32px;
}

.comparison-card h3 {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--light-border);
}

.comparison-card.highlight {
  background: var(--warm-off-white);
  border: 2px solid var(--deep-slate);
  position: relative;
}

.comparison-card.highlight::before {
  content: "TIRION";
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--deep-slate);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

/* Comparison Content */
.comparison-content {
  margin-bottom: 24px;
}

.comparison-content p {
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--warm-charcoal);
  margin-bottom: 16px;
}

.comparison-content p:last-child {
  margin-bottom: 0;
}

/* Tech Brief Frame */
.tech-brief-frame {
  width: 100%;
  height: 400px;
  background: white;
  border: 2px solid var(--deep-slate);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tech Brief Content */
.tech-brief-content {
  padding: 24px;
}

.tech-brief-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-slate);
  margin-bottom: 8px;
  line-height: 1.3;
}

.tech-brief-content h5 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--deep-slate);
  margin-top: 16px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-brief-content p {
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--warm-charcoal);
  margin-bottom: 12px;
}

.tech-brief-content .brief-meta {
  font-size: 0.75rem;
  color: var(--medium-gray);
  font-style: italic;
  margin-bottom: 16px;
}

.tech-brief-content .brief-status {
  font-size: var(--text-small);
  margin-bottom: 8px;
}

.tech-brief-content .brief-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

.tech-brief-content .brief-list li {
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--warm-charcoal);
  margin-bottom: 6px;
}

/* Scrollbar styling for tech brief */
.tech-brief-frame::-webkit-scrollbar {
  width: 8px;
}

.tech-brief-frame::-webkit-scrollbar-track {
  background: var(--badge-bg);
  border-radius: 0 4px 4px 0;
}

.tech-brief-frame::-webkit-scrollbar-thumb {
  background: var(--light-border);
  border-radius: 4px;
}

.tech-brief-frame::-webkit-scrollbar-thumb:hover {
  background: var(--medium-gray);
}

/* Comparison Annotations */
.comparison-annotations {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comparison-annotations li {
  font-family: var(--font-sans);
  font-size: var(--text-small);
  color: var(--medium-gray);
  padding-left: 24px;
  margin-bottom: 12px;
  position: relative;
}

.comparison-annotations li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-brick);
  font-weight: 600;
}

.comparison-card.highlight .comparison-annotations li::before {
  content: "✓";
  color: var(--deep-slate);
}

/* PDF Preview Window */
.pdf-preview-window {
  width: 100%;
  height: 500px;
  background: var(--badge-bg);
  border: 1px solid var(--light-border);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pdf-preview-window embed {
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-placeholder {
  padding: 32px;
  text-align: center;
  color: var(--medium-gray);
  font-size: var(--text-small);
  font-style: italic;
}

.pdf-note {
  padding: 0 32px 32px;
  text-align: center;
  color: var(--warm-charcoal);
  font-size: var(--text-small);
  line-height: 1.6;
}

/* Download Button */
.btn-download {
  display: block;
  width: 100%;
  padding: 12px 24px;
  background: var(--deep-slate);
  color: white;
  font-family: var(--font-sans);
  font-size: var(--text-small);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.btn-download:hover {
  background: var(--warm-charcoal);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.comparison-card.highlight .btn-download {
  background: var(--accent-brick);
}

.comparison-card.highlight .btn-download:hover {
  background: #8B4513;
}

/* Time Callout */
.time-callout {
  text-align: center;
  font-style: italic;
  color: var(--accent-brick);
  font-size: var(--text-body);
  font-weight: 500;
  padding: 16px;
  background: var(--badge-bg);
  border-radius: 4px;
  border-left: 3px solid var(--accent-brick);
}

/* Download CTA */
.download-cta {
  background: var(--deep-slate);
  color: white;
  padding: var(--section-padding) 0;
  text-align: center;
}

.download-cta h2 {
  color: white;
  margin-bottom: 16px;
}

.download-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-body);
  margin-bottom: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.download-cta .btn {
  background: white;
  color: var(--deep-slate);
}

.download-cta .btn:hover {
  background: var(--warm-off-white);
}

.download-cta .form-note {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-small);
  margin-top: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }

  .comparison-card.highlight::before {
    top: -10px;
    left: 16px;
  }

  .sample-intro,
  .sample-example {
    padding: 40px 0 32px;
  }

  .pdf-preview-window {
    height: 400px;
  }

  .tech-brief-frame {
    height: 350px;
  }

  /* Hide PDF embed on mobile */
  .pdf-preview-window {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--badge-bg);
  }

  .pdf-preview-window embed {
    display: none;
  }

  .pdf-preview-window::after {
    content: 'PDF preview not available on mobile - use download button below';
    display: block;
    text-align: center;
    padding: 24px;
    color: var(--medium-gray);
    font-size: var(--text-small);
    font-style: italic;
  }
}
