/**
 * O-Axis Styles
 */

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

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

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

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

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

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

/* O Levels Preview */
.o-levels-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.o-card {
  background: rgba(255,255,255,0.05);
  border: 2px solid;
  border-radius: 12px;
  padding: 1.25rem;
  min-width: 150px;
  text-align: center;
  transition: all 0.3s ease;
}

.o-card:hover {
  transform: translateY(-4px);
}

.o-card.o0 { border-color: var(--color-o0); }
.o-card.o1 { border-color: var(--color-o1); }
.o-card.o2 { border-color: var(--color-o2); }

.o-label {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.o-card.o0 .o-label { color: var(--color-o0); }
.o-card.o1 .o-label { color: var(--color-o1); }
.o-card.o2 .o-label { color: var(--color-o2); }

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

.o-metaphor {
  font-size: 0.75rem;
  color: rgba(224,224,255,0.6);
  font-style: italic;
}

.o-arrow {
  color: rgba(255,255,255,0.3);
  font-size: 1.5rem;
}

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

.levels-detailed {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}

.level-detailed {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  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;
}

.level-detailed:hover {
  border-color: rgba(255,255,255,0.15);
}

.level-detailed[data-level="0"] { border-left: 4px solid var(--color-o0); }
.level-detailed[data-level="1"] { border-left: 4px solid var(--color-o1); }
.level-detailed[data-level="2"] { border-left: 4px solid var(--color-o2); }

/* Level Visual */
.level-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 200px;
}

.observer-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--star-white);
  box-shadow: 0 0 20px rgba(255,255,255,0.5);
  z-index: 2;
}

.awareness-ring {
  position: absolute;
  width: calc(var(--radius) * 2);
  height: calc(var(--radius) * 2);
  border: 2px solid;
  border-radius: 50%;
  opacity: 0.3;
}

.level-detailed[data-level="0"] .awareness-ring { border-color: var(--color-o0); }
.level-detailed[data-level="1"] .awareness-ring { border-color: var(--color-o1); }
.level-detailed[data-level="2"] .awareness-ring { border-color: var(--color-o2); }

.level-detailed[data-level="0"] .awareness-ring {
  animation: pulse-o0 2s infinite;
}
.level-detailed[data-level="1"] .awareness-ring {
  animation: pulse-o1 2s infinite;
}
.level-detailed[data-level="2"] .awareness-ring {
  animation: pulse-o2 2s infinite;
}

@keyframes pulse-o0 {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

@keyframes pulse-o1 {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 0.5; }
}

@keyframes pulse-o2 {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.2); opacity: 0.5; }
}

/* Level Info */
.level-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.level-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.level-badge {
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.875rem;
}

.o0-badge { background: rgba(255,68,68,0.2); color: var(--color-o0); }
.o1-badge { background: rgba(255,136,68,0.2); color: var(--color-o1); }
.o2-badge { background: rgba(68,255,136,0.2); color: var(--color-o2); }

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

.level-desc {
  font-size: 1rem;
  color: rgba(224,224,255,0.8);
  line-height: 1.6;
}

.level-properties {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.prop {
  background: rgba(0,0,0,0.2);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8125rem;
}

.prop-label {
  color: rgba(224,224,255,0.5);
}

.prop-value {
  color: var(--star-white);
  font-weight: 500;
}

.level-examples h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(224,224,255,0.6);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.level-examples ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.level-examples li {
  font-size: 0.875rem;
  color: rgba(224,224,255,0.7);
  padding: 0.25rem 0;
  padding-left: 1.25rem;
  position: relative;
}

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

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

.section-intro {
  text-align: center;
  font-size: 1.125rem;
  color: rgba(224,224,255,0.8);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

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

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

.iso-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255,215,0,0.1);
  font-weight: 600;
  color: var(--star-white);
  font-size: 0.875rem;
}

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

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

.iso-concept {
  color: var(--star-white);
  font-weight: 500;
}

.iso-equivalent {
  color: var(--color-phi);
}

.iso-formal {
  color: rgba(224,224,255,0.6);
  font-size: 0.8125rem;
}

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

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

.theorem-item {
  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;
}

.theorem-item:hover {
  border-color: rgba(68,255,136,0.2);
}

.theorem-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.theorem-id {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.75rem;
  color: var(--color-o2);
  font-weight: 600;
}

.proof-badge {
  font-size: 0.75rem;
  color: var(--color-o2);
}

.theorem-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--star-white);
  margin-bottom: 0.5rem;
}

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

/* Safety Section */
.safety-section {
  padding: 5rem 0;
  background: radial-gradient(ellipse at center, rgba(255,68,68,0.05) 0%, transparent 60%);
}

.safety-warning {
  display: flex;
  gap: 1.5rem;
  max-width: 700px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: rgba(255,68,68,0.1);
  border: 1px solid rgba(255,68,68,0.2);
  border-radius: 12px;
}

.warning-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.warning-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--star-white);
  margin-bottom: 0.5rem;
}

.warning-content p {
  font-size: 0.9375rem;
  color: rgba(224,224,255,0.8);
}

.warning-content strong {
  color: var(--color-o0);
}

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

.safety-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.5rem;
}

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

.safety-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.safety-card li {
  font-size: 0.875rem;
  color: rgba(224,224,255,0.8);
  padding: 0.375rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .o-levels-preview {
    flex-direction: column;
  }
  
  .o-arrow {
    transform: rotate(90deg);
  }
  
  .level-detailed {
    grid-template-columns: 1fr;
  }
  
  .level-visual {
    min-height: 150px;
  }
  
  .iso-header,
  .iso-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .safety-warning {
    flex-direction: column;
    text-align: center;
  }
}
