/* Research Papers Styles - Academic Archive */

.content {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
}

/* Research Controls */
.research-controls {
  margin: 2rem 0;
  background: var(--card);
  border: 1px solid rgba(176, 176, 176, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
}

.search-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

#searchInput {
  flex: 1;
  background: var(--bg);
  border: 1px solid rgba(176, 176, 176, 0.3);
  color: var(--fg);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

#searchInput:focus {
  outline: none;
  border-color: var(--pixel-cyan);
  box-shadow: 0 0 0 3px rgba(224, 224, 224, 0.1);
}

#searchInput::placeholder {
  color: rgba(176, 176, 176, 0.6);
  font-style: italic;
}

.search-btn {
  background: var(--pixel-cyan);
  color: var(--bg);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  will-change: transform;
}

.search-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-select {
  background: var(--bg);
  border: 1px solid rgba(176, 176, 176, 0.3);
  color: var(--fg);
  padding: 0.75rem;
  border-radius: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.3s ease;
  min-width: 140px;
}

.filter-select:focus {
  outline: none;
  border-color: var(--pixel-cyan);
}

/* Papers Grid */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.paper-card {
  background: var(--card);
  border: 1px solid rgba(176, 176, 176, 0.1);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  will-change: transform;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.paper-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(224, 224, 224, 0.3);
}

.paper-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--pixel-cyan), var(--crt-blue));
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.paper-card:hover::before {
  opacity: 1;
}

.paper-header {
  margin-bottom: 1.5rem;
}

.paper-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg);
  margin: 0 0 1rem 0;
  font-family: 'IBM Plex Mono', monospace;
  line-height: 1.4;
  transition: color 0.3s ease;
  word-wrap: break-word;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: none;
  white-space: normal;
  max-width: 100%;
}

.paper-card:hover .paper-title {
  color: var(--pixel-cyan);
}

.paper-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: rgba(176, 176, 176, 0.8);
  margin-bottom: 1rem;
}

.paper-author {
  font-weight: 600;
  color: var(--crt-blue);
}

.paper-date,
.paper-category {
  opacity: 0.9;
}

.paper-category {
  background: rgba(224, 224, 224, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.paper-abstract {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: rgba(176, 176, 176, 0.95);
}

.paper-abstract p {
  margin: 0;
}

.paper-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.tag {
  background: rgba(224, 224, 224, 0.08);
  color: var(--fg);
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(176, 176, 176, 0.2);
  transition: all 0.3s ease;
}

.tag:hover {
  background: var(--pixel-cyan);
  color: var(--bg);
  border-color: var(--pixel-cyan);
}

.paper-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(176, 176, 176, 0.1);
}

.action-btn {
  background: var(--bg);
  border: 1px solid rgba(176, 176, 176, 0.3);
  color: var(--fg);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  will-change: transform;
}

.action-btn.primary {
  background: var(--pixel-cyan);
  color: var(--bg);
  border-color: var(--pixel-cyan);
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.action-btn.primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.action-btn.secondary:hover {
  background: var(--card);
  border-color: var(--pixel-cyan);
  color: var(--pixel-cyan);
}

/* Paper Modal */
.paper-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.paper-modal .modal-content {
  position: relative;
  width: 90vw;
  max-width: 800px;
  max-height: 90vh;
  background: var(--card);
  border: 1px solid rgba(176, 176, 176, 0.2);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem;
  border-bottom: 1px solid rgba(176, 176, 176, 0.1);
}

.modal-header h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--pixel-cyan);
  font-family: 'IBM Plex Mono', monospace;
  line-height: 1.3;
  flex: 1;
  margin-right: 1rem;
}

.modal-close {
  background: var(--bg);
  border: 1px solid rgba(176, 176, 176, 0.3);
  color: var(--fg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--pixel-cyan);
  color: var(--bg);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.modal-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: rgba(176, 176, 176, 0.8);
}

.modal-abstract {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1rem;
}

.modal-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.modal-content-area {
  border-top: 1px solid rgba(176, 176, 176, 0.1);
  padding-top: 1.5rem;
}



.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Search Results Highlighting */
.highlight {
  background: rgba(224, 224, 224, 0.2);
  padding: 0.125rem 0.25rem;
  border-radius: 3px;
  color: var(--pixel-cyan);
  font-weight: 600;
}

/* Filter Animation */
.paper-card {
  animation: fadeInUp 0.6s ease-out;
}

.paper-card.hidden {
  display: none;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .content {
    padding: 1rem 0.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .research-controls {
    padding: 1rem;
    margin: 1rem 0;
  }

  .search-bar {
    flex-direction: column;
    gap: 0.5rem;
  }

  #searchInput {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
  }

  .search-btn {
    padding: 0.75rem;
    width: 100%;
  }

  .filter-controls {
    flex-direction: column;
    gap: 0.75rem;
  }

  .filter-select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
    min-width: 120px;
  }

  .papers-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0 0.5rem;
    width: calc(100% - 1rem);
    max-width: calc(100% - 1rem);
    margin-left: auto;
    margin-right: auto;
  }

  .paper-card {
    padding: 1rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .paper-title {
    font-size: 1rem;
    line-height: 1.4;
    word-wrap: break-word;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    white-space: normal;
    max-width: 100%;
  }

  .paper-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .paper-abstract p {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .paper-tags {
    flex-wrap: wrap;
  }

  .tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .paper-actions {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .action-btn {
    padding: 0.75rem;
    font-size: 0.875rem;
    width: 100%;
    text-align: center;
  }

  .paper-modal .modal-content {
    width: 95vw;
    max-height: 95vh;
    margin: 0.5rem;
    padding: 1rem;
    border-radius: 8px;
  }

  .modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .modal-header h2 {
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0;
  }

  .modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 1.5rem;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
  }

  .modal-abstract {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .modal-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .modal-actions .action-btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 0.875rem;
  }

  .results-count {
    font-size: 0.8rem !important;
    margin: 0.75rem 0 !important;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 0.75rem 0.25rem;
  }

  .hero {
    padding: 1.5rem 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero p {
    font-size: 0.875rem;
  }

  .research-controls {
    padding: 0.75rem;
    border-radius: 8px;
    margin: 0.5rem 0;
    width: calc(100% - 0.5rem);
    max-width: calc(100% - 0.5rem);
    box-sizing: border-box;
  }

  .papers-grid {
    padding: 0 0.25rem;
    width: calc(100% - 0.5rem);
    max-width: calc(100% - 0.5rem);
    gap: 0.75rem;
  }

  .paper-card {
    padding: 0.75rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .paper-title {
    font-size: 0.95rem;
    line-height: 1.3;
    word-wrap: break-word;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    white-space: normal;
    max-width: 100%;
  }

  .paper-abstract p {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .paper-meta {
    font-size: 0.8rem;
  }

  .paper-tags {
    margin-bottom: 1rem;
  }

  .tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
}

/* Touch-friendly enhancements for mobile */
@media (hover: none) and (pointer: coarse) {
  .action-btn, .search-btn, .filter-select {
    min-height: 44px; /* iOS recommended touch target size */
  }

  .paper-card {
    padding: 1.25rem;
    cursor: pointer;
  }

  .paper-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  .modal-close {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  .paper-card,
  .action-btn,
  .modal-close,
  .search-btn {
    transition: none;
  }
  
  .paper-card:hover {
    transform: none;
  }
}

/* GPU acceleration hints */
.paper-card,
.action-btn,
.modal-content,
.search-btn,
.modal-close {
  transform: translateZ(0);
}

/* Full-screen paper modal styling */
.full-paper-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem;
  animation: modalFadeIn 0.3s ease;
}

.full-paper-modal.closing {
  animation: modalFadeOut 0.2s ease forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
  to {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
}

@keyframes modalFadeOut {
  from {
    opacity: 1;
    backdrop-filter: blur(4px);
  }
  to {
    opacity: 0;
    backdrop-filter: blur(0px);
  }
}

.full-paper-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.full-paper-content {
  position: relative;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  background: var(--bg);
  border: 2px solid var(--pixel-cyan);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.3),
    inset 0 0 60px rgba(0, 0, 0, 0.4);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.full-paper-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 2.5rem 1rem;
  border-bottom: 1px solid rgba(0, 255, 255, 0.2);
  background: rgba(15, 15, 15, 0.8);
}

.full-paper-title-area {
  flex: 1;
}

.full-paper-title {
  color: var(--pixel-cyan);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.full-paper-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.full-paper-meta span {
  font-family: 'IBM Plex Mono', monospace;
}

.full-paper-close {
  background: transparent;
  border: 2px solid var(--pixel-cyan);
  color: var(--pixel-cyan);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  font-weight: bold;
  margin-left: 2rem;
  flex-shrink: 0;
}

.full-paper-close:hover {
  background: var(--pixel-cyan);
  color: var(--bg);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  transform: scale(1.05);
}

.full-paper-body {
  padding: 2.5rem;
  max-height: calc(90vh - 120px);
  overflow-y: auto;
  font-family: 'IBM Plex Mono', monospace;
  line-height: 1.7;
  position: relative;
}

/* CRT Effect for paper content */
.full-paper-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 255, 0.03) 2px,
      rgba(0, 255, 255, 0.03) 4px
    );
  pointer-events: none;
  z-index: 0;
}

.full-paper-body > * {
  position: relative;
  z-index: 1;
}

/* Paper content styling within modal */
.full-paper-body h1 { 
  color: var(--pixel-cyan); 
  border-bottom: 2px solid var(--pixel-cyan); 
  padding-bottom: 0.75rem; 
  margin: 0 0 2rem 0;
  font-size: 1.8rem;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.full-paper-body h2 { 
  color: var(--pixel-cyan); 
  margin-top: 2.5rem; 
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 500;
  position: relative;
  padding-left: 1rem;
}

.full-paper-body h2::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.full-paper-body h3 { 
  color: var(--crt-blue); 
  margin-top: 2rem; 
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.full-paper-body p {
  margin-bottom: 1.25rem;
  text-align: justify;
  color: var(--fg);
}

.full-paper-body em { 
  color: var(--muted); 
  font-style: italic; 
  opacity: 0.9;
}

.full-paper-body strong { 
  color: var(--pixel-cyan); 
  font-weight: 600; 
}

.full-paper-body pre,
.full-paper-body .code-block { 
  background: rgba(0, 0, 0, 0.7); 
  padding: 1.5rem; 
  border-radius: 6px; 
  overflow-x: auto; 
  border: 1px solid rgba(0, 255, 255, 0.2);
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.full-paper-body code { 
  background: rgba(0, 0, 0, 0.4); 
  padding: 0.2rem 0.5rem; 
  border-radius: 3px;
  color: var(--pixel-cyan);
  border: 1px solid rgba(0, 255, 255, 0.1);
  font-size: 0.9rem;
}

.full-paper-body blockquote { 
  border-left: 4px solid var(--pixel-cyan); 
  padding: 1rem 1rem 1rem 1.5rem;
  margin: 2rem 0; 
  font-style: italic;
  background: rgba(0, 255, 255, 0.05);
  border-radius: 0 4px 4px 0;
}

.full-paper-body ul, 
.full-paper-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.full-paper-body li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Diagram styling within modal */
.full-paper-body .mermaid-diagram {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
  overflow: auto;
}

.full-paper-body .mermaid-diagram svg {
  max-width: 100%;
  height: auto;
}

.full-paper-body .ascii-diagram {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-family: 'Courier New', 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #00ffff;
  overflow-x: auto;
  white-space: pre;
}

.full-paper-body .ascii-diagram code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

.full-paper-body .dot-diagram {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  font-family: 'Courier New', 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: #b0b0b0;
  overflow-x: auto;
  white-space: pre;
}

/* SVG styling in modal */
.full-paper-body svg {
  max-width: 100%;
  height: auto;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
}

/* Enhanced code block styling for better contrast */
.full-paper-body .code-block {
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(0, 255, 255, 0.2);
  color: #e0e0e0;
}

/* Harmonization Overlay */
.harmonization-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(45deg, 
    rgba(0, 0, 0, 0.95) 0%, 
    rgba(0, 20, 20, 0.95) 50%, 
    rgba(0, 0, 0, 0.95) 100%);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: harmonizePulse 3s ease-in-out infinite;
}

.harmonization-content {
  text-align: center;
  max-width: 600px;
  padding: 3rem;
  border: 2px solid rgba(0, 255, 255, 0.3);
  border-radius: 12px;
  background: radial-gradient(circle at center, 
    rgba(0, 40, 40, 0.8) 0%, 
    rgba(0, 0, 0, 0.9) 100%);
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.2),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.harmonization-symbol {
  font-size: 4rem;
  color: #00ffff;
  margin-bottom: 1.5rem;
  animation: symbolRotate 8s linear infinite;
  text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

.harmonization-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.8rem;
  font-weight: 600;
  color: #00ffff;
  margin-bottom: 1.5rem;
  letter-spacing: 0.15em;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.harmonization-message {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1rem;
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.harmonization-progress {
  margin-top: 2rem;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(0, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #00ffff 50%, 
    transparent 100%);
  animation: harmonizeProgress 4s ease-in-out infinite;
}

.progress-text {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  color: #b0b0b0;
  font-style: italic;
}

@keyframes harmonizePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.95; }
}

@keyframes symbolRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes harmonizeProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.harmonization-home-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background: rgba(0, 255, 255, 0.1);
  border: 1px solid rgba(0, 255, 255, 0.4);
  border-radius: 6px;
  color: #00ffff;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.harmonization-home-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  border-color: #00ffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
  .full-paper-modal {
    padding: 1rem;
  }
  
  .full-paper-header {
    padding: 1.5rem 1.5rem 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .full-paper-close {
    margin-left: 0;
    align-self: flex-end;
  }
  
  .full-paper-title {
    font-size: 1.5rem;
  }
  
  .full-paper-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .full-paper-body {
    padding: 1.5rem;
    font-size: 0.9rem;
  }
  
  .full-paper-body h1 {
    font-size: 1.5rem;
  }
  
  .full-paper-body h2 {
    font-size: 1.3rem;
  }
}