:root {
  --shadow-light: 2px 2px 5px rgba(255, 255, 255, 0.7);
  --shadow-dark: -2px -2px 5px rgba(0, 0, 0, 0.1);
  --global-purple: rgba(86, 42, 121, 1);
  --global-yellow: rgba(252, 179, 76, 1);
  --global-white: rgba(255, 255, 255, 1);
  --zoom: 0.9;
  --blur: 12px;
  --veil: rgba(60, 0, 90, .45);
  --font-stack: 'SF Pro Display', sans-serif;
  --actions-offset: clamp(24px, 6vh, 46px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  font-family: var(--font-stack);
  background: #f0f0f3;
  color: #333;
}


/* === (YENİ) Sayfa Yükleme Spinner'ı (Infinite Scroll) === */
#page-loading-spinner {
  display: none; /* JS ile 'block' yapılacak */
  text-align: center;
  padding: 2rem;
  font-size: 2rem;
  color: var(--global-purple, #562a79);
}


/* === (YENİ) "Load More" Neumorphic Buton Stili === */
.load-more-container {
  display: flex; /* none'dan flex'e geçecek */
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0 2rem 0;
}

.load-more-btn {
  -webkit-tap-highlight-color: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
  min-width: 180px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: 999px;
  /* Sitenizin ana arka plan rengini kullanalım */
  background: #f0f0f3; 
  /* Sitenizin ana mor rengini kullanalım */
  color: var(--global-purple, #562a79); 
  font-family: var(--font-stack, 'SF Pro Display', sans-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  /* Neumorphic Gölgeler */
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, .1), 
    -8px -8px 16px rgba(255, 255, 255, .9);
  transition: all 0.2s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.load-more-btn:hover {
  /* Hafifçe içeri bastırma efekti */
  box-shadow: 
    6px 6px 12px rgba(0, 0, 0, .1), 
    -6px -6px 12px rgba(255, 255, 255, .9);
}

.load-more-btn:active {
  /* Tam basma efekti */
  transform: scale(0.98);
  box-shadow: 
    inset 4px 4px 8px rgba(0, 0, 0, .1), 
    inset -4px -4px 8px rgba(255, 255, 255, .9);
}

/* Yükleme sırasında butonu devre dışı bırak */
.load-more-btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  box-shadow: 
    inset 4px 4px 8px rgba(0, 0, 0, .1), 
    inset -4px -4px 8px rgba(255, 255, 255, .9);
}

/* Buton içindeki spinner için */
.load-more-btn .btn-spinner {
  font-size: 1.1rem;
}

.Btn {
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border: none;
  border-radius: 40px;
  background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  color: rgb(100, 85, 2);
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition-duration: 3s;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.144);
  background-size: 200% 200%;
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -o-user-select: none;
  -ms-user-select: none;
  user-select: none;
}


.Btn:hover {
  transform: scale(0.95);
  transition-duration: 3s;
  animation: gradient 5s ease infinite;
  background-position: right;
}

#floating-button {
  border: solid 4px var(--global-white);
  position: fixed;
  bottom: 15px;
  right: 15px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(120deg, #562a79, #fcb34c, #562a79, #fcb34c);
  background-size: 400% 400%;
  transition: right 0.3s ease-in-out, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  animation: gradient-move 6s ease infinite;
}

@keyframes gradient-move {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.fab-inner {
  width: 54px;
  height: 54px;
  background-color: var(--global-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.25);
}

#floating-button:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transform: scale(1.05);
  animation-play-state: paused;
}

.scrolled-hidden {
  right: -35px !important;
}

.img-btn-logo {
  background-color: var(--global-white);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: solid;
  border-width: 2px 2px 2px 2px;
  border-color: rgba(255, 255, 255, 0.333);
  border-radius: 40px 40px 40px 40px;
  transform: translate(0px, 0px) rotate(0deg);
  transition: 0.2s;
  box-shadow: -2px -1px 8px 0px #fff, 2px 1px 8px 0px rgb(95 157 231 / 48%);
}

.img-btn-logo:hover {
  background-color: #f0f0f3;
  box-shadow: 2px 1px 8px 0px #ffffff, -2px -1px 8px 0px rgb(95 157 231 / 48%);
}


.img-btn-logo img {
  height: 1rem;
}

.content {
  flex: 1;
}

.site-header {
  box-shadow: var(--shadow-light), var(--shadow-dark);
  padding: 1rem 0;
  /* (YENİ) Sticky özellikler */
  position: sticky;
  top: 0; /* En üste yapışacak */
  z-index: 1010; /* Diğer her şeyin üstünde kalsın (FAB'ın altında) */
  width: 100%; /* Tam genişlik kaplasın */
  background: var(--neo-bg, rgba(240, 240, 243, .8));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-item-profile,
.nav-item-amount {
  background-color: var(--global-white);
  box-shadow: var(--shadow-light), var(--shadow-dark);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.nav-item-profile {
  border-radius: 0 2rem 2rem 0;
}

.nav-item-profile:hover {
  box-shadow: 2px 1px 8px 0px #ffffff, -2px -1px 8px 0px rgb(95 157 231 / 48%);
}

.nav-item-amount {
  border-radius: 2rem 0 0 2rem;
}

.nav-item-amount:hover {
  box-shadow: 2px 1px 8px 0px #ffffff, -2px -1px 8px 0px rgb(95 157 231 / 48%);
}

#balance {
  font-weight: bold;
}



.footer-style {
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  width: max-content;
  margin-bottom: 1rem;
  border-radius: 99px;
  text-align: center;
  padding: 0.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-shadow: 
    inset 4px 4px 8px rgba(0, 0, 0, .1), 
    inset -4px -4px 8px rgba(255, 255, 255, .9);
}


.container {
  padding: 0 1rem 1rem 1rem; /* Üst padding'i kaldır */
}

.filters {
  padding: 1rem;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  gap: 0.5rem;
}

.filters select {
  flex: 1;
  padding: 0.5rem;
  border-radius: 1rem;
  border: 1px solid #ccc;
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  justify-content: start;
}

@media screen and (max-width: 330px) {
  .wallpaper-grid {
  grid-template-columns: repeat(1, 1fr);
}
}

@media screen and (min-width: 600px) {
  .wallpaper-grid {
  grid-template-columns: repeat(3, 1fr);
}
}

@media screen and (min-width: 950px) {
  .wallpaper-grid {
  grid-template-columns: repeat(4, 1fr);
}
}

@media screen and (min-width: 1300px) {
  .wallpaper-grid {
  grid-template-columns: repeat(5, 1fr);
}
}

.wallpaper {
  position: relative;
  background: var(--global-white);
  border-radius: 1rem;
  box-shadow: var(--shadow-light), var(--shadow-dark);
  overflow: hidden;
}

/* === Price / Free badges on cards === */
/* ===== Price Badge (grid + preview ortak) ===== */
.wp-price-badge{
  position:absolute;
  top:10px;
  left:50%;
  transform:translateX(-50%);
  z-index:5;
  display:flex;
  justify-content: center;
  align-items:center;
  align-self: center;
  gap:0.3rem;
  width: 25%;
  height: 4%;
  border-radius:999px;
  background: rgba(20, 20, 28, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  font-size:0.8rem;
}

.wallpaper .wp-thumb .wp-price-badge {
  font-size: 0.6rem;
  width: calc(30%);
  height: calc(6%);
}


.wp-price-badge .pi-dot{
  margin: 1px;
  width:10px;
  height:10px;
  object-fit:contain;
  display:block;
}

.wallpaper .wp-thumb .wp-price-badge .pi-dot{ width: 7px; height: 7px; }
.wp-price-badge .lbl{ transform:translateY(.5px); }

.wallpaper .wp-thumb{ position:relative; }
.wp-preview .wp-panel{ position:relative; }



.wallpaper img {
  width: 100%;
  display: block;
  pointer-events: none;
}

.wallpaper-info {
  padding: 0.5rem;
}

.wallpaper-info h3 {
  text-align: center;
}

.like-btn,
.download-btn,
.info-btn,
.button {
  -webkit-tap-highlight-color: transparent !important;
  background: var(--global-white);
  border: none;
  margin: 0 0.1rem;
  padding: 0.5rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  font-size: 0.9rem;
}

.like-btn {
  padding: 0rem !important;
  margin: 0rem !important;
}

.info-btn {
  font-size: 1.8rem !important;
  margin: 0rem !important;
  padding: 0rem !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.actions {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.categories {
  display: none;
}

@media (max-width: 480px) {
  .wallpaper {
    flex: 1 1 100%;
  }

  .filters {
    flex-direction: column;
  }
}

/* Kart içi açılır panel */
.info-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4.2rem;
  backdrop-filter: blur(10px);
  padding: 1rem;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 0.5rem 0.5rem 0 0;
  pointer-events: none;

  background: rgba(255, 255, 255, .1);
  box-shadow: 0 25px 45px rgba(0, 0, 0, .2);
  border-radius: 20px 20px 0 0;
  border: 2px solid rgba(255, 255, 255, .5);
  border-right: 2px solid rgba(255, 255, 255, .2);
  border-bottom: 2px solid rgba(255, 255, 255, .2);
}

.wallpaper.info-open .info-panel {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .25rem;
}

.info-header .panel-title {
  text-shadow: 0 10px 20px rgba(0, 0, 0, .5);
  color: var(--global-white);
  font-size: 1rem;
  font-weight: 700;
}

.close-info {
  background: transparent;
  border: 0;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--global-white);
  padding: .25rem .5rem;
}

.panel-description {
  text-shadow: 0 10px 20px rgba(0, 0, 0, .5);
  color: var(--global-white);
  font-size: .8rem;
  line-height: 1.4;
  margin-top: .25rem;
}

.panel-tags {
  margin-top: .5rem;
}

.panel-tags .tag {
  color: blue;
  background: var(--global-white);
  border-radius: 8px;
  padding: 4px 8px;
  margin: 4px 6px 0 0;
  cursor: pointer;
  font-size: .85rem;
  border: none;
}

.panel-tags .tag:hover {
  background: var(--global-yellow);
}

/* Piper sayfası için tablolar */
.piper-loading {
  background: #e0e0e0;
  padding: 20px;
  margin: 20px auto;
  border-radius: 15px;
  width: 90%;
  text-align: center;
}

.piper-table {
  width: 95%;
  margin-top: 20px;
  border-collapse: collapse;
  background: #e0e0e0;
  box-shadow: inset 5px 5px 10px #bebebe, inset -5px -5px 10px #ffffff;
  border-radius: 10px;
  overflow: hidden;
}

.piper-table th,
.piper-table td {
  padding: 15px;
  text-align: right;
  border-bottom: 1px solid #ccc;
}

.piper-table th {
  background: #d0d0d0;
  box-shadow: inset 3px 3px 6px #bebebe, inset -3px -3px 6px #ffffff;
}

/* Piper table — vertical EXTRA badges */
.piper-table td.amount {
  position: relative;
  padding-left: 72px;
  /* rozet için boşluk */
}

.piper-table tbody tr {
  position: relative;
}

/* ortak rozet görünümü */
.extra-badge {
  position: absolute;
  left: 0px;
  /* hücrenin solundan */
  top: 0px;
  /* üstten boşluk */
  bottom: 0px;
  /* alttan boşluk - yüksekliği satıra uydurur */
  width: max-content;
  /* rozet kalınlığı */
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: sideways-lr;
  /* dikey yazı */
  text-align: center;
  font-weight: bold;
  font-size: 10px;
  color: #333;
  background: linear-gradient(180deg, rgba(252, 179, 76, .96), rgba(240, 150, 30, .96));
}

/* % seviyelerine göre küçük ton farkları (isteğe bağlı) */
tr.extra-10 .extra-badge {
  filter: saturate(1.0) brightness(1.02);
}

tr.extra-30 .extra-badge {
  filter: saturate(1.08) brightness(1.0);
}

tr.extra-60 .extra-badge {
  filter: saturate(1.2) brightness(0.98);
}

/* küçük ekranlarda yazıyı biraz küçült */
@media (max-width: 420px) {
  .extra-badge {
    width: 32px;
    font-size: 11px;
  }

  .piper-table td.amount {
    padding-left: 64px;
  }
}


.indirim-badge {
  margin: 0 5px;
  background: var(--global-yellow);
  color: #333;
  padding: 5px;
  font-weight: bold;
  font-size: small;
  border-radius: 5px;
  box-shadow: 3px 3px 6px #bebebe, -3px -3px 6px #ffffff;
}

.buy-button {
  background: var(--global-purple);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 3px 3px 6px #bebebe, -3px -3px 6px #ffffff;
  transition: all 0.3s;
}

.buy-button:hover {
  background: var(--global-yellow);
  box-shadow: inset 3px 3px 6px #bebebe, inset -3px -3px 6px #ffffff;
}

/* Profile sayfası */

.pp-placeholder {
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.user-info {
  margin-bottom: 1rem;
  text-align: center;
}

.user-stats summary {
  font-size: 0.875rem;
  padding: 0.5rem;
  background: var(--global-white);
  border-radius: 8px;
  box-shadow: var(--shadow-light), var(--shadow-dark);
  list-style: none;
  cursor: pointer;
}

.profile-page details:not(:last-child) {
  margin-bottom: 0.5rem;
}

.upload-action {
  text-transform: none;
  text-align: center;
  margin-top: 1rem;
}

.upload-action .load-more-btn {
  background-color: var(--global-purple);
}

.upload-action a {
  color: #fff;
  text-decoration: none;
}

.upload-action a .earnpiper-txt {
  color: var(--global-yellow);
  text-decoration: none;
}

/* Küçük görsel linki */
.wp-thumb {
  display: block;
  border-radius: 16px;
  overflow: hidden
}

.wp-thumb img {
  aspect-ratio: 9/16;
  object-fit: cover;
  width: 100%;
  display: block
}

/* Preview (modal) */
/* Önizleme başta kapalı */

html:has(.wp-preview:target),
body:has(.wp-preview:target) {
  overflow: hidden;
  /* sayfa kaymasını engeller */
}

.wp-preview {
  /* background-color: rgba(0, 0, 0, .5); DAHA SONRA DENE ŞİMDİLİK TRANSPARENT */
  display: none;
  position: fixed;
  /* tüm viewport’a sabitle */
  inset: 0;
  z-index: 9999;
  /* her şeyin üstünde */
  overscroll-behavior: contain;
}

.wp-preview:target {
  display: block;
}

/* Arka plan: bulanık */
.wp-backdrop {
  position: absolute;
  inset: 0;
  display: block;
}

.wp-preview:target .wp-backdrop {
  opacity: 1;
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
}

/* Panel (ortada büyüt) */
.wp-panel {
  z-index: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  /* Başta herhangi bir anim yok; hedeflenince animasyon çalışacak */
  transform: translate(-50%, -50%) scale(1);
  width: min(92vw, 420px);
  overflow: hidden;
  /* İsteğe bağlı: köşeden büyütme hissi için birini aktif et */
  /* transform-origin: center center; */
  /* (varsayılan, Photoshop’ta Alt/Option ile büyütme gibi) */
  /* transform-origin: top left; */
  /* köşeden tutup büyütme hissi için bunu açabilirsin */
  border-radius: 40px;
  border-top: 1px solid rgba(255, 255, 255, .6);
  border-left: 1px solid rgba(255, 255, 255, .6);
  border-right: 2px solid rgba(255, 255, 255, .15);
  border-bottom: 2px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  box-shadow: inset 1px 1px 4px rgba(255, 255, 255, 0.3),
    inset -1px -1px 4px rgba(0, 0, 0, 0.15);
}

.wp-preview:target .wp-panel {
  animation: wp-pop-in .50s cubic-bezier(.2, .75, .25, 1) both;
}

@keyframes wp-pop-in {
  0% {
    transform: translate(-50%, -50%) scale(.6);
    opacity: 0;
  }

  60% {
    transform: translate(-50%, -50%) scale(calc(var(--zoom) + .05));
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(var(--zoom));
    opacity: 1;
  }
}

.wp-panel img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.wp-footer {
  bottom: 1rem;
  text-align: center;
  padding: .75rem;
  font-weight: bold;
}

/* Görsel linki default underline vs. almasın */
.wp-close-img {
  display: block;
}

.wp-close-img img {
  display: block;
  width: 100%;
  height: auto;
}


/* Lock-screen style overlay */
.wp-lockoverlay {
  position: absolute;
  left: 0;
  top: 20px;
  /* görsele göre mesafeyi ayarlayabilirsiniz */
  width: 100%;
  text-align: center;
  pointer-events: none;
  /* tıklamalar alttaki img'ye geçer, close çalışır */
  user-select: none;
}

.wp-lockoverlay .wp-time {
  -webkit-text-stroke: var(--global-white);
  -webkit-text-stroke-width: 0.75px;
  -webkit-text-stroke-color: var(--global-white);
  opacity: 0.8;
  font-family: var(--font-stack);
  font-size: clamp(80px, 7.5vw, 56px);
  /* mobilde büyük, masaüstünde dengeli */
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.9px;
  color: rgba(255, 255, 255, .75);
  font-variant-numeric: tabular-nums;
}

.wp-lockoverlay .wp-date {
  font-family: var(--font-stack);
  margin-top: 30px;
  font-size: clamp(14px, 3.5vw, 18px);
  font-weight: 500;
  line-height: 1;
  color: rgba(255, 255, 255, .95);
  text-transform: capitalize;
  /* perşembe -> Perşembe (TR'de çoğu tarayıcı zaten büyük harf başlatır) */
}

/* Panelin üstüne tam ekran PNG bindir */

/*.wp-panel::after { */
/*  content: ''; */
/*  position: absolute; */
/*  inset: 0;        */
/* panelin tamamını kapla */
/*  background: url('/img/lockscreen-bottom-icons.png') center / cover no-repeat; */
/*  pointer-events: none;    */
/* alttaki linke tıklayıp kapatma çalışsın */
/*  z-index: 3;               */
/* img'nin ÜSTÜNDE, saat/tarih'in ALTINDA */
/*  border-radius: inherit;   */
/* panel ile aynı köşe yuvarlaklığı */
/*} 

/* Katman sırası */
.wp-close-img {
  position: relative;
  z-index: 1;
}

.wp-panel::after {
  z-index: 2;
}

/* (varsa) cover overlay pseudo */
.wp-lockoverlay {
  position: absolute;
  z-index: 4;
}

.wp-toast {
  z-index: 5;
}

/* iOS stil bildirim */
.wp-toast {
  font-family: var(--font-stack);
  position: absolute;
  left: 50%;
  bottom: clamp(135px, 12vh, 180px);
  /* alttan mesafe */
  transform: translate(-50%, 20px) scale(.98);
  opacity: 0;
  transition:
    transform .45s cubic-bezier(.2, .8, .2, 1),
    opacity .35s ease-out,
    box-shadow .2s ease, filter .2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  width: calc(100% - 28px);
  /* panel kenarlarında boşluk */
  max-width: 560px;
  border-radius: 16px;

  color: #fff;
  text-align: left;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .28);
  border-right: 1px solid rgba(255, 255, 255, .16);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow:
    0 22px 44px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .6),
    inset 0 -1px 0 rgba(255, 255, 255, .12);
  cursor: pointer;
}

.wp-toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  /* alttan yukarı akıcı giriş */
}

.wp-toast.pressed {
  transform: translate(-50%, 0) scale(.98);
  filter: brightness(1.05);
}

/* içerik */
.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #fff;
  flex: 0 0 28px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
}

.toast-body {
  line-height: 1.2;
  flex: 1;
}

.toast-title {
  font-weight: 400;
  font-size: 14px;
}

.toast-sub {
  font-weight: 800;
  font-size: 16px;
}

.toast-time {
  font-size: 12px;
  opacity: .85;
  margin-left: 8px;
  margin-bottom: 22px;
}

/* Motion azaltma isteyen kullanıcılar için */
@media (prefers-reduced-motion: reduce) {
  .wp-toast {
    transition: opacity .2s linear;
    transform: translate(-50%, 0) scale(1);
  }

  .wp-toast.show {
    opacity: 1;
  }
}

/* Instagram tarzı like butonu */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--global-white);
  border: none;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  color: #333;
  transition: transform .15s ease, filter .15s ease;
}

.like-btn i {
  font-size: 18px;
}

.like-btn .count {
  font-size: 14px;
}

.like-btn:active,
.like-btn.pressed {
  transform: scale(1.1);
}

.like-btn.liked {
  color: #e53935;
}

/* metin/ikon rengi */
.like-btn.liked i {
  color: #e53935 !important
}

/* kalp kırmızı */

/* X (Twitter) tarzı like patlaması */
.like-btn {
  position: relative;
  overflow: visible;
}

/* patlama için referans */

.like-burst {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 3;
}

.like-burst .p {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  will-change: transform, opacity;
}

.like-burst .p.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, #f91880);
  animation: like-burst-move 650ms cubic-bezier(.22, .61, .36, 1) forwards;
}

.like-burst .p.line {
  width: 2px;
  height: 10px;
  border-radius: 1px;
  background: var(--c, #f91880);
  transform-origin: center;
  animation: like-burst-move 650ms cubic-bezier(.22, .61, .36, 1) forwards;
}

/* hareket / sönümleme */
@keyframes like-burst-move {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.5);
  }

  35% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(.2) rotate(var(--rot, 0deg));
  }
}

/* kalp için ufak pop */
.like-btn i.heart-pop {
  animation: heart-pop 600ms cubic-bezier(.22, .61, .36, 1);
}

@keyframes heart-pop {
  0% {
    transform: scale(.85);
  }

  50% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
  }
}

/* Swipe-to-dismiss için ufak destek */
.wp-toast {
  touch-action: pan-y;
}

/* yatay hareketi biz yöneteceğiz */
.wp-toast.swiping {
  transition: none !important;
}

/* sürüklerken akıcı olsun */


/* Floating actions (glass pill) */
.wp-actions {
  position: absolute;
  left: 50%;
  bottom: var(--actions-offset);
  /* <<< ortak taban */
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-right: 1px solid rgba(255, 255, 255, .16);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .6);
  z-index: 6;
  pointer-events: auto;
}

.wp-actions .act {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, background-color .18s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 8px 16px rgba(0, 0, 0, .25);
}

.wp-actions .act i {
  pointer-events: none;
  font-size: 18px;
}

.wp-actions .act:hover {
  filter: brightness(1.06);
}

.wp-actions .act:active,
.wp-actions .act.pressed {
  transform: scale(.95);
}

.wp-actions .act.like.liked i {
  color: #ff3b30;
}

/* Glass info sheet (slide-up) */
.wp-info-sheet {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  bottom: clamp(120px, 18vh, 200px);
  width: calc(100% - 32px);
  max-width: 640px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .28);
  border-right: 1px solid rgba(255, 255, 255, .16);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: opacity .25s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
  z-index: 7;
}

.wp-info-sheet.open {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.wp-info-sheet .sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  margin-bottom: .4rem;
}

.wp-info-sheet .sheet-head h4 {
  font-size: 1rem;
  font-weight: 800;
}

.wp-info-sheet .sheet-close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.wp-info-sheet .sheet-desc {
  font-size: .9rem;
  line-height: 1.4;
  opacity: .95;
}

.wp-info-sheet .sheet-tags {
  margin-top: .5rem;
}

.wp-info-sheet .sheet-tags .tag {
  color: #2d2d2d;
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  margin: 6px 8px 0 0;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}

/* Set-as-wallpaper guide styles inside info sheet */
.wp-info-sheet .muted {
  opacity: .9;
}

.wp-info-sheet .muted.small {
  font-size: .85rem;
  margin-top: .4rem;
}

.wp-info-sheet .steps {
  margin: .35rem 0 .6rem;
  padding-left: 1.25rem;
}

.wp-info-sheet .steps li {
  margin: .25rem 0;
  line-height: 1.45;
}



/* Exit (X) düğmesi – cam efektli, aksiyonlarla uyumlu */
.wp-exit {
  display: flex;
  gap: 12px;
  padding: 8px;
  position: absolute;
  right: clamp(14px, 3.8vw, 22px);
  margin-right: 2rem;
  margin-bottom: 0.6rem;
  bottom: var(--actions-offset);
  /* <<< aynı taban */
  --exit-nudge: 1px;
  transform: translateY(var(--exit-nudge));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 22px rgba(0, 0, 0, .28);
  cursor: pointer;
  z-index: 6;
  transition: transform .18s ease, filter .18s ease;
}

.wp-exit:hover {
  filter: brightness(1.06);
}

.wp-exit:active {
  transform: scale(.95);
}

.wp-exit i {
  font-size: 22px;
  pointer-events: none;
}

.profile-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-top: .5rem
}

@media screen and (max-width: 330px) {
  .profile-list {
  grid-template-columns: repeat(2, 1fr);
}
}

@media screen and (min-width: 600px) {
  .profile-list {
  grid-template-columns: repeat(3, 1fr);
}
}

@media screen and (min-width: 950px) {
  .profile-list {
  grid-template-columns: repeat(4, 1fr);
}
}

@media screen and (min-width: 1300px) {
  .profile-list {
  grid-template-columns: repeat(5, 1fr);
}
}

.profile-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-light), var(--shadow-dark);
  position: relative;
}

.profile-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block
}

.profile-card .ttl {
  display: block;
  padding: .4rem .5rem;
  font-size: .8rem;
  color: #333
}

.profile-card img {
  pointer-events: none;
}

.wp-price-badge.owned { 
  background: rgba(86,42,121,.15);
  border: 1px solid #562a79;
}

.wp-price-badge.free { 
  border: 1px solid rgba(255, 255, 255, 0.30);
}

/* === Profil - Yükleme Durum Rozeti (Yeni) === */


.profile-status-badge {
  position: absolute;
  top: 8px; /* Görselin 8px içinde */
  left: 8px; /* Görselin 8px içinde */
  z-index: 10; /* Görselin üstünde kalsın */
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem; /* 12px */
  font-weight: 700;
  color: #333;
  background: var(--global-yellow); /* Sizin Pi sarısı değişkeniniz */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Admin panelinde onayladığımızda veya reddettiğimizde de çalışsın */
.profile-status-badge.status-pending {
  background: var(--global-yellow); /* rgba(252, 179, 76, 0.9) */
  color: #333;
}

.profile-status-badge.status-approved {
  background: #4CAF50; /* Onay için Yeşil */
  color: white;
}

.profile-status-badge.status-rejected {
  background: #f44336; /* Ret için Kırmızı */
  color: white;
}

/* === (YENİ) Author Link Stilleri === */
.panel-author, .sheet-author {
  margin: 0.5rem 0;
  padding-top: 0.5rem;
  /* Etiketlerden ayırmak için hafif bir çizgi */
  border-top: 1px solid rgba(255, 255, 255, 0.2); 
}

/* info-panel (grid) içindeki çizgi daha koyu olsun */
.info-panel .panel-author {
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.author-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--global-white);
  background: transparent;
  border: 1px solid #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 1rem;
  transition: background-color 0.2s ease;
}

/* info-panel (grid) içindeki link */
.info-panel .author-link {
  color: var(--global-white);
  background: transparent;
  border: 1px solid #fff;
}

.author-link:hover {
  background: rgba(255, 255, 255, 0.3);
}

.info-panel .author-link:hover {
  background: rgba(86, 42, 121, 0.2);
}

.author-link i {
  font-size: 0.9rem;
}

/* === (YENİ) Özel Neumorphic Alert Dialog Stilleri === */
.custom-alert-overlay {
  position: fixed;
  inset: 0; /* top: 0; left: 0; right: 0; bottom: 0; */
  background-color: rgba(0, 0, 0, 0.4); /* Hafif karartma efekti */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001; /* Diğer her şeyin üstünde */
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.custom-alert-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.custom-alert-box {
  background: var(--neo-bg, #f0f0f3); /* Ana arka plan rengi */
  padding: 2rem;
  border-radius: 1.5rem; /* 24px */
  text-align: center;
  width: 100%;
  max-width: 380px; /* Maksimum genişlik */
  /* Neumorphic gölgeler */
  box-shadow:
    10px 10px 24px var(--neo-shadow-dark, rgba(0, 0, 0, .12)),
    -8px -8px 22px var(--neo-shadow-light, rgba(255, 255, 255, .7)),
    inset 0 1px 0 rgba(255, 255, 255, .6);
  transform: scale(0.95);
  transition: transform 0.2s ease-in-out;
}

.custom-alert-overlay.visible .custom-alert-box {
  transform: scale(1);
}

.custom-alert-message {
  margin: 0 0 1.5rem 0; /* Butondan önce boşluk */
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text, #333);
}

.custom-alert-ok-btn {
  -webkit-tap-highlight-color: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
  padding: 0.8rem 2rem; /* 12px 32px */
  border-radius: 999px;
  background: var(--neo-bg, #f0f0f3);
  color: var(--brand-purple, #562a79); /* Mor renk */
  font-size: 1rem;
  font-weight: 700;
  /* Neumorphic buton gölgeleri */
  box-shadow:
    5px 5px 10px var(--neo-shadow-dark, rgba(0, 0, 0, .1)),
    -5px -5px 10px var(--neo-shadow-light, rgba(255, 255, 255, .8));
  transition: all 0.15s ease-in-out;
}

.custom-alert-ok-btn:hover {
  box-shadow:
    3px 3px 6px var(--neo-shadow-dark, rgba(0, 0, 0, .1)),
    -3px -3px 6px var(--neo-shadow-light, rgba(255, 255, 255, .8));
}

.custom-alert-ok-btn:active {
  transform: scale(0.98);
  box-shadow:
    inset 2px 2px 4px var(--neo-shadow-dark, rgba(0, 0, 0, .1)),
    inset -2px -2px 4px var(--neo-shadow-light, rgba(255, 255, 255, .8));
}

.custom-alert-checkbox-wrapper {
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9em;
  color: #666;
}

.custom-alert-checkbox-wrapper input[type="checkbox"] {
  margin-right: 8px;
  /* Daha iyi görünmesi için biraz büyütüyoruz */
  transform: scale(1.1);
}

.custom-alert-checkbox-wrapper label {
  cursor: pointer;
}

/* ==========================
   Misafir Giriş Banner'ı
   ========================== */
.guest-banner {
  background-color: var(--brand-purple, #562a79); /* Mor Arkaplan */
  color: #ffffff;
  padding: 1.5rem 1rem;
  border-radius: 20px; /* Yuvarlak köşeler */
  margin: 10px 0 20px; /* Filtrelerin yerine oturması için boşluk */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  box-shadow: 0 8px 20px rgba(86, 42, 121, 0.25);
}

.guest-banner p {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.4;
}

.guest-login-btn {
  background-color: #ffffff;
  color: var(--brand-purple, #562a79);
  border: none;
  padding: 12px 24px;
  border-radius: 50px; /* Hap şeklinde buton */
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.guest-login-btn:active {
  transform: scale(0.96);
}

.guest-login-btn i {
  font-size: 1rem;
  color: inherit; /* Butonun metin rengini (mor) alır */
}
