/* Cricket Comparison Matrix Styles */
* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fafafa;
}

.site-header {
  background: #0a2c5a;
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-header h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: #e0e8f0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: #fff;
}

.site-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 12px;
  border: 1px solid #90caf9;
}

.tagline {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a2c5a;
}

.hero p {
  margin: 0;
  color: #424242;
}

.preset-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.preset-btn {
  padding: 0.75rem 1rem;
  border: 2px solid #0a2c5a;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  color: #0a2c5a;
}

.preset-btn:hover {
  background: #0a2c5a;
  color: white;
}

.preset-btn.active {
  background: #0a2c5a;
  color: white;
}

.compare-form {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.player-pair {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.player-input {
  flex: 1;
  min-width: 150px;
}

.player-input label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
  font-size: 0.9rem;
}

.player-input select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: white;
}

.format-selector, .pitch-selector {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.format-selector label,
.pitch-selector label {
  font-weight: 500;
  color: #333;
}

.format-options, .pitch-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.format-btn, .pitch-btn {
  padding: 0.6rem 1rem;
  border: 1px solid #0a2c5a;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
  color: #0a2c5a;
}

.format-btn:hover, .pitch-btn:hover {
  background: #0a2c5a;
  color: white;
}

.format-btn.active, .pitch-btn.active {
  background: #0a2c5a;
  color: white;
}

.result-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.compare-btn, .share-btn {
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  flex: 1;
  min-width: 120px;
}

.compare-btn {
  background: #0a2c5a;
  color: white;
  border: none;
}

.compare-btn:hover {
  background: #082547;
}

.share-btn {
  background: #4caf50;
  color: white;
  border: none;
}

.share-btn:hover {
  background: #388e3c;
}

.comparison-results {
  margin-top: 1.5rem;
}

.results-placeholder {
  padding: 2rem;
  text-align: center;
  color: #666;
  background: #f5f5f5;
  border-radius: 8px;
  border: 1px dashed #ddd;
}

.example-text {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #888;
}

.analysis-section, .examples-section, .tips-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.analysis-section h2,
.examples-section h2,
.tips-section h2 {
  margin-top: 0;
  color: #0a2c5a;
  font-size: 1.25rem;
}

.example-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.example-card {
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.example-card h3 {
  margin: 0 0 0.5rem;
  color: #0a2c5a;
  font-size: 1rem;
}

.example-card p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.example-card .note {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #dee2e6;
  font-size: 0.85rem;
  color: #666;
}

ul {
  padding-left: 1.25rem;
}

tli {
  margin-bottom: 0.5rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 1.5rem;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #e0e0e0;
}

.site-footer a {
  color: #0a2c5a;
  text-decoration: none;
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    text-align: center;
  }
  
  .site-nav {
    margin-top: 1rem;
  }
  
  .player-pair {
    flex-direction: column;
  }
  
  .compare-form {
    padding: 1rem;
  }
  
  .hero {
    padding: 1rem;
  }
}

.results-placeholder.active {
  display: none;
}

.comparison-output {
  display: grid;
  gap: 1rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
}

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

.stat-label {
  font-weight: 500;
}

.stat-value {
  color: #0a2c5a;
  font-weight: 600;
}

.comparison-index {
  background: linear-gradient(90deg, #0a2c5a, #0057b8);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1rem;
}

.comparison-index .score {
  font-size: 2.5rem;
  font-weight: 800;
}

.comparison-index .label {
  font-size: 0.9rem;
  opacity: 0.9;
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
