/* =========================================================================
   bayproje.com — Liquid Glass / Fluent Design system
   Palette restricted to navy blue + white (only alpha/tint variations)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Navy scale */
  --navy-950: #060d1c;
  --navy-900: #0a1628;
  --navy-800: #0f2247;
  --navy-700: #16305e;
  --navy-600: #1c3b73;
  --navy-500: #2a4f92;
  --navy-400: #4a6fa5;
  --navy-300: #7d97c2;

  /* White scale (opacity tints, still "white") */
  --white: #ffffff;
  --white-92: rgba(255, 255, 255, 0.92);
  --white-70: rgba(255, 255, 255, 0.70);
  --white-40: rgba(255, 255, 255, 0.40);
  --white-18: rgba(255, 255, 255, 0.18);
  --white-10: rgba(255, 255, 255, 0.10);
  --white-06: rgba(255, 255, 255, 0.06);

  --glass-border: rgba(255, 255, 255, 0.28);
  --glass-shadow: rgba(6, 13, 28, 0.45);

  --font-display: 'Manrope', 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--navy-950);
  background-image:
    radial-gradient(60% 50% at 15% 0%, rgba(74, 111, 165, 0.35), transparent 60%),
    radial-gradient(50% 45% at 85% 12%, rgba(255, 255, 255, 0.10), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { line-height: 1.65; margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Visible focus ring everywhere (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Liquid glass primitive ---------- */
.glass {
  position: relative;
  background: linear-gradient(155deg, var(--white-18), var(--white-06));
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 18px 40px -18px var(--glass-shadow);
}

.glass::before {
  /* specular highlight, the "liquid" sheen */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 28%);
  opacity: 0.6;
  pointer-events: none;
}

/* ---------- Top navigation (acrylic bar) ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 22, 40, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--white-10);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 14px 3px rgba(255,255,255,0.65);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a, .nav-links button {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white-70);
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-links a:hover, .nav-links button:hover { color: var(--white); background: var(--white-10); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease);
  text-align: center;
}

.btn-primary {
  background: var(--white);
  color: var(--navy-900);
  box-shadow: 0 10px 24px -10px rgba(255,255,255,0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(255,255,255,0.55); }

.btn-ghost {
  background: var(--white-10);
  color: var(--white);
  border-color: var(--white-18);
}
.btn-ghost:hover { background: var(--white-18); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 56px;
  text-align: left;
}

.hero .eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-70);
  background: var(--white-10);
  border: 1px solid var(--white-18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 800;
  max-width: 20ch;
  line-height: 1.08;
}

.hero p.lead {
  color: var(--white-70);
  max-width: 56ch;
  font-size: 1.05rem;
}

/* ---------- Project grid (blog-style, not a classic blog list) ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  padding: 10px 0 80px;
}

.project-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.5);
}

.project-card .thumb {
  height: 170px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  position: relative;
  overflow: hidden;
}
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

.project-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--white-92);
  padding: 4px 10px;
  border-radius: 999px;
}

.project-card .body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.project-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.project-card p { color: var(--white-70); font-size: 0.92rem; flex: 1; }
.project-card .meta {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--white-40);
  display: flex;
  justify-content: space-between;
}

.empty-state {
  padding: 60px 30px;
  text-align: center;
  color: var(--white-70);
}

/* ---------- Article page ---------- */
.article-wrap { padding: 56px 0 90px; }

.article-header { margin-bottom: 30px; }
.article-header .badge-row { display: flex; gap: 8px; margin-bottom: 18px; }
.article-header .tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white-70);
  border: 1px solid var(--white-18);
  padding: 5px 11px;
  border-radius: 999px;
}

.article-cover {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  margin: 22px 0 8px;
}

.article-body {
  padding: 36px;
  color: var(--white-92);
  font-size: 1.02rem;
}
.article-body h2, .article-body h3 { margin-top: 1.4em; }
.article-body img { border-radius: var(--radius-md); margin: 18px 0; }
.article-body a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

.access-denied {
  padding: 60px 36px;
  text-align: center;
}
.access-denied h2 { margin-bottom: 10px; }
.access-denied p { color: var(--white-70); max-width: 46ch; margin: 0 auto 22px; }

/* ---------- File gallery ---------- */
.gallery-section { margin-top: 34px; padding: 30px 34px 34px; }
.gallery-section h2 { font-size: 1.25rem; margin-bottom: 4px; }
.gallery-section .sub { color: var(--white-40); font-size: 0.86rem; margin-bottom: 22px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--white-18);
  background: var(--white-06);
  overflow: hidden;
}

.gallery-item .preview {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-800);
  overflow: hidden;
}
.gallery-item .preview img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .preview iframe { width: 100%; height: 100%; border: none; }

.gallery-item .filetype-icon {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--white-70);
  letter-spacing: 0.04em;
}

.gallery-item .info {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.gallery-item .info .name {
  font-size: 0.82rem;
  color: var(--white-92);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-item .info .size { font-size: 0.72rem; color: var(--white-40); }

.gallery-item .dl {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--white-92);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Forms ---------- */
.form-card { padding: 38px; max-width: 460px; margin: 0 auto; }
.form-wide { max-width: 720px; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--white-70);
  margin-bottom: 7px;
}

.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field input[type=password],
.field input[type=file],
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--white-18);
  background: var(--white-06);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--white-40); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--white-70);
  background: var(--white-10);
  outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 0.76rem; color: var(--white-40); margin-top: 6px; }

.field-checkbox { display: flex; align-items: flex-start; gap: 10px; }
.field-checkbox input { margin-top: 3px; }
.field-checkbox label { margin: 0; font-weight: 500; color: var(--white-70); }

.tabs { display: flex; gap: 6px; margin-bottom: 26px; }
.tabs a {
  flex: 1;
  text-align: center;
  padding: 11px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--white-70);
  border: 1px solid var(--white-18);
}
.tabs a.active { background: var(--white); color: var(--navy-900); border-color: var(--white); }

.alert {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 20px;
  border: 1px solid;
}
.alert-success { background: rgba(255,255,255,0.14); border-color: var(--white-40); color: var(--white); }
.alert-error   { background: rgba(255,255,255,0.06); border-color: rgba(255,80,80,0.5); color: #ffd7d7; }
.alert-info    { background: var(--white-06); border-color: var(--white-18); color: var(--white-70); }

/* Açılır menü seçeneklerinin (options) arka plan rengini düzeltme */
select option {
  background-color: var(--navy-900);
  color: var(--white);
}

/* ---------- Tables (admin) ---------- */
.table-wrap { padding: 0; overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td {
  text-align: left;
  padding: 14px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--white-10);
  color: var(--white-92);
}
table.data th {
  color: var(--white-40);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: var(--white-06); }

.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--white-18);
  color: var(--white-70);
}
.pill-on { background: var(--white); color: var(--navy-900); border-color: var(--white); }

.actions-row { display: flex; gap: 8px; }
.actions-row form { display: inline; }
.link-btn {
  background: none; border: none; cursor: pointer;
  color: var(--white-70); font-size: 0.84rem; font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
  font-family: var(--font-body);
}
.link-btn:hover { color: var(--white); }
.link-btn.danger { color: #ffb3b3; }

/* ---------- Admin shell ---------- */
.admin-shell { display: flex; min-height: calc(100vh - 68px); }
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  padding: 30px 16px;
  background: rgba(10, 22, 40, 0.4);
  border-right: 1px solid var(--white-10);
}
.admin-sidebar a {
  display: block;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  color: var(--white-70);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.admin-sidebar a:hover { background: var(--white-06); color: var(--white); }
.admin-sidebar a.active { background: var(--white); color: var(--navy-900); font-weight: 700; }
.admin-main { flex: 1; padding: 34px 40px 80px; max-width: 1100px; }
.admin-main h1 { font-size: 1.6rem; margin-bottom: 4px; }
.admin-main .page-sub { color: var(--white-40); margin-bottom: 28px; font-size: 0.92rem; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { padding: 22px 24px; }
.stat-card .num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--white); }
.stat-card .label { font-size: 0.82rem; color: var(--white-40); margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--white-10);
  padding: 28px 0;
  text-align: center;
  color: var(--white-40);
  font-size: 0.82rem;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.text-center { text-align: center; }
.section-title { color: var(--white); font-size: 1.4rem; margin-bottom: 20px; }

/* ==========================================================================
   MOBİL UYUM (RESPONSIVE) AYARLARI 
   ========================================================================== */

@media (max-width: 768px) {
  
  /* Kapsayıcıyı daralt */
  .container { padding: 0 15px; width: 100%; }

  /* 1. Üst Menü Ayarları (Sadece Mobilde Bulanık ve Alt Alta) */
  .navbar {
    background: rgba(10, 22, 40, 0.70) !important;
    -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
    backdrop-filter: blur(18px) saturate(140%) !important;
    position: sticky !important;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--white-10);
  }
  .navbar .container {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 15px !important;
    height: auto !important; 
  }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 0.9rem; }
  .hide-mobile, .nav-links a span.hide-mobile { display: none !important; }

  /* 2. Hero Alanı (Sadece Mobilde Ortala ve Boşluğu Daralt) */
  .hero {
    padding: 40px 15px 40px !important;
    text-align: center !important;
    margin-top: 0 !important;
  }
  .hero h1 { font-size: 2rem; line-height: 1.2; }

  /* 3. Ana Sayfa Kartları ve Formlar */
  .project-grid { grid-template-columns: 1fr; gap: 15px; }
  .flex, .flex-between, .gap-12 { flex-direction: column; align-items: stretch; gap: 15px; }
  .btn { width: 100%; text-align: center; justify-content: center; }

  /* 4. Admin Paneli Uyum Ayarları */
  .admin-shell { flex-direction: column; }
  .admin-sidebar { 
    width: 100%; display: flex; overflow-x: auto; gap: 4px; 
    padding: 14px; border-right: none; border-bottom: 1px solid var(--white-10); 
  }
  .admin-sidebar a { white-space: nowrap; margin-bottom: 0; }
  .admin-main { padding: 26px 18px 60px; }
  .admin-topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

}