/* case-export-v2.css */
/* A more professional, highly readable editorial layout */

.case-export-body {
  background: #0d0d0d;
  color: #e5e5e5;
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Article Layout */
.case-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px 100px;
}

.article-header {
  text-align: center;
  margin-bottom: 48px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #888;
  font-size: 14px;
  flex-wrap: wrap;
}

.article-meta .divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #444;
}

.article-media {
  margin: 0 calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
  position: relative;
  margin-bottom: 60px;
  aspect-ratio: 16 / 9;
  background: #000;
}

@media (min-width: 1040px) {
  .article-media {
    margin: 0 auto 60px;
    max-width: 1000px;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
  }
}

.source-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  background: linear-gradient(180deg, #1a1a1a 0%, #111 100%);
  border: 1px solid rgba(255,255,255,0.05);
}

.fallback-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(245, 200, 66, 0.15);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 16px;
  margin-bottom: 16px;
}

.fallback-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.fallback-copy {
  color: #888;
  font-size: 14px;
  max-width: 400px;
}

.media-caption {
  text-align: center;
  color: #888;
  font-size: 14px;
  margin-top: 16px;
  padding: 0 20px;
}

/* Film Info Card */
.film-info-card {
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
}

.film-info-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.film-info-icon {
  font-size: 20px;
  opacity: 0.8;
}

.film-info-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  line-height: 1.5;
}

/* Typography & Content */
.article-content {
  font-size: 18px;
  line-height: 1.8;
  color: #d4d4d4;
}

.article-intro {
  margin-bottom: 60px;
}

.lead-paragraph {
  font-size: 22px;
  line-height: 1.7;
  color: #fff;
  font-weight: 400;
}

.analysis-section {
  margin-bottom: 60px;
}

.analysis-section h2, .segments-intro h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.segments-intro p {
  font-size: 18px;
  color: #aaa;
  margin-bottom: 40px;
}

/* Timeline (Emotional Arc) */
.timeline-list {
  position: relative;
  padding-left: 20px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(245, 200, 66, 0.2);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px #0d0d0d;
}

.timeline-phase {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timeline-emotion {
  font-size: 20px;
  color: #fff;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.timeline-why {
  margin: 0;
  color: #aaa;
}

/* Feature List (Pillars) */
.feature-list {
  display: grid;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 24px;
  border-radius: 12px;
}

.feature-icon {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.8;
}

.feature-content h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #fff;
}

.feature-content p {
  margin: 0;
  font-size: 16px;
  color: #aaa;
}

/* Strategy Cards */
.strategy-list {
  display: grid;
  gap: 20px;
}

.strategy-card {
  background: #141414;
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
}

.strategy-action {
  margin: 0 0 16px 0;
  font-size: 18px;
  color: #fff;
}

.strategy-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.strategy-detail-group {
  font-size: 15px;
}

.detail-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.strategy-detail-group p {
  margin: 0;
  color: #aaa;
}

.section-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 80px 0;
}

/* Segments */
.segment-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.segment-article {
  background: #111;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
}

.segment-header {
  padding: 32px 32px 24px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.segment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.segment-badge {
  background: rgba(245, 200, 66, 0.15);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.segment-time {
  color: #888;
  font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.segment-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.segment-lead {
  font-size: 18px;
  color: #bbb;
  margin: 0;
}

.segment-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.analysis-block {
  font-size: 16px;
}

.block-title {
  font-size: 14px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px 0;
}

.analysis-block p {
  margin: 0 0 12px 0;
  color: #d4d4d4;
}

.analysis-block p:last-child {
  margin-bottom: 0;
}

/* Split block for Key Decision */
.split-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 20px;
}

.muted-col .block-title {
  color: #666;
}

.muted-col p {
  color: #888;
}

/* Technical Table */
.tech-table {
  width: 100%;
  border-collapse: collapse;
}

.tech-table th, .tech-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  text-align: left;
  vertical-align: top;
}

.tech-table tr:last-child th, .tech-table tr:last-child td {
  border-bottom: none;
}

.tech-table th {
  width: 120px;
  color: #888;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
}

.tech-table td {
  color: #d4d4d4;
}

/* Prompt Block */
.prompt-block {
  margin-top: 16px;
}

.prompt-code {
  background: #000;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
}

.prompt-code p {
  margin-bottom: 16px;
  color: #ccc;
}

.prompt-code strong {
  color: var(--accent);
  font-weight: 600;
}

.prompt-anchors {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px dashed rgba(255,255,255,0.15);
}

.prompt-anchors div {
  color: #aaa;
}

/* Footer */
.case-footer {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .case-article {
    padding: 40px 16px 80px;
  }
  
  .article-title {
    font-size: 28px;
  }
  
  .lead-paragraph {
    font-size: 18px;
  }
  
  .strategy-details, .split-block {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .tech-table th, .tech-table td {
    display: block;
    width: 100%;
    padding: 8px 0;
  }
  
  .tech-table th {
    padding-top: 16px;
    color: var(--accent);
  }
  
  .tech-table tr:first-child th {
    padding-top: 0;
  }
  
  .tech-table td {
    padding-bottom: 16px;
  }
  
  .segment-header, .segment-body {
    padding: 20px;
  }
}

/* Value Proposition Section */
.value-proposition {
  margin-bottom: 80px;
  padding: 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.value-header {
  text-align: center;
  margin-bottom: 40px;
}

.value-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px 0;
}

.value-subtitle {
  color: #aaa;
  font-size: 16px;
  margin: 0;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(245, 200, 66, 0.15);
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 20px;
}

.value-card h3 {
  font-size: 18px;
  color: #fff;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.value-card p {
  font-size: 14px;
  color: #888;
  margin: 0;
  line-height: 1.6;
}

.prompt-hint-note {
  text-transform: none;
  font-size: 12px;
  color: #888;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 8px;
}

@media (max-width: 768px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
  .value-proposition {
    padding: 32px 20px;
  }
}
