/* ── Değişkenler ─────────────────────────────────────────────────────────── */
:root {
  --bg:         #0d0f1a;
  --bg-2:       #131628;
  --bg-3:       #1a1e35;
  --border:     #2a2f50;
  --text:       #e2e4f0;
  --text-muted: #8b90b8;
  --accent:     #7c6ff7;
  --accent-2:   #a78bfa;
  --accent-3:   #c4b5fd;
  --success:    #34d399;
  --warning:    #fbbf24;
  --danger:     #f87171;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --transition: 0.2s ease;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-sans); line-height: 1.6; }
a { color: var(--accent-2); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-3); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--bg-2); }

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 15, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1.1rem; color: var(--text);
}
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.nav-menu { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.4rem 0.75rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; color: var(--text-muted); font-weight: 500;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-3); }
.nav-link--accent { color: var(--accent-2) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(124,111,247,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(167,139,250,0.1) 0%, transparent 50%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
  padding: 6rem 1.5rem;
}
.hero-eyebrow {
  display: inline-block; padding: 0.3rem 0.8rem;
  background: rgba(124,111,247,0.15); border: 1px solid rgba(124,111,247,0.3);
  border-radius: 50px; font-size: 0.8rem; color: var(--accent-2); margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-serif); font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.1; margin-bottom: 1.5rem; color: var(--text);
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 480px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Note Widget ─────────────────────────────────────────────────────────── */
.note-widget {
  background: var(--bg-3); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
  padding: 1.5rem; position: relative;
}
.note-widget-label { font-size: 0.75rem; color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.1em; }
.note-widget-body { margin-top: 0.75rem; font-family: var(--font-serif); font-size: 1.05rem; color: var(--text); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 1.4rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 0 0 rgba(124,111,247,0.5);
}
.btn-primary:hover {
  background: var(--accent-2); color: #fff;
  box-shadow: 0 0 20px rgba(124,111,247,0.4);
}
.btn-outline {
  background: transparent; color: var(--accent-2);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: rgba(124,111,247,0.1); color: var(--accent-3); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Section Header ──────────────────────────────────────────────────────── */
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; }
.section-title { font-family: var(--font-serif); font-size: 2rem; color: var(--text); }
.section-title::after {
  content: ''; display: block; width: 40px; height: 3px;
  background: var(--accent); border-radius: 2px; margin-top: 0.5rem;
}
.section-link { color: var(--accent-2); font-size: 0.9rem; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.25rem; }
.card-type { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-2); }
.card-title { margin: 0.5rem 0; font-size: 1.1rem; font-family: var(--font-serif); }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent-2); }
.card-summary { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.card-meta { font-size: 0.8rem; color: var(--text-muted); }

/* ── Projects Grid ───────────────────────────────────────────────────────── */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.projects-grid--full { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.project-card {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform var(--transition), border-color var(--transition);
}
.project-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.project-img { aspect-ratio: 16/9; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 1.25rem; }
.project-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; }
.project-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.tech-tag {
  padding: 0.2rem 0.6rem; border-radius: 50px;
  background: rgba(124,111,247,0.15); border: 1px solid rgba(124,111,247,0.3);
  font-size: 0.75rem; color: var(--accent-2);
}
.featured-badge { font-size: 0.75rem; color: var(--warning); }

/* ── Gallery ─────────────────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.gallery-thumb { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-thumb:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(13,15,26,0.7);
  display: flex; align-items: flex-end; padding: 0.75rem;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-thumb:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { font-size: 0.85rem; color: #fff; }
.gallery-masonry { columns: 4 200px; gap: 0.75rem; }
.gallery-item { break-inside: avoid; margin-bottom: 0.75rem; position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.gallery-item img { width: 100%; display: block; border-radius: var(--radius-sm); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.75rem; background: linear-gradient(transparent, rgba(0,0,0,0.8));
  opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-caption span { display: block; font-size: 0.85rem; color: #fff; }
.gallery-caption small { color: rgba(255,255,255,0.7); font-size: 0.75rem; }

/* ── Visits ──────────────────────────────────────────────────────────────── */
.visits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.visit-card {
  background: var(--bg-3); border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--border);
}
.visit-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.visit-info { padding: 0.75rem; }
.visit-city { font-weight: 600; font-size: 0.9rem; display: block; }
.visit-region { font-size: 0.8rem; color: var(--text-muted); display: block; }
.visit-country { font-size: 0.75rem; color: var(--accent-2); display: block; }
.visits-full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.visit-card-full {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.visit-photo img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.visit-details { padding: 1.25rem; }
.visit-city-name { font-size: 1.2rem; font-weight: 700; }
.visit-location { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }
.visit-date { color: var(--accent-2); font-size: 0.85rem; margin-top: 0.25rem; }
.visit-notes { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.75rem; }

/* ── News List ───────────────────────────────────────────────────────────── */
.news-list { display: flex; flex-direction: column; gap: 0; }
.news-item {
  display: flex; gap: 1.5rem; align-items: flex-start;
  padding: 1.25rem 0; border-bottom: 1px solid var(--border);
}
.news-date { min-width: 48px; font-size: 0.8rem; color: var(--accent-2); font-weight: 600; text-align: center; }
.news-content h3 { font-size: 1rem; font-weight: 500; }
.news-content h3 a { color: var(--text); }
.news-content h3 a:hover { color: var(--accent-2); }
.news-source { font-size: 0.75rem; color: var(--text-muted); }

/* ── Page Hero ───────────────────────────────────────────────────────────── */
.page-hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.page-title { font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3rem); }
.page-subtitle { color: var(--text-muted); margin-top: 0.75rem; }

/* ── Tags ─────────────────────────────────────────────────────────────────── */
.tag-pill {
  display: inline-block; padding: 0.2rem 0.6rem;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 50px; font-size: 0.75rem; color: var(--text-muted);
}

/* ── Post Detail ─────────────────────────────────────────────────────────── */
.post-cover { max-height: 500px; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-container { max-width: 780px; padding: 3rem 1.5rem; }
.post-meta-top { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.post-type-badge {
  padding: 0.25rem 0.75rem; border-radius: 50px;
  background: rgba(124,111,247,0.15); border: 1px solid var(--accent);
  font-size: 0.75rem; color: var(--accent-2);
}
.post-date, .post-source { font-size: 0.85rem; color: var(--text-muted); }
.post-title { font-family: var(--font-serif); font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
.post-summary { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; font-style: italic; }
.post-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 2rem; }
.post-body { font-size: 1.05rem; line-height: 1.8; }
.markdown-content h1, .markdown-content h2, .markdown-content h3 {
  font-family: var(--font-serif); margin: 2rem 0 1rem; color: var(--text);
}
.markdown-content p { margin-bottom: 1.25rem; color: var(--text-muted); }
.markdown-content a { color: var(--accent-2); text-decoration: underline; }
.markdown-content code {
  background: var(--bg-3); border: 1px solid var(--border);
  padding: 0.1em 0.4em; border-radius: 4px; font-size: 0.9em;
}
.markdown-content pre {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1.25rem; overflow-x: auto;
  margin: 1.5rem 0;
}
.markdown-content blockquote {
  border-left: 3px solid var(--accent); padding-left: 1.25rem;
  margin: 1.5rem 0; color: var(--text-muted); font-style: italic;
}
.post-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* ── Timeline ────────────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -2.4rem; top: 0.3rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
}
.timeline-year { font-size: 0.8rem; color: var(--accent-2); font-weight: 600; margin-bottom: 0.25rem; }
.timeline-content h3 { font-size: 1rem; font-weight: 600; }
.timeline-content p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; }
.about-text p { margin-bottom: 1.25rem; color: var(--text-muted); line-height: 1.8; }
.about-timeline-title { font-family: var(--font-serif); font-size: 1.5rem; margin-bottom: 2rem; }

/* ── Links ────────────────────────────────────────────────────────────────── */
.links-group { margin-bottom: 3rem; }
.links-category { font-size: 1.1rem; color: var(--accent-2); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; }
.links-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
.link-card {
  display: block; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem;
  transition: border-color var(--transition), transform var(--transition);
}
.link-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.link-title { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.link-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.25rem; }
.link-url { color: var(--accent-2); font-size: 0.75rem; margin-top: 0.5rem; }

/* ── Notes ────────────────────────────────────────────────────────────────── */
.notes-container { max-width: 700px; margin: 0 auto; }
.note-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem;
  position: relative;
}
.note-card--pinned { border-left: 3px solid var(--accent); }
.note-pin { position: absolute; top: 1rem; right: 1rem; }
.note-body { font-size: 1rem; line-height: 1.7; color: var(--text); }
.note-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.75rem; }
.note-date { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; }

/* ── Filter Bar ──────────────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
  padding: 0.4rem 1rem; border-radius: 50px;
  background: var(--bg-3); border: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-muted); cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(124,111,247,0.15); border-color: var(--accent); color: var(--accent-2);
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 3rem; }
.page-info { color: var(--text-muted); font-size: 0.9rem; }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact-section { background: var(--bg-2); padding: 5rem 0; border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; margin-top: 2rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: center; gap: 0.75rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.contact-icon { font-size: 1.1rem; }

/* ── Form ─────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.form-input {
  width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); font-size: 0.95rem; font-family: var(--font-sans);
  transition: border-color var(--transition);
  outline: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,111,247,0.15); }
textarea.form-input { resize: vertical; }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 0.25rem; }
.form-help { color: var(--text-muted); font-size: 0.8rem; }
.form-feedback { padding: 0.75rem; border-radius: var(--radius-sm); margin-top: 1rem; }
.form-feedback.success { background: rgba(52,211,153,0.1); color: var(--success); border: 1px solid var(--success); }
.form-feedback.error { background: rgba(248,113,113,0.1); color: var(--danger); border: 1px solid var(--danger); }

/* ── Auth Page ────────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.auth-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem; width: 100%; max-width: 440px;
}
.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { font-family: var(--font-serif); font-size: 1.8rem; }
.auth-header p { color: var(--text-muted); margin-top: 0.5rem; }
.auth-form { margin-bottom: 1.5rem; }
.auth-footer { text-align: center; font-size: 0.9rem; color: var(--text-muted); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 2rem 0; text-align: center; }
.site-footer p { color: var(--text-muted); font-size: 0.85rem; }

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.9rem; }
.alert--success { background: rgba(52,211,153,0.1); color: var(--success); border: 1px solid var(--success); }
.alert--error { background: rgba(248,113,113,0.1); color: var(--danger); border: 1px solid var(--danger); }
.alert--pending { background: rgba(251,191,36,0.1); color: var(--warning); border: 1px solid var(--warning); }
.alert--approved { background: rgba(52,211,153,0.1); color: var(--success); border: 1px solid var(--success); }
.alert--rejected { background: rgba(248,113,113,0.1); color: var(--danger); border: 1px solid var(--danger); }

/* ── Empty State ─────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }

/* ── Error Pages ─────────────────────────────────────────────────────────── */
.error-page { min-height:70vh; display:flex; align-items:center; text-align:center; }
.error-code { font-size:7rem; font-weight:700; color:var(--accent); line-height:1; }
.error-title { font-family:var(--font-serif); font-size:1.75rem; margin:.75rem 0; }
.error-msg { color:var(--text-muted); margin-bottom:2rem; }

/* ── Profile Photo ────────────────────────────────────────────────────────── */
.profile-photo { width:140px; height:140px; border-radius:50%; object-fit:cover; border:4px solid var(--accent); box-shadow:0 0 30px rgba(124,111,247,0.3); }
.hero-profile { display:flex; justify-content:center; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 4rem 1.5rem; }
  .hero-note { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
    background: rgba(13,15,26,0.98); flex-direction: column; align-items: center;
    justify-content: center; gap: 0.5rem; z-index: 99;
  }
  .nav-menu.open { display: flex; }
  .nav-link { font-size: 1.1rem; padding: 0.75rem 2rem; }
  .nav-toggle { display: flex; }
  .gallery-masonry { columns: 2 150px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .gallery-masonry { columns: 1; }
  .cards-grid { grid-template-columns: 1fr; }
}
