/* GLOBAL RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  color: #ffffff;
  padding: 80px 20px 20px 20px;
  background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.5)), url("assets/20260207_172512.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
}

/* NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 32px;
  width: auto;
  background: #1e5eff;
  border-radius: 8px;
  padding: 4px;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 14px;
  color: #ffffff;
  text-transform: uppercase;
}

.brand-origin {
  font-weight: 300;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 13px;
  opacity: 0.75;
  transition: 0.2s;
  font-weight: 500;
}

.nav-links a:hover {
  opacity: 1;
  color: #1e5eff;
}

/* SECTIONS */
.section {
  max-width: 1400px;
  margin: 0 auto;
}

/* UPLOAD SECTION */
.upload-container {
  max-width: 700px;
  margin: 60px auto;
  text-align: center;
}

.upload-container h1 {
  font-size: 36px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #1e5eff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.upload-container > p {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
}

.upload-zone {
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 60px 40px;
  transition: all 0.3s;
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.upload-zone:hover {
  background: rgba(255,255,255,0.08);
  border-color: #1e5eff;
}

.upload-zone.drag-over {
  background: rgba(30, 94, 255, 0.1);
  border-color: #1e5eff;
  transform: scale(1.02);
}

.upload-zone svg {
  color: #1e5eff;
  margin-bottom: 20px;
}

.upload-zone h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.upload-zone p {
  color: rgba(255,255,255,0.5);
  margin: 10px 0;
}

.upload-btn {
  display: inline-block;
  padding: 12px 32px;
  background: #1e5eff;
  color: white;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.upload-btn:hover {
  background: #0077ee;
  transform: translateY(-2px);
}

.file-info {
  margin-top: 30px;
  padding: 20px;
  background: rgba(30, 94, 255, 0.1);
  border: 1px solid rgba(30, 94, 255, 0.3);
  border-radius: 16px;
}

.file-info p {
  font-size: 15px;
  margin-bottom: 15px;
}

.analyze-btn {
  padding: 14px 40px;
  background: #1e5eff;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.analyze-btn:hover {
  background: #0077ee;
  transform: scale(1.05);
}

/* PREVIEW SECTION */
.preview-container {
  max-width: 1200px;
  margin: 0 auto;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.preview-header h1 {
  font-size: 28px;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary {
  background: #1e5eff;
  color: white;
}

.btn-primary:hover {
  background: #0077ee;
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: white;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
}

/* PDF CONTENT */
.pdf-content {
  background: white;
  color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.pdf-page {
  padding: 60px;
  min-height: 800px;
  background: white;
  page-break-after: always;
  border-bottom: 1px solid #e0e0e0;
}

.pdf-page:last-child {
  border-bottom: none;
}

/* Compact spacing for multi-section pages */
.pdf-page .page-title + .page-title {
  margin-top: 30px;
}

.pdf-page .insight-box + .page-title {
  margin-top: 35px;
}

.pdf-page .chart-container + .page-title {
  margin-top: 35px;
}

/* COVER PAGE */
.page-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e5eff 0%, #0044cc 100%);
  color: white;
  text-align: center;
  min-height: 900px;
}

.cover-content h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.cover-meta {
  margin: 40px 0;
  font-size: 24px;
  font-weight: 300;
}

.cover-meta p {
  margin: 10px 0;
}

.cover-footer {
  margin-top: 60px;
  font-size: 14px;
  opacity: 0.9;
}

.cover-footer p {
  margin: 8px 0;
}

/* PAGE STYLING */
.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #1e5eff;
  border-bottom: 3px solid #1e5eff;
  padding-bottom: 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-card {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.info-card.full-width {
  grid-column: 1 / -1;
}

.info-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e5eff;
}

.info-card p {
  margin: 8px 0;
  font-size: 15px;
  line-height: 1.6;
}

/* PITCH VISUALIZATION */
.pitch-analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.pitch-viz-container {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.pitch-viz-container h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e5eff;
}

.pitch-canvas-preview {
  width: 100%;
  height: 280px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 16px;
}

.formation-detection {
  background: white;
  padding: 16px;
  border-radius: 8px;
}

.formation-detection p {
  margin: 8px 0;
  font-size: 15px;
}

.formation-detection strong {
  color: #1e5eff;
}

/* INSIGHT BOXES */
.insight-box {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  border-left: 4px solid #1e5eff;
  margin: 16px 0;
}

.insight-box.large {
  padding: 32px;
  font-size: 17px;
}

.insight-text {
  font-size: 15px;
  line-height: 1.7;
  color: #2c3e50;
  font-weight: 400;
}

/* SUMMARY STATS */
.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}

.stat-card {
  background: linear-gradient(135deg, #1e5eff, #0044cc);
  color: white;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
}

.stat-card h3 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 6px;
}

.stat-card p {
  font-size: 13px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* CHART CONTAINERS */
.chart-container {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  margin: 16px 0;
}

.chart-container h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e5eff;
}

.chart-container canvas {
  max-height: 280px;
}

/* COACHING QUESTIONS */
.questions-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.question-item {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  border-left: 4px solid #1e5eff;
}

.question-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1e5eff;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.question-text {
  font-size: 16px;
  line-height: 1.6;
  color: #2c3e50;
}

/* CONFIDENCE & LIMITATIONS */
.confidence-box {
  background: #f8f9fa;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  text-align: center;
}

.confidence-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e5eff;
}

.confidence-badge {
  display: inline-block;
  padding: 16px 40px;
  border-radius: 30px;
  font-size: 24px;
  font-weight: 800;
  margin: 20px 0;
}

.confidence-badge.high {
  background: #10b981;
  color: white;
}

.confidence-badge.medium {
  background: #f59e0b;
  color: white;
}

.confidence-badge.low {
  background: #ef4444;
  color: white;
}

.confidence-text {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.6;
  color: #6b7280;
}

.limitations-box {
  background: #fff3cd;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #ffc107;
  margin-bottom: 30px;
}

.limitations-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #856404;
}

.limitations-box ul {
  list-style-position: inside;
  color: #856404;
  font-size: 15px;
  line-height: 1.8;
}

.strategy-notes-box {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
}

.strategy-notes-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1e5eff;
}

.note-section {
  margin: 16px 0;
  padding: 16px;
  background: white;
  border-radius: 8px;
}

.note-section h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1e5eff;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.note-section p {
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

/* LOADING OVERLAY */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-overlay p {
  margin-top: 20px;
  font-size: 18px;
  color: white;
}

.loader {
  border: 4px solid rgba(255,255,255,0.1);
  border-top: 4px solid #1e5eff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .info-grid,
  .pitch-analysis-grid,
  .summary-stats {
    grid-template-columns: 1fr;
  }
  
  .pdf-page {
    padding: 40px 30px;
  }
  
  .cover-content h1 {
    font-size: 32px;
  }
}
