/* ============================================
   Prof. Dr. Gürcan Papatya — Akademik Site
   Tasarım: Editorial / Refined Academic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  /* Light theme */
  --bg: #faf8f5;
  --bg-elevated: #ffffff;
  --bg-subtle: #f0ebe3;
  --text: #1a1a1a;
  --text-muted: #5a5a5a;
  --text-faint: #8a8a8a;
  --accent: #7a3b2e;
  --accent-hover: #5a2b22;
  --border: #e5dfd5;
  --border-strong: #c9c0b2;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.04);

  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1180px;
  --max-text: 720px;
}

[data-theme="dark"] {
  --bg: #0f0e0c;
  --bg-elevated: #181714;
  --bg-subtle: #1f1d1a;
  --text: #f0ece4;
  --text-muted: #a8a294;
  --text-faint: #6e6a60;
  --accent: #d4a08c;
  --accent-hover: #e8b9a5;
  --border: #2a2823;
  --border-strong: #3a3832;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}

::selection { background: var(--accent); color: var(--bg); }

/* ============ NAVIGATION ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .nav {
  background: rgba(15, 14, 12, 0.85);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.nav-brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

.nav-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lang-switch {
  padding: 0 12px;
  width: auto;
  font-family: var(--font-display);
  font-style: italic;
}

/* ============ MOBILE MENU ============ */
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    flex-direction: column;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: flex; }
}

/* ============ HERO ============ */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 32px 60px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 32px;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-image {
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: -20px -20px 20px 20px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  z-index: 0;
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  position: relative;
  z-index: 1;
  filter: grayscale(15%);
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 50px 24px; gap: 40px; }
  .hero-image::before { display: none; }
}

/* ============ SECTIONS ============ */
section { padding: 60px 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section-header {
  margin-bottom: 48px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  flex: 1;
  min-width: 0;
}

.section-title em { font-style: italic; color: var(--accent); }

.section-desc {
  color: var(--text-muted);
  max-width: var(--max-text);
  margin-bottom: 40px;
  font-size: 17px;
}

/* ============ ABOUT / BIO ============ */
.bio-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.bio-text p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
}

.bio-text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 0;
  color: var(--accent);
}

.bio-meta {
  border-left: 1px solid var(--border);
  padding-left: 32px;
}

.bio-meta-item {
  margin-bottom: 28px;
}

.bio-meta-item h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 500;
}

.bio-meta-item p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .bio-grid { grid-template-columns: 1fr; gap: 40px; }
  .bio-meta { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 32px; }
}

/* ============ EDUCATION / TIMELINE ============ */
.timeline { list-style: none; }

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-year {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 17px;
  padding-top: 2px;
}

.timeline-content h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============ PUBLICATIONS ============ */
.pub-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.pub-filter {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.pub-filter:hover { color: var(--text); border-color: var(--text-muted); }

.pub-filter.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.pub-search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  margin-bottom: 24px;
}

.pub-search:focus {
  outline: none;
  border-color: var(--accent);
}

.pub-list {
  list-style: none;
}

.pub-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  align-items: start;
}

.pub-year {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 17px;
  padding-top: 2px;
}

.pub-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.pub-authors {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pub-authors a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
  transition: opacity 0.2s;
}

.pub-authors a:hover { opacity: 0.7; }

.book-publisher a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}

.pub-venue {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--text-faint);
}

.pub-doi {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s;
}

.pub-doi:hover {
  background: var(--accent);
  color: var(--bg);
}

@media (max-width: 768px) {
  .pub-item { grid-template-columns: 1fr; gap: 8px; }
  .pub-doi { justify-self: start; margin-top: 8px; }
}

/* ============ BOOKS ============ */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.book-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: all 0.3s;
}

.book-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.book-year {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 14px;
  margin-bottom: 8px;
}

.book-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 12px;
}

.book-publisher {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.book-isbn {
  font-size: 12px;
  color: var(--text-faint);
  font-family: 'SF Mono', Monaco, monospace;
}

/* ============ PROJECTS ============ */
.project-list { list-style: none; }

.project-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.project-item h4 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 10px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.project-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.project-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 6px;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  font-size: 17px;
  line-height: 1.8;
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.contact-info a:hover { border-bottom-color: var(--accent); }

.contact-info dt {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 16px;
  margin-bottom: 4px;
}

.contact-info dt:first-child { margin-top: 0; }

.contact-info dd { margin-bottom: 16px; }

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

/* ============ FOOTER ============ */
footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer a { color: var(--text-muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ============ AWARDS ============ */
.award-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
}

.award-item:last-child { border-bottom: none; }

.award-year {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 17px;
}

.award-item h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.4;
}

.award-item p { font-size: 14px; color: var(--text-muted); }

/* ============ STATS ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin: 40px 0;
  padding: 32px;
  background: var(--bg-subtle);
  border-radius: 12px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============ LOGO ============ */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand .logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-text .title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.nav-brand-text .name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

@media (max-width: 480px) {
  .nav-brand-text .title { display: none; }
}

/* ============ ACADEMIC PROFILES ============ */
.profiles-section {
  background: var(--bg-subtle);
  padding: 60px 0;
  margin-top: 80px;
}

.profiles-section .container { padding: 0 32px; }

.profiles-header {
  text-align: center;
  margin-bottom: 40px;
}

.profiles-header .section-num {
  display: inline-block;
  margin-bottom: 12px;
}

.profiles-header h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.profiles-header h2 em { font-style: italic; color: var(--accent); }

.profiles-header p {
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
  font-size: 16px;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}

.profile-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.profile-link svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
}

.profile-link-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-link-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2px;
}

.profile-link-desc {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ============ FOOTER UPDATED ============ */
footer {
  margin-top: 0;
  padding: 40px 0 32px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-col-left,
.footer-col-right { display: flex; flex-direction: column; gap: 10px; }
.footer-col-right { text-align: right; }

.footer-credit {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-faint);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

.footer-credit a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.footer-credit a:hover { border-bottom-color: var(--accent); }

.footer-credit-line { margin: 4px 0; }

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-col-right { text-align: left; }
}
