/* Stephen Plaza - Professional Portfolio Styles */

:root {
  --primary-color: #00274C;
  --secondary-color: #00274C;
  --accent-color: #FFCB05;
  --dark-bg: #00274C;
  --light-bg: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-color: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--light-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 3rem 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.profile-picture {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.header-text {
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.contact-email {
  font-size: 1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  color: white;
  opacity: 0.95;
}

.contact-linkedin {
  font-size: 1rem;
  margin-top: 0.25rem;
}

.contact-linkedin a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.contact-linkedin a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border-color);
}

.tab-button {
  background: none;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s;
  border-bottom: 3px solid transparent;
  position: relative;
  bottom: -2px;
}

.tab-button:hover {
  color: var(--primary-color);
  background-color: rgba(0, 39, 76, 0.1);
}

.tab-button.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Tab Panels */
.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Bio Section */
.bio-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-weight: 700;
}

.bio-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.current-role,
.expertise {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.current-role h3,
.expertise h3 {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
}

.expertise ul {
  list-style: none;
  padding: 0;
}

.expertise li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.expertise li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: bold;
}

/* Highlights Section */
.section-description {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.highlight-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.highlight-card .date {
  color: var(--primary-color);
  background-color: var(--accent-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.highlight-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  font-weight: 600;
}

.highlight-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Publications Section */
.publications-list {
  max-width: 900px;
}

.publication-item {
  background: white;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.publication-item:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pub-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.publication-item .year {
  color: var(--primary-color);
  background-color: var(--accent-color);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.publication-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.4;
}

.publication-item .venue {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.publication-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.publication-link:hover {
  background-color: var(--accent-color);
  text-decoration: none;
}

/* Expandable Description */
.description-toggle {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0;
  margin-top: 0.25rem;
  display: block;
  transition: color 0.2s;
}

.description-toggle:hover {
  color: var(--secondary-color);
}

.description-toggle::before {
  content: '▸ ';
  display: inline-block;
  transition: transform 0.2s;
}

.description-toggle.expanded::before {
  transform: rotate(90deg);
}

.description-toggle.expanded {
  margin-bottom: 0.5rem;
}

.description-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.description-content.expanded {
  max-height: 500px;
  padding-bottom: 0.5rem;
}

/* Highlighted Publications (First/Senior Author) */
.highlighted-publication {
  border-left: 3px solid var(--accent-color);
  background: linear-gradient(to right, rgba(255, 203, 5, 0.04), white);
}

/* Author Marker (star after title) */
.author-marker {
  color: var(--accent-color);
  font-weight: 700;
  margin-left: 0.25rem;
  font-size: 1.2em;
}

/* Author Explanation Note */
.author-explanation {
  margin-bottom: 1rem;
}

.author-explanation p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Loading State */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
  font-style: italic;
}

/* Update Note */
.update-note {
  text-align: center;
  margin-top: 2rem;
  padding: 1rem;
  background: #eff6ff;
  border-radius: 8px;
}

.update-note p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

/* Footer */
footer {
  background: var(--dark-bg);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
  text-align: center;
}

footer p {
  margin: 0.5rem 0;
  opacity: 0.9;
}

.built-by a {
  color: var(--accent-color);
  text-decoration: none;
}

.built-by a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .header-text {
    text-align: center;
  }

  .profile-picture {
    width: 120px;
    height: 120px;
  }

  header h1 {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .contact-email {
    font-size: 0.9rem;
  }

  .contact-linkedin {
    font-size: 0.9rem;
  }

  .tabs {
    flex-direction: column;
    gap: 0;
  }

  .tab-button {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    border-left: 3px solid transparent;
  }

  .tab-button.active {
    border-left-color: var(--primary-color);
    border-bottom-color: var(--border-color);
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .profile-picture {
    width: 100px;
    height: 100px;
  }

  .container {
    padding: 0 1rem;
  }
}
