/* Custom Styles for Start Your Quant */

/* Reset and Base */
* {
  box-sizing: border-box;
}

body {
  padding-top: 60px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Page Layout */
.page-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.content-wrapper {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.main-content {
  flex: 1;
  min-width: 0;
}

/* Hero Header (Homepage) */
.hero-header {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 1rem;
  margin: 2rem 0 3rem;
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.hero-title {
  font-size: 3rem;
  margin: 0 0 1rem;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.hero-description {
  font-size: 1.25rem;
  margin: 0;
  opacity: 0.95;
}

/* Page Header (Other Pages) */
.page-header {
  border-bottom: 3px solid #f0f0f0;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2.5rem;
  color: #333;
  margin: 0 0 0.5rem;
}

.page-description {
  font-size: 1.1rem;
  color: #666;
  margin: 0;
}

/* Content Styling */
.content h2 {
  font-size: 2rem;
  color: #333;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e9ecef;
}

.content h3 {
  font-size: 1.5rem;
  color: #444;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content p {
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.25rem;
}

.content ul, .content ol {
  line-height: 1.7;
  color: #555;
  margin-bottom: 1.25rem;
}

.content code {
  background: #f6f8fa;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
  color: #e83e8c;
}

.content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.content pre code {
  background: none;
  padding: 0;
  color: #f8f8f2;
  font-size: 0.95rem;
}

.content blockquote {
  border-left: 4px solid #667eea;
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: #666;
  font-style: italic;
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

/* Tables */
.content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content th {
  background: #667eea;
  color: white;
  padding: 1rem;
  text-align: left;
}

.content td {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.content tr:hover {
  background: #f8f9fa;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding: 0;
  background: #1a1a1a;
  color: #ccc;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #667eea;
}

.footer-bottom {
  background: #0d0d0d;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #667eea;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #764ba2;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Cards and Boxes */
.info-box {
  background: #f0f7ff;
  border-left: 4px solid #007bff;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.warning-box {
  background: #fff9e6;
  border-left: 4px solid #ffc107;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.success-box {
  background: #e6f7e6;
  border-left: 4px solid #28a745;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

/* Buttons */
.btn-primary {
  background: #667eea;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-primary:hover {
  background: #764ba2;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
  }

  .sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .page-wrapper {
    padding: 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .scroll-to-top {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    bottom: 1rem;
    right: 1rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content > * {
  animation: fadeIn 0.5s ease-out;
}

/* Override Cayman Theme */
.main-content {
  max-width: none;
  padding: 0;
  font-size: 1rem;
}

.page-header {
  background: none;
  color: inherit;
}

.project-name {
  color: inherit;
}

.project-tagline {
  color: inherit;
  opacity: 1;
}

/* Remove default Cayman button styles */
.btn {
  background: none;
  border: none;
  color: inherit;
}

/* Fix link colors */
a {
  color: #667eea;
  transition: color 0.3s ease;
}

a:hover {
  color: #764ba2;
}