/* ===== YAVUZ ARSLAN — ACADEMIC SITE ===== */
/* Dark scholarly theme with warm gold accents */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --bg-primary: #0f1218;
  --bg-secondary: #161a22;
  --bg-card: #1c2029;
  --bg-hover: #22262f;
  --text-primary: #e8e6e1;
  --text-secondary: #9a9790;
  --text-muted: #6b6860;
  --accent: #c9a84c;
  --accent-dim: #a08636;
  --accent-glow: rgba(201, 168, 76, 0.08);
  --link: #7eb8c9;
  --link-hover: #a0d4e4;
  --divider: rgba(201, 168, 76, 0.15);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --max-width: 860px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ===== NAVIGATION ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 18, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
  padding: 0 2rem;
}

nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

nav .site-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}

nav .site-name:hover {
  color: var(--accent);
}

nav .nav-links {
  display: flex;
  gap: 0.25rem;
}

nav .nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--transition), background var(--transition);
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

/* Mobile nav toggle */
nav .nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 640px) {
  nav .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(15, 18, 24, 0.97);
    flex-direction: column;
    padding: 0.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--divider);
  }
  nav .nav-links.open { display: flex; }
  nav .nav-toggle { display: block; }
  nav .nav-links a {
    padding: 0.6rem 0.5rem;
    font-size: 0.9rem;
  }
}

/* ===== MAIN CONTENT ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

/* ===== HEADINGS ===== */
h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 3rem;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

h2::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--divider);
  margin-top: 0.5rem;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.3rem;
}

/* ===== HERO / HOME ===== */
.hero {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.hero-photo {
  flex-shrink: 0;
}

.hero-photo img {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--divider);
}

.hero-text .subtitle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.hero-text .affiliation {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.hero-text .affiliation a {
  color: var(--link);
  text-decoration: none;
}

.hero-text .affiliation a:hover {
  color: var(--link-hover);
}

.hero-text .bio {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.hero-text .email {
  font-size: 0.9rem;
  color: var(--accent-dim);
  font-family: var(--font-body);
}

@media (max-width: 640px) {
  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .hero-photo img {
    width: 180px;
    height: 230px;
  }
  h1 { font-size: 2.2rem; }
}

/* ===== RESEARCH INTERESTS ===== */
.interests-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 2rem;
  margin-top: 0.8rem;
}

.interests-grid .interest {
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.interests-grid .interest::before {
  content: '—';
  color: var(--accent-dim);
  margin-right: 0.5rem;
}

@media (max-width: 500px) {
  .interests-grid { grid-template-columns: 1fr; }
}

/* ===== BOTTOM CARDS (HOME) ===== */
.home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.home-card {
  background: var(--bg-card);
  border-radius: 6px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.04);
  transition: border-color var(--transition);
}

.home-card:hover {
  border-color: var(--divider);
}

.home-card h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.15rem;
}

.home-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.home-card .card-link {
  font-size: 0.85rem;
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
}

.home-card .card-link:hover {
  color: var(--link-hover);
}

@media (max-width: 600px) {
  .home-cards { grid-template-columns: 1fr; }
}

/* ===== PROFILE LINKS ===== */
.profiles {
  display: flex;
  gap: 1.2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.profiles a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 3px;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.profiles a:hover {
  color: var(--accent);
  border-color: var(--divider);
}

/* ===== PAPER ENTRIES ===== */
.paper {
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.paper:last-child {
  border-bottom: none;
}

.paper-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.paper-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition);
}

.paper-title a:hover {
  color: var(--link);
}

.paper-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.paper-meta a {
  color: var(--link);
  text-decoration: none;
}

.paper-meta a:hover {
  color: var(--link-hover);
}

.paper-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.4rem;
}

.status-new {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
}

.status-updated {
  background: rgba(201, 168, 76, 0.15);
  color: var(--accent);
}

.status-rr {
  background: rgba(126, 184, 201, 0.15);
  color: var(--link);
}

.status-published {
  background: rgba(201, 168, 76, 0.1);
  color: var(--accent-dim);
}

/* Abstract toggle */
.abstract-toggle {
  font-size: 0.8rem;
  color: var(--text-muted);
  background: none;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 0.4rem;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.abstract-toggle:hover {
  color: var(--accent);
  border-color: var(--divider);
}

.abstract {
  display: none;
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 0.6rem;
  padding: 0.8rem 1rem;
  background: var(--bg-secondary);
  border-radius: 4px;
  border-left: 2px solid var(--accent-dim);
}

.abstract.open {
  display: block;
}

/* ===== PUBLICATION ENTRIES ===== */
.pub {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.pub:last-child { border-bottom: none; }

.pub-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.pub-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.pub-title a:hover { color: var(--link); }

.pub-authors {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

.pub-journal {
  font-size: 0.85rem;
  color: var(--accent-dim);
  font-style: italic;
  margin-top: 0.1rem;
}

/* ===== CV PAGE ===== */
.cv-download {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  background: var(--accent);
  color: var(--bg-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  transition: background var(--transition);
}

.cv-download:hover {
  background: var(--accent-dim);
}

.cv-entry {
  padding: 0.5rem 0;
}

.cv-entry .cv-role {
  font-weight: 600;
  color: var(--text-primary);
}

.cv-entry .cv-place {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.cv-entry .cv-years {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== WORK IN PROGRESS ===== */
.wip {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.wip:last-child { border-bottom: none; }

.wip-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.wip-authors {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== FOOTER ===== */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--divider);
}

/* ===== LINKS ===== */
a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--link-hover);
}

/* ===== SELECTION ===== */
::selection {
  background: var(--accent);
  color: var(--bg-primary);
}
