/* Fancy Molecule Page Styles */

/* Molecule specific colors */
:root {
    --lx42-color: #0097c1;
    --lx42-dark: #007699;
    --lx42-light: #4fc3e7;
    --lx42-bg: rgba(0, 151, 193, 0.07);
    
    --nr7-color: #6a4ea0;
    --nr7-dark: #4a3580;
    --nr7-light: #9d85d1;
    --nr7-bg: rgba(106, 78, 160, 0.07);
    
    --im19-color: #10b981;
    --im19-dark: #0e9f6e;
    --im19-light: #34d399;
    --im19-bg: rgba(16, 185, 129, 0.07);
  }
  
  /* Molecule specific classes */
  .lx42-theme {
    --molecule-primary: var(--lx42-color);
    --molecule-dark: var(--lx42-dark);
    --molecule-light: var(--lx42-light);
    --molecule-bg: var(--lx42-bg);
  }
  
  .nr7-theme {
    --molecule-primary: var(--nr7-color);
    --molecule-dark: var(--nr7-dark);
    --molecule-light: var(--nr7-light);
    --molecule-bg: var(--nr7-bg);
  }
  
  .im19-theme {
    --molecule-primary: var(--im19-color);
    --molecule-dark: var(--im19-dark);
    --molecule-light: var(--im19-light);
    --molecule-bg: var(--im19-bg);
  }
  
  /* General molecule page styling */
  .molecule-header {
    position: relative;
    padding: 4rem 0;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--molecule-primary), var(--molecule-dark));
    color: white;
    overflow: hidden;
  }
  
  .molecule-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
      linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 1;
  }
  
  .molecule-header .container {
    position: relative;
    z-index: 2;
    text-align: center;
  }
  
  .molecule-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
  }
  
  .molecule-header h2::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
  }
  
  .molecule-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 1.5rem auto 0;
    opacity: 0.9;
    color: white;
  }
  
  /* Main molecule section */
  /* .molecule-main {
    padding: 2rem 0 4rem;
  } */
  
  .molecule-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
  }
  
  .molecule-image-col {
    flex: 1;
    min-width: 300px;
  }
  
  .molecule-image-wrapper {
    background-color: var(--molecule-bg);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .molecule-image-wrapper:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
  }
  
  .molecule-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
  }
  
  .molecule-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .molecule-info-col {
    flex: 1.5;
    min-width: 350px;
  }
  
  .molecule-title {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
  }
  
  .molecule-title h3 {
    font-size: 2.2rem;
    color: var(--molecule-primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
  }

  .molecule-title h3::after {
    display: none;
  }
  
  .molecule-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--molecule-primary);
  }
  
  .molecule-category {
    display: inline-block;
    background-color: var(--molecule-primary);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .molecule-description {
    margin-bottom: 2rem;
  }
  
  .molecule-description p {
    margin-bottom: 1rem;
  }
  
  /* Stats Cards */
  .molecule-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
  }
  
  .stat-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--molecule-primary);
  }
  
  .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--molecule-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
  }
  
  .stat-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
  }
  
  /* Applications Section */
  .applications-section {
    padding: 4rem 0;
    background-color: var(--bg-color);
  }
  
  .applications-section h3 {
    text-align: center;
    color: var(--molecule-primary);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
  }
  
  .applications-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--molecule-primary);
  }
  
  .applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
  }
  
  .application-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .application-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  }
  
  .application-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--molecule-bg);
  }
  
  .application-icon i {
    font-size: 2.5rem;
    color: var(--molecule-primary);
  }
  
  .application-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .application-content h4 {
    font-size: 1.2rem;
    color: var(--molecule-primary);
    margin-bottom: 1rem;
  }
  
  .application-content p {
    margin-bottom: 0;
    flex-grow: 1;
  }
  
  /* Mechanism Section */
  .mechanism-section {
    padding: 4rem 0;
  }
  
  .mechanism-section h3 {
    text-align: center;
    color: var(--molecule-primary);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
  }
  
  .mechanism-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--molecule-primary);
  }
  
  .mechanism-content {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .mechanism-box {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border-left: 4px solid var(--molecule-primary);
  }
  
  .mechanism-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    counter-reset: step-counter;
  }
  
  .mechanism-step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    position: relative;
    counter-increment: step-counter;
  }
  
  .mechanism-step::before {
    content: counter(step-counter);
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: var(--molecule-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
  }
  
  .step-card {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    padding-top: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
  }
  
  .step-icon {
    margin-bottom: 1rem;
    color: var(--molecule-primary);
  }
  
  .step-card h4 {
    font-size: 1.1rem;
    color: var(--molecule-primary);
    margin-bottom: 0.5rem;
  }
  
  /* Related Molecules Section */
  .related-molecules {
    padding: 4rem 0;
    background-color: var(--bg-color);
  }
  
  .related-molecules h3 {
    text-align: center;
    color: var(--molecule-primary);
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
  }
  
  .related-molecules h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--molecule-primary);
  }
  
  .related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
  
  .related-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
  }
  
  .related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  }
  
  .related-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
  }
  
  .related-card:hover .related-image img {
    transform: scale(1.05);
  }
  
  .related-content {
    padding: 1.5rem;
  }
  
  .related-content h4 {
    margin-bottom: 0.5rem;
  }
  
  .related-content .molecule-category {
    margin-bottom: 1rem;
    padding: 0.25rem 1rem;
    font-size: 0.8rem;
  }
  
  .related-content p {
    font-size: 0.9rem;
    margin-bottom: 0;
  }
  
  /* Molecule diagram */
  .molecule-diagram {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
  }
  
  .diagram-background {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.03;
    background-image: 
      radial-gradient(circle at 20% 30%, var(--molecule-primary) 1px, transparent 1px),
      radial-gradient(circle at 40% 70%, var(--molecule-primary) 1px, transparent 1px),
      radial-gradient(circle at 60% 20%, var(--molecule-primary) 1px, transparent 1px),
      radial-gradient(circle at 80% 50%, var(--molecule-primary) 1px, transparent 1px);
    background-size: 200px 200px;
  }
  
  /* Media Queries */
  @media (max-width: 768px) {
    .molecule-showcase {
      flex-direction: column;
    }
    
    .mechanism-steps {
      flex-direction: column;
      align-items: center;
    }
    
    .mechanism-step {
      width: 100%;
      max-width: 300px;
    }
  }
  
  /* Additional Design Elements */
  .molecule-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
  }
  
  .molecule-data-table thead {
    background-color: var(--molecule-primary);
    color: white;
  }
  
  .molecule-data-table th,
  .molecule-data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .molecule-data-table tbody tr:last-child td {
    border-bottom: none;
  }
  
  .molecule-data-table tbody tr:hover {
    background-color: var(--molecule-bg);
  }
  
  /* Quote box */
  .molecule-quote {
    background-color: var(--molecule-bg);
    border-left: 4px solid var(--molecule-primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
  }
  
  .molecule-quote p {
    margin-bottom: 0.5rem;
  }
  
  .quote-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--molecule-primary);
    font-style: normal;
  }
  
  /* Technical specifications */
  .technical-specs {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
  }
  
  .tech-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .spec-item {
    display: flex;
    flex-direction: column;
  }
  
  .spec-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
  }
  
  .spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--molecule-primary);
  }
  
  /* Highlight boxes */
  .highlight-box {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 1.5rem 0;
    border-top: 4px solid var(--molecule-primary);
  }
  
  .highlight-box h4 {
    color: var(--molecule-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
  }
  
  .highlight-box h4 i {
    margin-right: 0.5rem;
  }
  
  /* Molecule comparison */
  .comparison-section {
    margin: 3rem 0;
  }
  
  .comparison-chart {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  }
  
  .chart-header {
    margin-bottom: 1.5rem;
  }
  
  .chart-header h4 {
    color: var(--molecule-primary);
  }
  
  .comparison-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .comparison-item {
    display: flex;
    flex-direction: column;
  }
  
  .comparison-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
  }
  
  .comparison-name {
    font-weight: 600;
  }
  
  .comparison-value {
    color: var(--molecule-primary);
    font-weight: 600;
  }
  
  .comparison-bar-bg {
    height: 8px;
    background-color: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
  }
  
  .comparison-bar {
    height: 100%;
    background-color: var(--molecule-primary);
    border-radius: 4px;
  }