/* =========================================================
   RECENT DROPS – STYLES
   Sekcje:
   1) Panel główny + zakładki pionowe
   2) Slider poziomy
   3) Karta dropa (layout ogólny i hover)
   4) Elementy karty (obraz, nazwa, czas, profil)
   5) Badge (ikona skrzynki)
   6) Tooltip
   7) Warianty kolorystyczne (category)
   8) Responsywność (1024px, 600px)
   ========================================================= */

/* =============== 1) PANEL + ZAKŁADKI PIONOWE =============== */

.recent-drops-panel {
  width: 100%;
  min-height: 220px;
  background: linear-gradient(90deg, #16192b 60%, #191d36 100%);
  align-items: flex-start;
  gap: 0;
}

.recent-drops-vertical-tabs {
  width: 54px;
  margin-right: 7px;
  background: transparent;
  align-items: flex-end;
  user-select: none;
}

.drop-tab-vert {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 2px;
  border: none;
  outline: none;
  border-radius: 14px;
  background: #192040;
  color: #bcc3e6;
  font-size: 1.45em;
  cursor: pointer;
  opacity: 0.8;
  transition: background .19s, color .19s;
}

.drop-tab-vert.active,
.drop-tab-vert:hover {
  background: #252d56;
  color: #ff9d37;
  opacity: 1;
}

/* Dodatkowe zakładki poziome (jeśli używasz) */
.recent-drops-tabs { margin-bottom: 6px; }

.drop-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 13px;
  border: none;
  outline: none;
  border-radius: 12px;
  background: #171c32;
  color: #b9bde3;
  font-size: 1.2em;
  cursor: pointer;
  opacity: 0.85;
  box-shadow: 0 0 2px #0003;
  transition: background .18s, color .14s;
}

.drop-tab.active,
.drop-tab:hover {
  background: #252d56;
  color: #ff9d37;
  opacity: 1;
}

.drop-tab svg {
  display: block;
  margin: 0 auto;
}

/* ================== 2) SLIDER POZIOMY =================== */
@keyframes dropEnter {
  0%   { transform: translateY(10px) scale(.96); opacity: 0; filter: drop-shadow(0 0 0 #0000); }
  60%  { transform: translateY(-3px) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) scale(1); }
}
.recent-drop-card.drop-enter {
  animation: dropEnter .28s ease-out;
}

/* delikatne podświetlenie dla nówki (opcjonalnie, 1s) */
.recent-drop-card.drop-highlight {
  box-shadow: 0 0 20px #ff450099, 0 2px 10px #0004;
  transition: box-shadow .8s ease;
}
.recent-drops-slider {
  display: flex;
  gap: 12px;
  overflow: hidden;       /* brak paska przewijania */
  padding: 16px 0 6px 0;
  background: linear-gradient(90deg, #16192b 60%, #191d36 100%);
}

.recent-drops-slider::-webkit-scrollbar {
  display: none;                   /* Chrome, Safari */
}

/* ===================== 3) KARTA DROPA ==================== */

.recent-drop-card {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 170px;
  min-width: 170px;
  max-width: 170px;
  height: 190px;
  padding: 16px 12px 12px 12px;
  margin-right: 0px;
  vertical-align: top;
  text-align: center;
  background: linear-gradient(135deg, #23284d 70%, #16192b 100%);
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 #0002;
  overflow: hidden; /* pewność pozycjonowania */
  transition: box-shadow .2s, transform .2s;
}

.recent-drop-card:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow: 0 0 25px 0 #ff450099, 0 2px 10px 0 #0004;
  z-index: 10;
}

/* ================== 4) ELEMENTY KARTY =================== */

/* obraz przedmiotu */
.recent-drop-card .item-img,
.item-img {
  display: block;
  width: 66px;
  height: 66px;
  margin: 0 auto 8px auto;
  object-fit: contain;
  border-radius: 14px;
  background: #181a2a;
  box-shadow: 0 2px 12px #0005;
}

/* nazwa przedmiotu */
.recent-drop-card .item-name,
.item-name {
  display: block;
  max-width: 100%;
  margin-bottom: 4px;
  color: #fff;
  font-size: 1em;
  font-weight: bold;
  line-height: 1.18;
  word-break: break-word;
  white-space: normal;
  text-shadow: 0 2px 8px #000a;
  overflow: hidden;
}

/* czas (time-ago) */
.recent-drop-card .drop-time,
.drop-time {
  margin-top: 2px;
  color: #bbb;
  font-size: 0.88em;
  white-space: nowrap;
  text-align: center;
}

/* sekcja profilu (pokazywana na hover) */
.recent-drop-card .item-user-info {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
}

.recent-drop-card .item-avatar {
  display: block;
  width: 54px;
  height: 54px;
  margin-bottom: 8px;
  object-fit: cover;
  border: 2px solid #ff4500;
  border-radius: 13px;
  background: #181a2a;
}

.recent-drop-card .item-nick {
  display: block;
  width: 100%;
  max-width: 135px;
  margin-top: 2px;
  color: #ffb380;
  font-size: 1.02em;
  font-weight: bold;
  line-height: 1.18;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* przełączanie treści na hover */
.recent-drop-card .item-main-info,
.recent-drop-card .item-img { display: block; }

.recent-drop-card:hover .item-main-info,
.recent-drop-card:hover .item-img { display: none !important; }

.recent-drop-card:hover .item-user-info { display: flex; }

.recent-drop-profile-link {
  color: inherit;
  text-decoration: none !important;
  cursor: pointer;
}

.recent-drop-profile-link:hover { opacity: 0.97; }

/* ======================= 5) BADGE ======================= */

.recent-drop-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 4px;
  z-index: 12;
  backdrop-filter: blur(2px);
  transition: transform .18s ease;
}

.recent-drop-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.recent-drop-card:hover .recent-drop-badge { transform: scale(1.06); }

@media (max-width: 600px) {
  .recent-drop-badge {
    top: 6px;
    left: 6px;
    width: 22px;
    height: 22px;
  }
}

/* ====================== 6) TOOLTIP ====================== */

.recent-drop-tooltip {
  position: absolute;
  left: 50%;
  bottom: 108%;
  display: none;
  min-width: 130px;
  padding: 10px 14px 7px 14px;
  text-align: center;
  color: #fff;
  background: #23274d;
  border-radius: 16px;
  box-shadow: 0 6px 30px #000b;
  z-index: 22;
  font-size: 0.97em;
  transform: translateX(-50%);
}

.recent-drop-card:hover .recent-drop-tooltip {
  display: block;
  animation: dropTooltipFade .18s;
}

.recent-drop-tooltip img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  object-fit: cover;
  background: #181a2a;
  border: 2px solid #ff4500;
  border-radius: 11px;
}

.recent-drop-tooltip .user-name {
  display: block;
  margin-top: 2px;
  color: #ffb380;
  font-weight: bold;
  font-size: 1em;
}

@keyframes dropTooltipFade {
  from { opacity: 0; transform: translateX(-50%) scale(.97); }
  to   { opacity: 1; transform: translateX(-50%) scale(1); }
}

/* ============== 7) WARIANTY KOLORYSTYCZNE =============== */

.drop-covert     { background: linear-gradient(135deg, #2e1218 80%, #ff253b 100%); }
.drop-contraband { background: linear-gradient(135deg, #3b2a08 80%, #ffd700 100%); }
.drop-classified { background: linear-gradient(135deg, #220b26 80%, #d740ff 100%); }
.drop-restricted { background: linear-gradient(135deg, #1d1726 80%, #937cff 100%); }
.drop-milspec    { background: linear-gradient(135deg, #182338 80%, #3792ff 100%); }
.drop-industrial { background: linear-gradient(135deg, #14212c 80%, #78e8ff 100%); }
.drop-consumer   { background: linear-gradient(135deg, #21222b 80%, #e2e3e6 100%); }
.drop-souvenir   { background: linear-gradient(135deg, #31260d 80%, #f9d957 100%); }
.drop-default    { background: linear-gradient(135deg, #181d34 90%, #232951 100%); }

.drop-sticker-base          { background: linear-gradient(135deg, #242627 80%, #bfc0c3 100%); }
.drop-sticker-high          { background: linear-gradient(135deg, #273432 80%, #56ffb0 100%); }
.drop-sticker-remarkable    { background: linear-gradient(135deg, #243134 80%, #21bfff 100%); }
.drop-sticker-exotic        { background: linear-gradient(135deg, #2b2532 80%, #c94fff 100%); }
.drop-sticker-extraordinary { background: linear-gradient(135deg, #341c2c 80%, #ff4848 100%); }
.drop-sticker-master        { background: linear-gradient(135deg, #20234c 80%, #ffcd52 100%); }
.drop-sticker-distinguished { background: linear-gradient(135deg, #2b292b 80%, #b8f451 100%); }
.drop-sticker-superior      { background: linear-gradient(135deg, #2d2a3c 80%, #ffe15a 100%); }
.drop-sticker-exceptional   { background: linear-gradient(135deg, #29343c 80%, #71a9ff 100%); }

/* ===================== 8) RESPONSYWNOŚĆ ================== */

/* <= 1024px */
@media (max-width: 1024px) {
  .recent-drops-slider { gap: 10px; }

  .recent-drop-card {
    min-width: 130px;
    max-width: 130px;
    padding: 13px 8px 10px 8px;
  }

  .recent-drop-card .item-name { font-size: 15px; }
}

/* <= 600px */
@media (max-width: 600px) {
  .recent-drop-card {
    min-width: 105px;
    max-width: 105px;
    padding: 9px 3px 7px 3px;
  }

  .recent-drop-card .item-img { width: 45px; height: 45px; }

  .recent-drop-card .item-name {
    font-size: 12px;
    padding: 0 2px;
  }

  .recent-drop-card .drop-time { font-size: 10px; }
}
