/* SOPEasy Header Fix CSS */

/* Ensure the SciCanvas header appears correctly */
.scicanvas-header {
  background: white;
  box-shadow: none;
  border-bottom: none;
  padding: 0.8rem 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  font-family: 'Inter', sans-serif;
}

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

.scicanvas-logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.scicanvas-logo a {
  text-decoration: none !important;
}

.scicanvas-logo-text {
  color: var(--primary);
}

.scicanvas-nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.scicanvas-nav-links li {
  margin-left: 2rem;
}

.scicanvas-nav-links a {
  color: var(--text-dark);
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

.scicanvas-nav-links a:hover {
  color: var(--primary);
}

.scicanvas-nav-links a.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.scicanvas-nav-cta {
  background-color: white;
  color: var(--primary) !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.scicanvas-nav-cta:hover {
  background-color: var(--background);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-logo {
  flex: 2;
}

.footer-logo .logo-text {
  font-size: 1.8rem;
  font-weight: 700;
}

.footer-logo p {
  margin-top: 1rem;
  color: #adb5bd;
}

.footer-links {
  flex: 3;
  display: flex;
  justify-content: space-around;
}

.footer-links-column h4 {
  color: white;
  margin-bottom: 1.2rem;
}

.footer-links-column ul {
  list-style: none;
}

.footer-links-column li {
  margin-bottom: 0.8rem;
}

.footer-links-column a {
  color: #adb5bd;
  transition: color 0.3s ease;
}

.footer-links-column a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #4b5563;
  color: #adb5bd;
  font-size: 0.9rem;
}

/* Force override any conflicting styles */
.scicanvas-header {
  background-color: #fff !important;
  color: #333 !important;
}

.scicanvas-logo-text {
  color: #4361ee !important;
}

.scicanvas-nav-links li {
  margin: 0 1rem !important;
}

.scicanvas-nav-links a {
  color: #333 !important;
}

.scicanvas-nav-links a:hover,
.scicanvas-nav-links a.active {
  color: #4361ee !important;
}

/* Try Free Button Styles */
.scicanvas-nav-links .try-free-btn,
.try-free-btn {
  background-color: #4361ee !important;
  color: white !important;
  padding: 0.5rem 1rem !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.scicanvas-nav-links .try-free-btn:hover,
.try-free-btn:hover {
  background-color: #3f37c9 !important;
  transform: translateY(-2px) !important;
  color: white !important;
}

/* Mobile menu toggle */
.scicanvas-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
  position: relative;
  margin-left: auto;
}

.scicanvas-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.scicanvas-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.scicanvas-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.scicanvas-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
  .scicanvas-nav {
    padding: 0.5rem 1rem;
  }

  .scicanvas-menu-toggle {
    display: flex;
    z-index: 1002;
  }

  .scicanvas-nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  }

  .scicanvas-nav-links.active {
    right: 0;
  }

  .scicanvas-nav-links li {
    margin: 1rem 0;
    width: 100%;
  }

  .scicanvas-nav-links a {
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: block;
    width: 100%;
  }

  .scicanvas-nav-links .try-free-btn {
    margin-top: 1rem;
    width: 100%;
    text-align: center;
  }

  /* Add padding to body to account for fixed header */
  body {
    padding-top: 60px;
  }

  /* Ensure main content is below the menu */
  .app-container {
    position: relative;
    z-index: 1;
  }

  /* Adjust title section for mobile */
  .title-section {
    margin-top: 4rem;
    margin-bottom: 0.5rem;
    padding: 1rem 1rem 0.5rem;
  }

  .title-section h1 {
    font-size: 2rem;
  }

  .title-section p {
    font-size: 1.1rem;
  }

  .app-container {
    margin-top: 0;
    padding-top: 0;
  }
}

.scicanvas-nav-links .try-free-btn,
.try-free-btn {
  background-color: var(--primary) !important;
  color: white !important;
  padding: 0.5rem 1rem !important;
  border-radius: 5px !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.scicanvas-nav-links .try-free-btn:hover,
.try-free-btn:hover {
  background-color: var(--primary-dark) !important;
  transform: translateY(-2px) !important;
  color: white !important;
}

/* SciCanvas Footer */
.scicanvas-footer {
  background-color: var(--text-dark);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: auto;
  font-family: 'Inter', sans-serif;
}

.scicanvas-footer .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.scicanvas-footer-content {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.scicanvas-footer-logo {
  flex: 1;
  margin-right: 2rem;
}

.scicanvas-footer-logo .scicanvas-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
}

.scicanvas-footer-logo p {
  margin-top: 1rem;
  color: #adb5bd;
}

.scicanvas-footer-links {
  flex: 4;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.scicanvas-footer-links-column {
  flex: 1;
}

.scicanvas-footer-links-column h4 {
  color: white;
  margin-bottom: 1.2rem;
}

.scicanvas-footer-links-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.scicanvas-footer-links-column li {
  margin-bottom: 0.8rem;
}

.scicanvas-footer-links-column a {
  color: #adb5bd;
  transition: color 0.3s ease;
  text-decoration: none;
}

.scicanvas-footer-links-column a:hover {
  color: white;
}

.scicanvas-footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #4b5563;
  color: #adb5bd;
  font-size: 0.9rem;
}

/* Responsive Footer */
@media (max-width: 992px) {
  .scicanvas-footer-content {
    flex-direction: column;
  }
  
  .scicanvas-footer-logo {
    margin-bottom: 2rem;
    text-align: center;
    margin-right: 0;
  }
  
  .scicanvas-footer-links {
    flex-wrap: wrap;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .scicanvas-footer-links {
    flex-direction: column;
    gap: 2rem;
  }
  
  .scicanvas-footer-links-column {
    text-align: center;
  }
}

/* Title section styles */
.title-section {
  text-align: center;
  margin: 2rem auto 0.5rem;
  padding: 2rem 1rem 0.5rem;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.title-section h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.title-section p {
  font-size: 1.2rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* App container spacing */
.app-container {
  margin-top: 0;
  padding-top: 0;
}

/* Mobile menu styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--gray-800);
    margin: 5px 0;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .scicanvas-nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--gray-100);
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .mobile-menu a {
        display: block;
        padding: 0.8rem 0;
        color: var(--gray-800);
        text-decoration: none;
        border-bottom: 1px solid var(--gray-200);
        font-weight: 500;
    }
    
    .mobile-menu a:last-child {
        border-bottom: none;
    }

    .mobile-menu .try-free-btn {
        background: var(--primary);
        color: white;
        border-radius: var(--radius);
        padding: 0.5rem 1rem;
        margin-top: 0.5rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .scicanvas-header {
        padding: 0.6rem 0;
    }
    
    .title-section {
        margin: 0 auto 1rem;
    }
    
    .title-section h1 {
        font-size: 1.8rem;
    }
    
    .title-section p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 380px) {
    .scicanvas-header {
        padding: 0.5rem 0;
    }
    
    .title-section h1 {
        font-size: 1.5rem;
    }
    
    .title-section p {
        font-size: 0.9rem;
    }
} 
