/* essay.css - Essay page specific styles */

.essay-wrapper {
  padding: 3rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 5.5rem;
}

.essay-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #B0BEC5;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  color: #37474F;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.subtitle {
  font-size: 1.1rem;
  color: #546E7A;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}

.essay-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 3rem 0;
  padding: 1rem 0;
}

.tab {
  padding: 0.75rem 2rem;
  font-family: 'Roboto Mono', monospace;
  border: 2px solid #37474F;
  background-color: transparent;
  color: #37474F;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.tab:hover,
.tab.active {
  background-color: #37474F; 
  color: #ECEFF1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.3);
}

.essay-content {
  background-color: #FAFAFA;
  padding: 3rem;
  border: 1px solid #E0E0E0;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.essay-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 3px solid #00E5FF;
}

.essay-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: #37474F;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.3;
  font-weight: 600;
}

.essay-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.85rem;
  color: #607D8B;
  margin-top: 1rem;
}

.essay-meta span {
  background-color: #ECEFF1;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid #CFD8DC;
}

.course-code {
  color: #00E5FF !important;
  font-weight: 600;
}

.essay-body {
  font-size: 1.05rem;
  color: #424242;
  line-height: 1.8;
}

.essay-section {
  margin-bottom: 3rem;
}

.essay-intro {
  font-size: 1.15rem;
  font-weight: 500;
  color: #37474F;
  border-left: 4px solid #00E5FF;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background-color: #F8FFFE;
  border-radius: 0.5rem;
  font-style: italic;
}

.section-heading {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  color: #37474F;
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #00E5FF;
  font-weight: 600;
}

.subsection-heading {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  color: #455A64;
  margin-bottom: 1rem;
  margin-top: 2rem;
  font-weight: 500;
  position: relative;
}

.subsection-heading::before {
  content: "→";
  color: #00E5FF;
  font-weight: bold;
  margin-right: 0.5rem;
}

.essay-body p {
  margin-bottom: 1.5rem;
  text-align: justify;
  color: #424242;
}

.essay-body em {
  color: #37474F;
  font-weight: 500;
}

.conclusion-final {
  font-weight: 500;
  font-size: 1.1rem;
  color: #37474F;
  border: 2px solid #00E5FF;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background-color: #F8FFFE;
  margin-top: 2rem;
}

/* References Section */
.references-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 3px solid #37474F;
}

.references-section .section-heading {
  border-bottom: 2px solid #37474F;
  color: #37474F;
}

.references-list {
  margin-top: 2rem;
}

.reference {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #F5F5F5;
  border-left: 3px solid #00E5FF;
  border-radius: 0.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #424242;
}

.reference em {
  font-style: italic;
  color: #37474F;
}

/* Mobile-specific overrides */
@media (max-width: 768px) {
  .essay-wrapper {
    padding: 2rem 0.5rem;
    padding-top: 4.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .essay-content {
    padding: 2rem 1.5rem;
  }
  
  .essay-title {
    font-size: 1.5rem;
    line-height: 1.4;
  }
  
  .essay-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  
  .essay-meta span {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
  
  .section-heading {
    font-size: 1.3rem;
  }
  
  .subsection-heading {
    font-size: 1.1rem;
  }
  
  .essay-intro {
    font-size: 1.05rem;
    padding: 1rem;
  }
  
  .essay-body {
    font-size: 1rem;
  }
  
  .tab {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
  }
  
  .reference {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
}

@media (max-width: 480px) {
  .essay-wrapper {
    padding: 1.5rem 0.25rem;
  }
  
  .section-title {
    font-size: 1.75rem;
    letter-spacing: 0.5px;
  }
  
  .essay-content {
    padding: 1.5rem 1rem;
  }
  
  .essay-title {
    font-size: 1.3rem;
  }
  
  .essay-tabs {
    gap: 0.5rem;
  }
  
  .tab {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
  
  .essay-intro {
    font-size: 1rem;
    padding: 0.8rem;
  }
  
  .conclusion-final {
    font-size: 1rem;
    padding: 1rem;
  }
}

/* Print Styles */
@media print {
  .essay-wrapper {
    max-width: none;
    padding: 0;
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .essay-hero {
    page-break-after: avoid;
  }
  
  .essay-tabs {
    display: none;
  }
  
  .section-heading {
    page-break-after: avoid;
    color: #000;
  }
  
  .subsection-heading {
    page-break-after: avoid;
    color: #000;
  }
  
  .essay-content {
    box-shadow: none;
    border: none;
    background-color: transparent;
  }
  
  .reference {
    page-break-inside: avoid;
    background-color: transparent;
    border-left: 2px solid #000;
  }
}