/* ===== THEME VARIABLES — admin'den renk değiştirince burası güncellenir ===== */
:root {
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-light: #eff6ff;
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --radius: 12px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== NAV ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,250,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1000px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 62px;
}
.nav-logo { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  padding: 6px 14px; border-radius: 8px;
  color: var(--muted); font-size: 0.9rem; font-weight: 500;
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--border); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px; text-align: center;
  color: var(--muted); font-size: 0.85rem;
}
footer .footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 12px; }
footer .footer-links a { color: var(--muted); transition: color 0.2s; }
footer .footer-links a:hover { color: var(--accent); }

/* ===== CONTAINER ===== */
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 24px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 8px;
  font-weight: 600; font-size: 0.92rem; cursor: pointer;
  transition: all 0.2s; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ===== SECTION LABELS ===== */
.label {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.section-title { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.section-sub { color: var(--muted); margin-bottom: 48px; max-width: 540px; }

/* ===== TAG / BADGE ===== */
.tag {
  display: inline-block; background: var(--accent-light); color: var(--accent);
  font-size: 0.72rem; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; letter-spacing: 0.03em;
}

/* ===== HERO (index) ===== */
.hero { padding: 100px 24px 80px; text-align: center; }
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 900; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 520px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { margin-top: 56px; color: var(--muted); font-size: 0.82rem; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* ===== FEATURED GRID ===== */
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: box-shadow 0.2s, transform 0.2s; cursor: pointer;
}
.card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.08); transform: translateY(-3px); }
.card-meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.card p { color: var(--muted); font-size: 0.87rem; line-height: 1.6; }

/* ===== BLOG PAGE ===== */
.blog-hero { padding: 64px 24px 40px; }
.blog-list { display: flex; flex-direction: column; gap: 2px; }
.blog-item {
  display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 20px;
  padding: 24px 0; border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s;
}
.blog-item:hover { padding-left: 6px; }
.blog-item-date { font-size: 0.8rem; color: var(--muted); white-space: nowrap; margin-top: 4px; }
.blog-item h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 6px; }
.blog-item p { color: var(--muted); font-size: 0.88rem; }

/* ===== BLOG POST PAGE ===== */
.post-hero { padding: 60px 24px 32px; max-width: 720px; margin: 0 auto; }
.post-body { max-width: 720px; margin: 0 auto; padding: 0 24px 80px; }
.post-body h2 { font-size: 1.5rem; font-weight: 700; margin: 36px 0 14px; }
.post-body h3 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 10px; }
.post-body p { margin-bottom: 18px; line-height: 1.8; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 18px; }
.post-body li { margin-bottom: 6px; line-height: 1.7; }
.post-body blockquote {
  border-left: 3px solid var(--accent); padding: 12px 20px;
  background: var(--accent-light); border-radius: 0 8px 8px 0; margin: 24px 0;
}
.post-body code { background: var(--border); padding: 2px 6px; border-radius: 4px; font-size: 0.88em; }
.post-body pre { background: #1e293b; color: #e2e8f0; padding: 20px; border-radius: 8px; overflow-x: auto; margin: 24px 0; }
.post-cover { width: 100%; max-height: 400px; object-fit: cover; border-radius: var(--radius); margin-bottom: 32px; }

/* ===== GALLERY PAGE ===== */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: flex-end; padding: 16px;
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay p { color: #fff; font-size: 0.88rem; font-weight: 600; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.9); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px; color: #fff;
  font-size: 2rem; cursor: pointer; background: none; border: none; line-height: 1;
}

/* ===== ABOUT PAGE ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.about-photo { border-radius: 16px; overflow: hidden; aspect-ratio: 3/4; background: var(--border); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 5rem; background: var(--accent-light); }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.skill-tag {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 10px 14px; font-size: 0.85rem; font-weight: 500; text-align: center;
}
.timeline { margin-top: 36px; }
.timeline-item { display: flex; gap: 16px; margin-bottom: 20px; }
.timeline-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); margin-top: 8px; flex-shrink: 0;
}
.timeline-content .year { font-size: 0.78rem; color: var(--muted); margin-bottom: 2px; }
.timeline-content strong { font-weight: 700; display: block; margin-bottom: 2px; }
.timeline-content p { font-size: 0.88rem; color: var(--muted); }

/* ===== CONTACT PAGE ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; gap: 14px; align-items: flex-start;
}
.contact-icon { font-size: 1.4rem; }
.contact-card strong { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 2px; }
.contact-card a { color: var(--text); font-weight: 600; }
.contact-card a:hover { color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.92rem; font-family: var(--font); background: var(--surface);
  color: var(--text); transition: border-color 0.2s; outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-success {
  display: none; background: #d1fae5; border: 1px solid #6ee7b7;
  border-radius: 8px; padding: 14px 18px; color: #065f46; font-weight: 600;
}

/* ===== LOADING ===== */
.loading { text-align: center; padding: 60px; color: var(--muted); }
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, #f3f4f6 50%, var(--border) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite;
  border-radius: 6px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== EMPTY STATE ===== */
.empty { text-align: center; padding: 60px; color: var(--muted); }
.empty-icon { font-size: 3rem; margin-bottom: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .skills-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .featured-grid { grid-template-columns: 1fr; }
  .blog-item { grid-template-columns: 1fr; }
  .blog-item-date { order: -1; }
}
