/* ═══════════════════════════════════════════
   AKNC — katalog.css
   ═══════════════════════════════════════════ */

/* ─── PAGE SETUP ────────────────────────── */
.katalog-page { background: #f9f8f5; }

.katalog-page #navbar {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 #e2ddd6;
}
.katalog-page #navbar .logo-img { filter: none; opacity: 0.88; }
.katalog-page #navbar .nav-links a { color: #444; }
.katalog-page #navbar .nav-links a:hover { color: #111; }
.katalog-page #navbar .hamburger span { background: #111; }

.nav-active {
  color: #b89d72 !important;
  position: relative;
}
.nav-active::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 100%; height: 1px;
  background: #b89d72;
}

/* ─── KATALOG HERO ──────────────────────── */
.katalog-hero {
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 3rem;
  background: #111110;
  color: #fff;
}
.katalog-hero .section-tag { color: #b89d72; }
.katalog-hero h1 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  margin: .4rem 0 1rem;
}
.katalog-hero p {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  max-width: 500px;
}

/* ─── MAIN ──────────────────────────────── */
.katalog-main {
  padding-top: 2.5rem;
  padding-bottom: 5rem;
  min-height: 60vh;
}

/* ─── BREADCRUMB ────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.5rem;
  font-size: .78rem;
}
.bc-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #888;
  cursor: pointer;
  transition: color .2s;
}
.bc-item:hover { color: #111; }
.bc-home svg { width: 14px; height: 14px; }
.bc-sep { color: #bbb; }

/* ─── TOOLBAR ───────────────────────────── */
.katalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2ddd6;
}
.toolbar-info {
  font-size: .78rem;
  color: #999;
  letter-spacing: .04em;
}
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #e2ddd6;
  background: transparent;
  color: #aaa;
  cursor: pointer;
  transition: all .2s;
  border-radius: 3px;
}
.view-btn svg { width: 16px; height: 16px; }
.view-btn.active,
.view-btn:hover { background: #111; border-color: #111; color: #fff; }

/* ─── KLASÖR GRİD ───────────────────────── */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.folder-card {
  background: #fff;
  border: 1px solid #e8e4de;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.folder-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(0,0,0,.09);
  border-color: #b89d72;
}

.folder-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: #1a1a18;
  overflow: hidden;
}
.folder-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
  opacity: .8;
}
.folder-card:hover .folder-thumb img { transform: scale(1.04); opacity: 1; }

/* Placeholder when no cover image */
.folder-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1c1c1a 0%, #2e2e2b 100%);
}
.folder-thumb-placeholder svg {
  width: 48px; height: 48px;
  color: rgba(184,157,114,.5);
}

/* Photo count badge */
.folder-badge {
  position: absolute;
  top: .6rem; right: .6rem;
  background: rgba(0,0,0,.6);
  color: rgba(255,255,255,.85);
  font-size: .62rem;
  letter-spacing: .08em;
  padding: .2rem .5rem;
  border-radius: 2px;
}

.folder-info {
  padding: 1rem 1.2rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.folder-name {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: 400;
  color: #111;
}
.folder-meta {
  font-size: .68rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.folder-arrow {
  width: 20px; height: 20px;
  color: #ccc;
  flex-shrink: 0;
  transition: color .2s, transform .2s;
}
.folder-card:hover .folder-arrow { color: #b89d72; transform: translateX(3px); }

/* ─── KLASÖR LİSTE GÖRÜNÜMÜ ─────────────── */
.folder-grid.list-view {
  grid-template-columns: 1fr;
  gap: 0;
}
.folder-grid.list-view .folder-card {
  border-radius: 0;
  border-bottom: none;
  border-left: none;
  border-right: none;
  border-top: 1px solid #e8e4de;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.folder-grid.list-view .folder-card:last-child { border-bottom: 1px solid #e8e4de; }
.folder-grid.list-view .folder-thumb {
  width: 90px;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 0;
}
.folder-grid.list-view .folder-info {
  flex: 1;
  padding: .8rem 1.2rem;
}
.folder-grid.list-view .folder-card:hover { transform: none; box-shadow: none; background: #f9f7f4; }

/* ─── FOTOĞRAF GRİD ─────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 3px;
}

.photo-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #1a1a18;
}
.photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease), opacity .4s;
  opacity: .9;
}
.photo-card:hover img { transform: scale(1.05); opacity: 1; }

.photo-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,17,16,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s;
}
.photo-card:hover .photo-card-overlay { background: rgba(17,17,16,.35); }

.photo-card-overlay svg {
  width: 36px; height: 36px;
  color: rgba(255,255,255,0);
  transition: color .3s;
}
.photo-card:hover .photo-card-overlay svg { color: rgba(255,255,255,.9); }

/* Placeholder photo */
.photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1c1c1a, #2a2a28);
  display: flex; align-items: center; justify-content: center;
}
.photo-placeholder svg { width: 40px; height: 40px; color: rgba(255,255,255,.15); }

/* ─── EMPTY STATE ───────────────────────── */
.empty-state {
  text-align: center;
  padding: 5rem 1rem;
  color: #bbb;
}
.empty-state svg {
  width: 64px; height: 64px;
  margin: 0 auto 1.5rem;
  color: #ccc;
}
.empty-state p { font-size: .9rem; line-height: 1.8; color: #aaa; }
.empty-state strong { color: #888; }

/* ─── LIGHTBOX ──────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,10,10,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lb-inner {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.lb-inner img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
  user-select: none;
}

.lb-caption {
  font-family: var(--ff-serif);
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .06em;
  text-align: center;
  min-height: 1.4em;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
  border-radius: 50%;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { background: rgba(255,255,255,.18); color: #fff; }

.lb-close { top: 1.5rem; right: 1.5rem; width: 44px; height: 44px; }
.lb-close svg { width: 20px; height: 20px; }

.lb-prev, .lb-next {
  top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px;
}
.lb-prev svg, .lb-next svg { width: 22px; height: 22px; }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }

.lb-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%; transform: translateX(-50%);
  font-size: .72rem;
  letter-spacing: .14em;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
}

/* ─── RESPONSIVE ────────────────────────── */
@media (max-width: 720px) {
  .folder-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .photo-grid  { grid-template-columns: repeat(2, 1fr); }

  .lb-prev { left: .5rem; }
  .lb-next { right: .5rem; }
  .lb-prev, .lb-next { width: 40px; height: 40px; }
}

@media (max-width: 420px) {
  .folder-grid { grid-template-columns: 1fr; }
  .photo-grid  { grid-template-columns: 1fr; }
}
