/* ========================================
   RESEARCH SECTION STYLES
   ======================================== */

/* Research Landing Page */
.research-page {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.research-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.research-intro .page-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--primary-cyan, #00d9ff);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.research-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light, #e0e0e0);
}

/* Research Category Cards */
.research-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.research-card {
  background: rgba(0, 217, 255, 0.05);
  border: 2px solid var(--primary-cyan, #00d9ff);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.research-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.research-card:hover::before {
  left: 100%;
}

.research-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
  border-color: var(--accent-bright, #00ffff);
}

.card-inner h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-cyan, #00d9ff);
}

.card-inner p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--text-light, #e0e0e0);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-cyan, #00d9ff);
  text-decoration: none;
  font-weight: 600;
  transition: gap 0.3s ease;
}

.card-link:hover {
  gap: 1rem;
}

.card-link .arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.card-link:hover .arrow {
  transform: translateX(5px);
}

/* Research Subpage Layout */
.research-subpage {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.research-subpage .page-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-cyan, #00d9ff);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.research-overview {
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(0, 217, 255, 0.03);
  border-left: 4px solid var(--primary-cyan, #00d9ff);
}

.research-overview p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--text-light, #e0e0e0);
}

/* Project Entries */
.projects-section {
  margin-bottom: 3rem;
}

.projects-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-cyan, #00d9ff);
  border-bottom: 2px solid var(--primary-cyan, #00d9ff);
  padding-bottom: 0.5rem;
}

.project-entry {
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 8px;
  background: rgba(0, 217, 255, 0.02);
  transition: all 0.3s ease;
}

.project-entry:hover {
  border-color: var(--primary-cyan, #00d9ff);
  background: rgba(0, 217, 255, 0.05);
}

.project-entry[open] {
  border-color: var(--primary-cyan, #00d9ff);
}

.project-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  cursor: pointer;
  list-style: none;
  transition: all 0.3s ease;
}

.project-summary::-webkit-details-marker {
  display: none;
}

.project-summary:hover {
  background: rgba(0, 217, 255, 0.08);
}

.project-summary h3 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--accent-bright, #00ffff);
}

.toggle-icon {
  font-size: 1.2rem;
  color: var(--primary-cyan, #00d9ff);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
}

.project-entry[open] .toggle-icon {
  transform: rotate(180deg);
}

.project-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-meta {
  font-size: 0.9rem;
  color: var(--text-muted, #FFC2D8);
  margin-bottom: 1rem;
  font-style: italic;
}

.project-description {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--text-light, #e0e0e0);
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid var(--primary-cyan, #00d9ff);
  border-radius: 4px;
  color: var(--primary-cyan, #00d9ff);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: rgba(0, 217, 255, 0.2);
  transform: translateX(3px);
}

/* Future Work Section */
.future-work {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(0, 217, 255, 0.03);
  border-radius: 8px;
}

.future-work h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-cyan, #00d9ff);
}

.future-work ul {
  list-style: none;
  padding: 0;
}

.future-work li {
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  position: relative;
  color: var(--text-light, #e0e0e0);
}

.future-work li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--primary-cyan, #00d9ff);
  font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .research-categories {
    grid-template-columns: 1fr;
  }
  
  .research-intro .page-title {
    font-size: 2rem;
  }
  
  .research-subpage .page-title {
    font-size: 1.8rem;
  }
}