/* Custom styles for AI-Native Research Platform */

/* Base Styles */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

/* Feature and Agent Icons */
.feature-icon, .agent-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

/* Agent Cards */
.agent-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Paper Author Badges */
.author-badge {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  color: #e9ecef;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Progress Timeline for Research Journey */
.progress-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 0 auto;
  padding: 0;
}

.progress-timeline::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 0;
}

.progress-step {
  position: relative;
  z-index: 1;
  width: 20%;
  padding-top: 2.5rem;
  text-align: center;
}

.progress-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: #2d3139;
  border: 2px solid rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.progress-step.active::before {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.progress-step.completed::before {
  background-color: #198754;
  border-color: #198754;
}

.progress-step.completed::after {
  content: '\f00c';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0.15rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.75rem;
  z-index: 2;
}

/* Paper Selection List */
.paper-selection {
  max-height: 300px;
  overflow-y: auto;
}

/* Graph Container */
.graph-container {
  height: 400px;
  width: 100%;
  border-radius: 0.25rem;
  background-color: #1e1e1e;
}

/* Analytics Charts */
.analytics-chart {
  height: 300px;
  width: 100%;
}

/* Custom Scroll Bar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Full Text Content Styles */
.full-text-content {
  line-height: 1.6;
}

.full-text-content h1, 
.full-text-content h2, 
.full-text-content h3, 
.full-text-content h4, 
.full-text-content h5, 
.full-text-content h6 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.full-text-content p {
  margin-bottom: 1rem;
}

.full-text-content ul, 
.full-text-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.full-text-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.25rem;
  margin: 1rem 0;
}

.full-text-content blockquote {
  padding: 0.5rem 1rem;
  border-left: 3px solid rgba(255, 255, 255, 0.2);
  margin: 1rem 0;
  color: rgba(255, 255, 255, 0.7);
}

.full-text-content code {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.full-text-content pre {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 0.25rem;
  overflow-x: auto;
  margin: 1rem 0;
}

.full-text-content pre code {
  background-color: transparent;
  padding: 0;
}

/* Custom Card Styles for Organization */
.organization-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.organization-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Export Options */
.export-option {
  transition: all 0.2s ease;
}

.export-option:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Media Queries */
@media (max-width: 767.98px) {
  .progress-timeline {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .progress-timeline::before {
    height: 100%;
    width: 2px;
    top: 0;
    left: 0.75rem;
  }
  
  .progress-step {
    width: 100%;
    padding-top: 0;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
  }
  
  .progress-step::before {
    left: 0.75rem;
    top: 0.25rem;
    transform: none;
  }
  
  .progress-step.completed::after {
    left: 0.75rem;
    top: 0.4rem;
    transform: none;
  }
}