/* ===================================================
   Ezgi Danışman - Molecular Biology & Genetics Portfolio
   Theme: Light / Lab / DNA-Molecule
=================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

:root{
  --bg: #f6faf9;
  --bg-alt: #eef7f4;
  --panel: #ffffff;
  --border: #d9ece5;
  --neon: #1f9d8a;        /* primary - lab teal */
  --neon-dim: #3fb39e;    /* secondary teal */
  --neon-red: #e06b8b;    /* accent - base-pair pink */
  --violet: #8b6bff;      /* accent - DNA violet */
  --text: #1c2b28;
  --text-dim: #5c7b73;
  --font-mono: 'JetBrains Mono', monospace;
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
ul{ list-style: none; }
img{ max-width: 100%; display:block; }

::selection{ background: var(--neon); color: #fff; }

::-webkit-scrollbar{ width: 8px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{ background: var(--neon-dim); border-radius: 4px; }

#matrix-canvas{
  position: fixed;
  top:0; left:0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: 0.55;
  background: linear-gradient(160deg, #f6faf9 0%, #eef4fb 55%, #f6f2fb 100%);
}

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section{
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

h1,h2,h3,h4{ font-family: var(--font-head); }

.section-title{
  font-size: 1.9rem;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.section-title::before{
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 4px rgba(31,157,138,0.15);
  display: inline-block;
}

.section-sub{
  color: var(--text-dim);
  margin-bottom: 48px;
  font-size: 0.92rem;
  font-family: var(--font-mono);
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border: 1.5px solid var(--neon);
  border-radius: 999px;
  color: var(--neon);
  background: transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all .25s ease;
  position: relative;
}
.btn:hover{
  background: var(--neon);
  color: #fff;
  box-shadow: 0 8px 24px rgba(31,157,138,.35);
  transform: translateY(-2px);
}
.btn.btn-alt{
  border-color: var(--violet);
  color: var(--violet);
}
.btn.btn-alt:hover{
  background: var(--violet);
  color: #fff;
  box-shadow: 0 8px 24px rgba(139,107,255,.35);
}

.navbar{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  background: rgba(246,250,249,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner{
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo{
  font-weight: 800;
  color: var(--neon);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  font-family: var(--font-head);
}
.logo span{ color: var(--text-dim); font-weight: 500; }

.nav-links{
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a{
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover{ color: var(--neon); }

.nav-actions{
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle{
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.78rem;
}
.lang-toggle button{
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
}
.lang-toggle button.active{
  background: var(--neon);
  color: #fff;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-toggle span{
  width: 24px; height: 2px; background: var(--neon); border-radius: 2px;
}

.hero{
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
  position: relative;
}
.hero-tag{
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-block;
  padding: 6px 16px;
  background: var(--panel);
}
.hero-tag::before{ content: "🧬 "; }

.hero h1{
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--text);
  margin-bottom: 12px;
  position: relative;
  background: linear-gradient(100deg, var(--neon) 10%, var(--violet) 60%, var(--neon-red) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.glitch{ position: relative; }

.hero .role{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  color: var(--neon-dim);
  margin-bottom: 24px;
}

.hero p.desc{
  max-width: 640px;
  color: var(--text-dim);
  margin-bottom: 36px;
}

.terminal-line{
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--neon);
  margin-bottom: 30px;
  min-height: 24px;
}
.terminal-line .cursor{
  display: inline-block;
  width: 8px; height: 17px;
  background: var(--neon);
  margin-left: 4px;
  animation: blink 1s step-start infinite;
  vertical-align: middle;
}
@keyframes blink{ 50%{ opacity: 0; } }

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

.alert-banner{
  background: rgba(139,107,255,0.07);
  border: 1px solid var(--violet);
  border-radius: 14px;
  color: #5b4aa8;
  padding: 14px 18px;
  font-size: 0.85rem;
  margin-top: 40px;
  max-width: 720px;
}
.alert-banner b{ color: var(--violet); }

.about-grid{
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  align-items: start;
}
.about-photo{
  width: 100%;
  aspect-ratio: 1;
  border-radius: 28px;
  border: 1px solid var(--border);
  padding: 10px;
  position: relative;
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(31,157,138,0.12);
}
.about-photo .frame{
  width: 100%; height: 100%;
  background: var(--bg-alt);
  border-radius: 20px;
  display: flex;
  align-items:center; justify-content:center;
  font-size: 3rem;
  color: var(--neon-dim);
  overflow: hidden;
}
.about-photo .frame img{ width:100%; height:100%; object-fit: cover; }
.about-photo::before, .about-photo::after{
  content:"";
  position:absolute;
  width: 20px; height: 20px;
  border: 3px solid var(--neon-red);
  border-radius: 50%;
}
.about-photo::before{ top:-10px; left:-10px; }
.about-photo::after{ bottom:-10px; right:-10px; background: var(--violet); border-color: var(--violet); }

.info-list{ margin-top: 22px; }
.info-list li{
  display:flex; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}
.info-list li span:first-child{ color: var(--text-dim); }
.info-list li span:last-child{ color: var(--neon); font-weight: 600; }

.skills-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}
.skill-card{
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  padding: 20px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.skill-card:hover{
  border-color: var(--neon);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(31,157,138,0.14);
}
.skill-card .bar{
  height: 7px;
  border-radius: 999px;
  background: var(--border);
  margin-top: 14px;
  position: relative;
  overflow: hidden;
}
.skill-card .bar i{
  position:absolute; left:0; top:0; bottom:0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon), var(--violet));
  width: var(--lvl, 80%);
}
.skill-card h4{ font-size: 0.95rem; color: var(--text); font-weight: 600; }

.timeline{
  position: relative;
  padding-left: 30px;
  border-left: 2px solid var(--border);
}
.timeline-item{
  position: relative;
  margin-bottom: 40px;
}
.timeline-item::before{
  content:"";
  position:absolute;
  left:-38px; top:4px;
  width: 14px; height:14px;
  background: var(--bg);
  border: 3px solid var(--neon);
  border-radius: 50%;
}
.timeline-item .date{
  color: var(--neon-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 6px;
  display:block;
}
.timeline-item h4{ color: var(--text); font-size: 1.05rem; margin-bottom: 4px; font-weight: 700; }
.timeline-item .org{ color: var(--text-dim); font-size: 0.85rem; margin-bottom: 8px; }
.timeline-item ul{ padding-left: 18px; }
.timeline-item ul li{
  list-style: none;
  font-size: 0.88rem;
  color: var(--text-dim);
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}
.timeline-item ul li::before{
  content: "●"; position:absolute; left:0; top:1px; color: var(--neon); font-size: 0.55rem;
}

.cards-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card{
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  padding: 26px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover{ border-color: var(--neon); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(31,157,138,0.12); }
.card h4{ color: var(--text); margin-bottom: 10px; font-size: 1.05rem; font-weight: 700; }
.card p, .card ul{ color: var(--text-dim); font-size: 0.9rem; }
.card ul{ margin-top: 10px; padding-left: 18px; }
.card .tag{
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--neon);
  border: 1px solid var(--neon-dim);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 12px;
}

.cert-list{ margin-top: 10px; }
.cert-list li{
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
  color: var(--text-dim);
  display:flex; gap:10px;
  align-items: center;
}
.cert-list li::before{ content: "🧬"; font-size: 0.85rem; }

.contact-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 20px;
}
.contact-card{
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  padding: 24px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.contact-card:hover{ border-color: var(--neon); transform: translateY(-3px); }
.contact-card .ic{
  font-size: 1.3rem; margin-bottom: 12px; color: #fff;
  width: 44px; height: 44px; line-height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--violet));
  margin-left:auto; margin-right:auto;
}
.contact-card a{ color: var(--text-dim); font-size: 0.85rem; word-break: break-word; }
.contact-card a:hover{ color: var(--neon); }

footer{
  padding: 34px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}
footer .made{ color: var(--neon-dim); }

.login-wrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
}
.login-box{
  width: 100%;
  max-width: 420px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255,255,255,0.92);
  padding: 34px;
  backdrop-filter: blur(6px);
  box-shadow: 0 24px 60px rgba(31,157,138,0.14);
}
.login-box .top{
  display:flex; gap:8px; margin-bottom: 20px;
}
.login-box .dot{ width:10px; height:10px; border-radius:50%; }
.dot.red{ background:var(--neon-red);} .dot.yellow{ background:#f0c14b;} .dot.green{ background:var(--neon);}

.login-box h2{
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 6px;
}
.login-box .sub{ color: var(--text-dim); font-size: 0.84rem; margin-bottom: 26px; }

.field{ margin-bottom: 18px; }
.field label{ display:block; font-size: 0.78rem; color: var(--text-dim); margin-bottom: 6px; font-weight: 500; }
.field input{
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}
.field input:focus{ border-color: var(--neon); }

.login-msg{
  font-size: 0.8rem;
  margin-bottom: 14px;
  min-height: 18px;
}
.login-msg.error{ color: var(--neon-red); }
.login-msg.ok{ color: var(--neon); }

.login-hint{
  margin-top: 22px;
  font-size: 0.78rem;
  color: var(--text-dim);
  border-top: 1px dashed var(--border);
  padding-top: 14px;
}
.back-link{
  display:inline-block; margin-top: 16px;
  font-size: 0.8rem; color: var(--text-dim);
}
.back-link:hover{ color: var(--neon); }

.dash-wrap{ padding-top: 110px; min-height: 100vh; }
.dash-header{
  display:flex; justify-content: space-between; align-items:center;
  margin-bottom: 30px; flex-wrap: wrap; gap: 12px;
}
.dash-grid{
  display:grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 20px;
}
.dash-card{
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  padding: 22px;
}
.dash-card h4{ color: var(--neon); margin-bottom: 12px; font-size: 0.95rem; font-weight: 700; }
.dash-log{
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  max-height: 240px;
  overflow-y: auto;
}
.dash-log div{ padding: 4px 0; border-bottom: 1px dashed var(--border); }
.dash-log .ok{ color: var(--neon); }
.dash-log .warn{ color: #d99a2b; }

/* ---------- Password strength meter ---------- */
.strength-bar{
  height: 5px;
  border-radius: 999px;
  background: var(--border);
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}
.strength-bar i{
  display:block;
  height: 100%;
  width: 0%;
  background: var(--neon-red);
  transition: width .25s ease, background .25s ease;
}
.strength-label{
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
  min-height: 14px;
}

/* ---------- Toasts ---------- */
#toast-container{
  position: fixed;
  top: 80px; right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast{
  background: var(--panel);
  border: 1px solid var(--neon-dim);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 18px;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity .25s ease, transform .25s ease;
  min-width: 220px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
.toast.show{ opacity: 1; transform: translateX(0); }
.toast.error{ border-color: var(--neon-red); color: var(--neon-red); }

/* ---------- Admin stats ---------- */
.stat-num{
  font-size: 2rem;
  color: var(--neon);
  font-weight: 800;
  font-family: var(--font-head);
}

/* ---------- Search input ---------- */
.search-input{
  width: 100%;
  max-width: 360px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  margin-bottom: 20px;
}
.search-input:focus{ border-color: var(--neon); }

/* ---------- User table ---------- */
.table-wrap{
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.user-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 720px;
}
.user-table th{
  text-align: left;
  color: var(--neon);
  padding: 12px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.user-table td{
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: middle;
}
.user-table tr:hover td{ background: rgba(31,157,138,0.04); }
.actions-cell{ display:flex; gap:6px; flex-wrap: wrap; }

/* ---------- Badges ---------- */
.badge{
  display: inline-block;
  font-size: 0.72rem;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid;
}
.badge-pending{ color:#c48a1f; border-color:#c48a1f; }
.badge-approved{ color: var(--neon); border-color: var(--neon); }
.badge-rejected{ color: var(--neon-red); border-color: var(--neon-red); }
.badge-admin{ color: var(--violet); border-color: var(--violet); }
.badge-user{ color: var(--text-dim); border-color: var(--border); }

/* ---------- Mini action buttons ---------- */
.btn-mini{
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all .2s;
}
.btn-mini:hover{ border-color: var(--neon); color: var(--neon); }
.btn-mini.approve:hover{ border-color: var(--neon); color: var(--neon); }
.btn-mini.reject:hover, .btn-mini.delete:hover{ border-color: var(--neon-red); color: var(--neon-red); }
.btn-mini.promote:hover{ border-color: var(--violet); color: var(--violet); }
.btn-mini.demote:hover{ border-color:#c48a1f; color:#c48a1f; }

@media (max-width: 860px){
  .nav-links{
    position: fixed;
    top: 62px; right: 0;
    background: var(--panel);
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 0 16px;
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .nav-links.open{ transform: translateX(0); }
  .nav-toggle{ display: flex; }
  .about-grid{ grid-template-columns: 1fr; }
  .about-photo{ max-width: 220px; margin: 0 auto; }
}
