/* ENVER ADALI — AKADEMİK TASARIM
   MASAÜSTÜ, TABLET VE MOBİL */

/* TEMEL DEĞİŞKENLER */
:root {
  --background: #f8f7f3;
  --surface: #ffffff;
  --primary: #182d46;
  --accent: #365c4c;
  --text: #303943;
  --muted: #66717c;
  --border: #dddeda;
  --soft: #eeefe9;
  --serif: "Lora", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

/* GENEL */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #dce6df;
  color: var(--primary);
}

a {
  color: var(--primary);
  text-underline-offset: 4px;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

iframe {
  max-width: 100%;
}

pre {
  max-width: 100%;
  overflow-x: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--primary);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: break-word;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: calc(100% - 64px);
  max-width: 1080px;
  margin-inline: auto;
}

.main-content {
  min-width: 0;
}

/* GRID VE FLEX İÇERİKLERİNİN KÜÇÜLEBİLMESİ */
.header-inner > *,
.hero > *,
.profile-note > *,
.section-heading > *,
.interest-grid > *,
.reading-grid > *,
.education-row > *,
.outreach-grid > *,
.statement > *,
.contact-strip > *,
.footer-inner > *,
.portal-item > * {
  min-width: 0;
}

/* UZUN METİNLER VE BAĞLANTILAR */
.hero-description,
.section-intro,
.interest-item p,
.reading-card p,
.education-row p,
.outreach-item p,
.statement-copy p,
.institution-links a,
.dialog-footer a,
.portal-item,
.card,
.res-card {
  overflow-wrap: anywhere;
}

/* İÇERİĞE GEÇ BAĞLANTISI */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--primary);
  color: white;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ÜST MENÜ */
.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 28px;
}

.nav-brand-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  text-decoration: none;
}

.brand-monogram {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: -1px;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  color: var(--primary);
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.4;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.academic-nav {
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 8px;
}

.nav-links a,
.nav-contact {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-contact:hover {
  border-bottom-color: var(--accent);
  color: var(--primary);
}

/* GİRİŞ ALANI */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 64px;
  padding-block: 86px 76px;
}

.eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 6vw, 4.8rem);
  letter-spacing: -0.055em;
}

.hero-subtitle {
  margin-bottom: 18px;
  color: var(--primary);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

.hero-description {
  max-width: 590px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 100%;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: white;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  transition: background 0.2s ease;
}

.button-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.text-link {
  display: inline-block;
  max-width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
  background: transparent;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

.text-link:hover {
  border-bottom-color: var(--accent);
}

/* KISA PROFİL */
.profile-note {
  padding: 26px 0 26px 26px;
  border-left: 1px solid var(--border);
}

.note-label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-note h2 {
  font-size: 1.25rem;
}

.profile-note p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.note-divider {
  width: 34px;
  height: 1px;
  margin-block: 24px;
  background: var(--accent);
}

/* ANA SAYFA BÖLÜMLERİ */
.editorial-section {
  padding-block: 52px;
  border-top: 1px solid var(--border);
}

.section-heading {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 30px;
}

.section-number {
  padding-top: 5px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.section-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
}

.section-intro {
  max-width: 680px;
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* İLGİ ALANLARI */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-left: 88px;
}

.interest-item {
  padding-top: 20px;
  border-top: 2px solid var(--accent);
}

.interest-item h3 {
  margin-bottom: 12px;
  font-size: 1.13rem;
}

.interest-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

/* YAKLAŞIM */
.statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 44px;
  padding: 42px;
  background: var(--soft);
}

.statement h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.statement-copy p {
  color: #4d5962;
  font-size: 0.94rem;
}

.statement-copy p:last-child {
  margin-bottom: 0;
}

/* METİNLER VE KAYNAKLAR */
.reading-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-left: 88px;
}

.reading-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.45);
}

.reading-card .eyebrow {
  margin-bottom: 12px;
  font-size: 0.64rem;
}

.reading-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.reading-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

.reading-card .text-link {
  margin-top: auto;
}

/* EĞİTİM */
.education-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-left: 88px;
}

.education-row h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.education-row p {
  color: var(--muted);
  font-size: 0.9rem;
}

.institution-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* ATÖLYELER VE DERSLER */
.outreach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin-left: 88px;
}

.outreach-item h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.outreach-item p {
  color: var(--muted);
  font-size: 0.88rem;
}

.small-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* İLETİŞİM ÇAĞRISI */
.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-block: 44px;
  border-top: 1px solid var(--border);
}

.contact-strip h2 {
  margin-bottom: 8px;
  font-size: 1.6rem;
}

.contact-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* DİĞER SAYFALARIN ORTAK SINIFLARI */
.card,
.res-card {
  min-width: 0;
  max-width: 100%;
  margin-block: 28px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
}

.card h2,
.card h3 {
  margin-bottom: 14px;
}

.abstract-quote {
  margin-block: 20px;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  overflow-wrap: anywhere;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.portal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  text-decoration: none;
}

.portal-tag {
  color: var(--muted);
  font-size: 0.75rem;
}

.btn-linkedin {
  display: inline-block;
  max-width: 100%;
  padding: 10px 18px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* ALT BİLGİ */
.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 30px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-inner .footer-name {
  margin-bottom: 4px;
  color: var(--primary);
  font-family: var(--serif);
  font-size: 1rem;
}

/* İLETİŞİM PENCERESİ */
.contact-dialog {
  width: calc(100% - 32px);
  max-width: 560px;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(24, 45, 70, 0.18);
}

.contact-dialog::backdrop {
  background: rgba(19, 30, 43, 0.5);
}

.dialog-content {
  position: relative;
  min-width: 0;
  padding: 36px;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.8rem;
}

.dialog-content .eyebrow {
  padding-right: 32px;
}

.dialog-content h2 {
  margin-bottom: 16px;
  font-size: 1.7rem;
}

.dialog-intro {
  color: var(--muted);
  font-size: 0.88rem;
}

.service-option {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-block: 18px;
  border-top: 1px solid var(--border);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.service-label {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service-option strong {
  font-size: 0.95rem;
}

.service-option > span:last-child {
  color: var(--muted);
  font-size: 0.8rem;
}

.service-option:hover strong {
  color: var(--accent);
}

.dialog-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

/* TABLET: 900 PX VE ALTI */
@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
  }

  .academic-nav {
    width: 100%;
  }

  .nav-links {
    justify-content: center;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-block: 56px;
  }

  .profile-note {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 24px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .note-divider {
    display: none;
  }

  .interest-grid,
  .reading-grid,
  .education-row,
  .outreach-grid {
    margin-left: 0;
  }

  .statement {
    gap: 30px;
    padding: 32px;
  }
}

/* KÜÇÜK TABLET: 760 PX VE ALTI */
@media (max-width: 760px) {
  .interest-grid,
  .reading-grid,
  .education-row,
  .outreach-grid,
  .statement {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .statement {
    padding: 28px;
  }

  .nav-links {
    column-gap: 18px;
    row-gap: 6px;
  }
}

/* TELEFON: 600 PX VE ALTI */
@media (max-width: 600px) {
  .container {
    width: calc(100% - 36px);
  }

  .header-inner {
    padding-block: 22px;
  }

  .nav-links a,
  .nav-contact {
    font-size: 0.78rem;
  }

  .hero {
    padding-block: 44px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 10vw, 3.1rem);
  }

  .hero-description {
    font-size: 0.92rem;
  }

  .profile-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .profile-note p {
    margin-bottom: 0;
  }

  .editorial-section {
    padding-block: 36px;
  }

  .section-heading {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
  }

  .statement,
  .reading-card,
  .card,
  .res-card {
    padding: 24px;
  }

  .contact-strip,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .dialog-content {
    padding: 32px 22px 24px;
  }

  .dialog-content h2 {
    font-size: 1.45rem;
  }
}

/* KÜÇÜK TELEFON: 480 PX VE ALTI */
@media (max-width: 480px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero {
    padding-block: 36px;
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 11vw, 3.1rem);
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-actions {
    align-items: flex-start;
    gap: 16px;
  }

  .hero-actions .button-primary {
    width: 100%;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .section-number {
    padding-top: 0;
  }

  .section-heading h2 {
    font-size: 1.55rem;
  }

  .reading-card,
  .statement,
  .card,
  .res-card {
    padding: 22px;
  }

  .abstract-quote {
    padding: 16px;
  }

  .contact-strip {
    align-items: stretch;
  }

  .contact-strip .button-primary {
    width: 100%;
  }

  .dialog-content {
    padding: 32px 20px 24px;
  }

  .dialog-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* HAREKETİ AZALTMA TERCİHİ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
