/* ============================================================
   PROFILE PHOTOS – FINAL FULL CSS
   (Lazy + Fade-in + Overlay + Transparent Corporate Gradient)
   Author: İsmail Hakkı Aşıkkutlu
============================================================ */

/* CARD WRAPPER */
.tp-photos-card {
  background: linear-gradient(180deg,#0b0b0b 0%, #141414 100%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 14px 16px;
}

/* HEADER */
.tp-photos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tp-photos-title {
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.tp-photos-title i { color: #d90404; }

/* FILTER BUTTONS */
.tp-photo-filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .7rem;
}
.tp-filter-pill {
  background: rgba(255,255,255,.08);
  color: #eee;
  border: 1px solid rgba(255,255,255,.2);
  padding: .38rem .7rem;
  border-radius: 9999px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.tp-filter-pill:hover,
.tp-filter-pill.is-active {
  background: #fff;
  color: #111;
  border-color: transparent;
}

/* STRIP & SCROLL */
.tp-photos-strip-wrap {
  position: relative;
  padding: 10px 56px 0 56px;
}
.tp-photos-strip {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 0 12px 0;
  scrollbar-width: thin;
  scrollbar-color: #d90404 #0e0e0e;
}
.tp-photos-strip::-webkit-scrollbar { height: 10px; }
.tp-photos-strip::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg,#d90404,#730707);
  border-radius: 8px;
}

/* ARROWS */
.tp-strip-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  color: #eee;
  border: 1px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all .2s;
}
.tp-strip-nav:hover { background: #fff; color: #111; }
.tp-prev { left: 12px; }
.tp-next { right: 12px; }

/* FADE GRADIENT */
.tp-strip-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 44px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg,rgba(20,20,20,1) 0%,rgba(20,20,20,0) 100%);
}
.tp-strip-fade.right { right: 0; transform: scaleX(-1); }
.tp-strip-fade.left { left: 0; }

/* PHOTO ITEM */
.tp-photo-item {
  flex: 0 0 auto;
  width: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: #111;
  transition: transform .18s ease, box-shadow .18s ease, opacity .4s ease;
  opacity: 0;
  transform: scale(0.97);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
}
.tp-photo-item.visible {
  opacity: 1;
  transform: scale(1);
}
.tp-photo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0,0,0,.45);
}

/* IMAGE THUMB + OVERLAY */
.tp-photo-thumb {
  position: relative;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.08);
  cursor: pointer;
  background: #0b0b0b;
}
.tp-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .45s ease, opacity .4s ease;
  opacity: 0;
}
.tp-photo-thumb img.loaded { opacity: 1; }
.tp-photo-thumb:hover img { transform: scale(1.08); }

/* overlay with transparent corporate gradient */
.tp-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(217,4,4,0);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .35s ease;
}
.tp-photo-thumb:hover .tp-thumb-overlay {
  opacity: 1;
  background: linear-gradient(135deg, rgba(217,4,4,0.55), rgba(115,7,7,0.55));
}
.tp-thumb-overlay i {
  color: #fff;
  font-size: 1.6rem;
  opacity: 0;
  transform: scale(0.6);
  transition: all .3s ease;
}
.tp-photo-thumb:hover .tp-thumb-overlay i {
  opacity: 1;
  transform: scale(1);
}

/* CAPTIONS */
.tp-photo-meta {
  padding: .6rem .7rem .7rem;
  color: #fff;
  text-align: left;
}
.tp-photo-meta:empty { display: none; }
.tp-meta-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s;
}
.tp-meta-desc {
  font-size: 0.82rem;
  color: #ccc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s;
}
.tp-meta-title:hover,
.tp-meta-desc:hover { color: #d90404; }
.tp-meta-title i,
.tp-meta-desc i {
  color: #fff !important;
  font-size: 0.9rem;
  vertical-align: middle;
}
.tp-placeholder {
  color: #999;
  font-style: italic;
  font-size: .85rem;
}

/* LIGHTBOX */
.tp-lightbox[hidden] { display: none!important; }
.tp-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.tp-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.tp-lb-stage {
  max-width: min(96vw, 1400px);
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#tpLbImage {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,.6);
  transition: transform .4s ease;
}
.tp-lightbox.active #tpLbImage { transform: scale(1); }

/* LIGHTBOX NAV */
.tp-lb-close,
.tp-lb-nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  z-index: 5;
}
.tp-lb-close {
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 12px;
}
.tp-lb-close:hover { 
  background: linear-gradient(135deg, rgba(217,4,4,0.85), rgba(115,7,7,0.85));
  color: #fff;
  border-color: transparent;
}
.tp-lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.85);
}
.tp-lb-nav:hover {
  background: linear-gradient(135deg, rgba(217,4,4,0.85), rgba(115,7,7,0.85));
  color: #fff;
  border-color: transparent;
}
.tp-lb-prev { left: 12px; }
.tp-lb-next { right: 12px; }
.tp-lb-footer {
  color: #eee;
  margin-top: 12px;
  font-weight: 700;
}

/* MODAL */
.modal-content.bg-dark { background: #111!important; color: #fff; }
.modal-title { font-weight: 800; font-size: 1.1rem; color: #d90404; }
.modal-body { color: #fff; font-size: .95rem; line-height: 1.6; }
.btn-close-custom { background: none; border: none; color: #d90404; font-size: 1.2rem; }
.btn-close-custom:hover { color: #ff4444; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .tp-photo-item { width: 150px; }
  .tp-photo-thumb { height: 130px; }
  .tp-photo-filters { flex-wrap: nowrap; overflow-x: auto; }
  .tp-photos-title { font-size: 1.1rem; }
}
