/**
 * Isomorphism Scanner Styles
 */

/* Hero */
.iso-hero {
  padding: 8rem 0 4rem;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(136,68,255,0.1) 0%, transparent 60%);
}

.iso-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(136,68,255,0.1);
  border: 1px solid rgba(136,68,255,0.3);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  color: var(--color-fra-r);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.iso-hero .hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.iso-hero .hero-title .subtitle {
  display: block;
  font-size: 0.5em;
  font-weight: 400;
  color: rgba(224,224,255,0.7);
  margin-top: 0.5rem;
}

.iso-hero .hero-description {
  font-size: 1.125rem;
  color: rgba(224,224,255,0.8);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.iso-hero .hero-description strong {
  color: var(--star-white);
}

/* Types Section */
.types-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.2) 100%);
}

.types-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}

.type-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.type-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
}

.type-card.highlight {
  border-color: rgba(136,68,255,0.3);
  background: rgba(136,68,255,0.05);
}

.type-header {
  margin-bottom: 1.5rem;
}

.type-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: rgba(255,215,0,0.2);
  color: var(--color-phi);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.type-badge.special {
  background: rgba(136,68,255,0.3);
  color: var(--color-fra-r);
}

.type-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--star-white);
  margin-bottom: 0.25rem;
}

.type-subtitle {
  font-size: 0.9375rem;
  color: rgba(224,224,255,0.6);
}

.type-example {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.type-example h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(224,224,255,0.7);
  margin-bottom: 0.75rem;
}

.domain-pair {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.domain {
  flex: 1;
  text-align: center;
}

.domain-name {
  display: block;
  font-weight: 600;
  color: var(--star-white);
  margin-bottom: 0.25rem;
}

.domain-desc {
  font-size: 0.75rem;
  color: rgba(224,224,255,0.6);
}

.iso-arrow {
  font-size: 1.5rem;
  color: var(--color-phi);
}

.type-properties h5 {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(224,224,255,0.7);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.type-properties ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.type-properties li {
  font-size: 0.875rem;
  color: rgba(224,224,255,0.8);
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.type-properties li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-phi);
}

.type-card.highlight .type-properties li::before {
  color: var(--color-fra-r);
}

/* Einstein Isomorphism */
.einstein-iso {
  padding: 5rem 0;
  background: radial-gradient(ellipse at center, rgba(68,255,136,0.05) 0%, transparent 60%);
}

.mapping-table {
  max-width: 700px;
  margin: 3rem auto 0;
  background: rgba(0,0,0,0.2);
  border-radius: 12px;
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(68,255,136,0.1);
  font-weight: 600;
  color: var(--star-white);
}

.mapping-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.mapping-row.highlight {
  background: rgba(68,255,136,0.05);
}

.mapping-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mapping-cell code {
  font-family: 'Space Grotesk', monospace;
  font-size: 1rem;
  color: var(--color-o2);
}

.cell-desc {
  font-size: 0.75rem;
  color: rgba(224,224,255,0.5);
}

.cell-concept {
  font-size: 0.9375rem;
  color: var(--star-white);
}

.mapping-arrow {
  color: var(--color-phi);
  font-size: 1.25rem;
}

.discovery-quote {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
}

.discovery-quote blockquote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--star-white);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.discovery-quote cite {
  font-size: 0.875rem;
  color: rgba(224,224,255,0.6);
  font-style: normal;
}

/* CLC Section */
.clc-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, transparent 100%);
}

.clc-content {
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}

.clc-definition {
  text-align: center;
  margin-bottom: 3rem;
}

.lead {
  font-size: 1.125rem;
  color: rgba(224,224,255,0.8);
  margin-bottom: 2rem;
}

.lead strong {
  color: var(--star-white);
}

.inference-rule {
  display: inline-block;
  background: rgba(0,0,0,0.3);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.rule-premise {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.125rem;
  color: var(--color-phi);
  margin-bottom: 0.5rem;
}

.rule-line {
  height: 2px;
  background: rgba(255,255,255,0.3);
  margin: 0.5rem 0;
}

.rule-conclusion {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.125rem;
  color: var(--star-white);
  margin-top: 0.5rem;
}

.rule-explanation {
  font-size: 0.875rem;
  color: rgba(224,224,255,0.6);
}

.clc-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.type-def {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 1.25rem;
}

.type-def h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--star-white);
  margin-bottom: 0.75rem;
}

.type-signature {
  display: block;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.875rem;
  color: var(--color-phi);
  padding: 0.5rem;
  background: rgba(0,0,0,0.2);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.type-def p {
  font-size: 0.8125rem;
  color: rgba(224,224,255,0.7);
}

/* Scanner Demo */
.scanner-demo {
  padding: 5rem 0;
}

.scanner-interface {
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}

.domain-selectors {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 2rem;
}

.selector-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.selector-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(224,224,255,0.7);
}

.selector-group select {
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--star-white);
  font-size: 0.9375rem;
  cursor: pointer;
}

.selector-group select:focus {
  outline: none;
  border-color: var(--color-phi);
}

.scan-button-wrapper {
  display: flex;
  justify-content: center;
}

.scan-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--color-fra-r), var(--color-fra-a));
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(136,68,255,0.4);
}

.scan-icon {
  font-size: 1.125rem;
}

.scan-results {
  background: rgba(0,0,0,0.2);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-placeholder {
  color: rgba(224,224,255,0.5);
  font-size: 0.9375rem;
}

.result-content {
  text-align: left;
  width: 100%;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-type {
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.result-type.type-i {
  background: rgba(255,215,0,0.2);
  color: var(--color-phi);
}

.result-type.type-ii {
  background: rgba(136,68,255,0.2);
  color: var(--color-fra-r);
}

.confidence-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-o2), var(--color-phi));
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Implications */
.implications-section {
  padding: 5rem 0;
  background: radial-gradient(ellipse at center, rgba(255,215,0,0.03) 0%, transparent 60%);
}

.implications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}

.implication-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.implication-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.15);
}

.implication-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--star-white);
  margin-bottom: 0.5rem;
}

.implication-card p {
  font-size: 0.875rem;
  color: rgba(224,224,255,0.7);
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
  .types-comparison {
    grid-template-columns: 1fr;
  }
  
  .domain-pair {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .iso-arrow {
    transform: rotate(90deg);
  }
  
  .mapping-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.5rem;
  }
  
  .mapping-arrow {
    transform: rotate(90deg);
  }
  
  .clc-types {
    grid-template-columns: 1fr;
  }
  
  .domain-selectors {
    grid-template-columns: 1fr;
  }
  
  .scan-button-wrapper {
    order: -1;
  }
}
