/* Tudor Cioara — clean academic site */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #2a2f36;
  --muted: #5c6570;
  --border: #dde1e6;
  --accent: #1f4a6e;
  --accent-soft: #e8eef3;
  --link: #1f4a6e;
  --link-hover: #0f2f48;
  --max: 960px;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, #dfe7ef 0%, transparent 55%),
    var(--bg);
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--link-hover);
}

/* Layout shell */
.site {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* Header / nav */
.site-header {
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 1.9rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.brand a {
  color: var(--text);
  text-decoration: none;
}

.brand a:hover {
  color: var(--accent);
}

.brand .role {
  display: block;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-top: 0.2rem;
  line-height: 1.35;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 4px;
}

.nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-soft);
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

h1 {
  font-size: 1.65rem;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.28rem;
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.08rem;
  margin: 1.35rem 0 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
}

ul, ol {
  margin: 0 0 1.25rem 1.25rem;
}

li {
  margin-bottom: 0.55rem;
}

li::marker {
  color: var(--muted);
}

/* Home intro: photo + news | bio */
.intro {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  margin-bottom: 1.75rem;
}

.intro-aside {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.intro-photo {
  width: 240px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.intro-text h1 {
  margin-top: 0;
}

.intro-text p:last-of-type {
  margin-bottom: 0;
}

.award-note {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, var(--accent-soft) 0%, transparent 85%);
}

.award-note p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text);
}

.award-note strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--accent);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

/* Compact news under photo */
.aside-news {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.aside-news h2 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 0;
  margin: 0 0 0.65rem;
  padding: 0;
}

.aside-news .updates {
  margin: 0;
}

.aside-news .updates li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.aside-news .updates li:first-child {
  border-top: 0;
  padding-top: 0;
}

.aside-news .updates li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.aside-news .when {
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}

.aside-news .what {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Contact + profiles panels */
.contact-panel {
  background: transparent;
  border: 1px solid #c5ccd4;
  border-radius: 6px;
  padding: 1.35rem 1.5rem;
  margin: 0.75rem 0 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.contact-panel.centered {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.contact-rows {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.contact-rows > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.contact-rows > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-rows dt {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.15rem;
}

.contact-rows dd {
  margin: 0;
  color: var(--text);
}

.contact-panel.centered .contact-rows > div {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 0.35rem;
}

.contact-panel.centered .contact-rows dt {
  padding-top: 0;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-links li {
  margin: 0;
}

.profile-links a {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border: 1px solid #c5ccd4;
  border-radius: 4px;
  background: transparent;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.profile-links a:hover {
  background: transparent;
  border-color: #9aa6b2;
  color: var(--link-hover);
}

.contact-panel.centered .profile-links {
  justify-content: center;
}

.contact-page-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-page-wrap .map-embed {
  max-width: 720px;
}

/* Key updates */
.updates {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.updates li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.updates li:first-child {
  border-top: 1px solid var(--border);
}

.updates .when {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.updates .what {
  color: var(--text);
  margin: 0;
}

/* Publications */
.pub-list {
  list-style: decimal;
  margin-left: 1.4rem;
}

.pub-list li {
  margin-bottom: 0.9rem;
  padding-left: 0.25rem;
}

.tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.zone-astar,
.zone-red,
.zone-yellow {
  color: var(--text);
}

/* Research application domains */
.research-domains {
  margin: 2.25rem 0 1rem;
  padding: 1.35rem 1.35rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 70%);
}

.research-domains h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.domain-list {
  display: grid;
  gap: 1.15rem;
}

.domain h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.35rem;
  letter-spacing: -0.01em;
}

.domain p {
  margin: 0;
  color: var(--text);
}

@media (min-width: 720px) {
  .domain-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

/* Project cards */
.project-list {
  display: grid;
  gap: 1.5rem;
  margin: 1rem 0 2rem;
}

.project-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.15rem 1.35rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.project-card:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.project-card .thumb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.project-card .thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  margin: 0 auto;
}

.project-card .thumb-link:hover .thumb {
  border-color: #c5ccd4;
}

.project-card h3 {
  margin: 0.15rem 0 0.45rem;
  font-size: 1.08rem;
  line-height: 1.35;
}

.project-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.project-card h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.project-call {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.project-call .program {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.project-role {
  margin: 0.15rem 0 0.45rem;
  font-size: 0.9rem;
  color: var(--text);
}

.project-role span {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-card p {
  margin: 0 0 0.55rem;
  font-size: 0.98rem;
}

.project-list.compact {
  gap: 0;
  margin-top: 0.65rem;
}

.project-card.compact {
  display: block;
  padding: 0.85rem 0;
  gap: 0;
}

.project-card.compact .project-call {
  margin-bottom: 0.05rem;
}

.project-card.compact .project-role {
  margin: 0.1rem 0 0.25rem;
}

.project-card.compact h3 {
  margin: 0.05rem 0 0.35rem;
  font-size: 1.02rem;
}

.project-card.compact p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.project-card .more {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.project-card .more:hover {
  text-decoration: underline;
}

.news-note {
  font-size: 0.92rem;
  color: var(--muted);
  margin: -0.25rem 0 0.85rem;
}

/* PhD students */
.student-list {
  list-style: none;
  margin: 0.75rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.student-list li {
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.student-list .name {
  font-weight: 600;
  color: var(--text);
}

.student-list .name a {
  color: inherit;
  text-decoration: none;
}

.student-list .name a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.student-list .note {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Map */
.map-embed {
  width: 100%;
  height: 360px;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.25rem;
  text-align: center;
}

.site-footer a {
  opacity: 0.85;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer a:hover {
  opacity: 1;
}

.site-footer img {
  height: 52px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin: 0 auto;
}

.site-footer img[src*="logo_UTCN"] {
  height: 110px;
  max-width: 110px;
}

.footer-note {
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 720px) {
  .intro {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .intro-photo {
    width: 200px;
  }

  .aside-news {
    width: 100%;
    max-width: 36rem;
  }

  .contact-rows > div {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card .thumb {
    max-width: 320px;
  }

  .nav a {
    padding: 0.35rem 0.55rem;
  }

  .map-embed {
    height: 280px;
  }
}
