/* ==========================================================================
   Style for the Research Page - Clément Rouvroy
   ========================================================================== */

/* --- General Theme & Layout (consistent with the main site) --- */
body {
  font-family: 'Roboto', sans-serif; 
  margin: 0;
  padding: 0;
  background-color: #f8f8f8;
  color: #333; 
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #264653; /* Dark teal */
  color: #fff;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width:100%;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav li {
  margin: 0 1rem;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: #457b9d; /* Slightly lighter teal */
}

main {
  flex: 1; /* Ensures the main content pushes the footer down */
  max-width: 900px;
  margin: 0 auto; /* Centers the content */
  padding: 2rem;
  width: 100%;
  box-sizing: border-box; /* Ensures padding is included in the width */
}

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
  width: 100%;
  font-size: 0.8rem;
}

/* --- Typography (consistent with the main site) --- */
h1 {
  font-family: 'Playfair Display', serif;
  color: #264653;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
  color: #264653;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

a:hover {
  color: #457b9d;
  text-decoration: underline;
}

/* --- Publication List Styling --- */
.publication {
    background-color: #fff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 5px solid #264653;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    line-height: 1.7;
}

.year {
    font-weight: bold;
    color: #333;
    margin-right: 0.5em;
}

.title {
    font-style: italic;
    color: #444;
}

.journal {
    font-weight: bold;
    color: #264653;
    margin-left: 0.3em;
}

.publication a {
    margin-left: 0.75em;
    font-size: 0.9em;
    white-space: nowrap; /* Prevents the link from breaking line */
}

/* --- Abstract Toggle & Content (ensures functionality) --- */
.abstract-toggle {
  cursor: pointer;
  color: #457b9d; /* Lighter teal for interactivity */
  text-decoration: underline;
  margin-left: 10px;
  font-size: 0.9em;
  transition: color 0.3s ease;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: normal;
}

.abstract-toggle:hover {
  color: #e76f51; /* A contrasting color for hover */
  background-color: rgba(38, 70, 83, 0.05);
}

.abstract-content {
  display: none; /* Hidden by default, controlled by JS */
  margin: 15px 0 5px 0;
  padding: 15px;
  background-color: #f8f8f8;
  border-left: 3px solid #457b9d;
  border-radius: 0 5px 5px 0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  line-height: 1.6;
  color: #555;
  font-style: normal; /* Override potential inherited italic */
}

/* Animation for the abstract appearing */
.abstract-content.visible {
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}