/* css/magaza.css — Mağaza: mövsümi/həftəlik yenilənən kosmetik satış. */

:root {
  --mz-bg: #14102a;
  --mz-card: #1f1a3d;
  --mz-accent: #ffd166;
  --mz-text: #f5f6fa;
}

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

.mz-page {
  min-height: 100vh;
  background: radial-gradient(circle at 30% 0%, rgba(255, 209, 102, .08), transparent 50%),
    linear-gradient(160deg, var(--mz-bg) 0%, #1a1435 50%, var(--mz-bg) 100%);
  color: var(--mz-text);
  padding: 10px 14px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mz-back-btn {
  border: 0;
  background: rgba(255, 255, 255, .1);
  color: var(--mz-text);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.mz-title {
  font-weight: 800;
  font-size: 17px;
  flex: 1;
  text-align: center;
}

.mz-balance {
  background: rgba(255, 255, 255, .08);
  border-radius: 12px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  white-space: nowrap;
}

.mz-countdown {
  text-align: center;
  font-size: 12px;
  opacity: .7;
  margin: 0;
}

.mz-section {
  background: rgba(255, 255, 255, .04);
  border-radius: 18px;
  padding: 14px;
}

.mz-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 10px;
}

.mz-section-hint {
  font-size: 11px;
  font-weight: 500;
  opacity: .6;
}

.mz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.mz-item {
  background: var(--mz-card);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mz-item.owned {
  border-color: rgba(255, 209, 102, .5);
}

/* #56 hissə 5: VIP-yalnız əşyalar (aktiv VIP olmadan) kilidli görünür. */
.mz-item.locked {
  opacity: .55;
}

.mz-item-name {
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mz-item-btn {
  border: 0;
  border-radius: 10px;
  padding: 7px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #ffd166, #ffb238);
  color: #3a2500;
}

.mz-item-btn:disabled {
  opacity: .6;
  cursor: default;
}

.mz-item-btn.equipped {
  background: rgba(46, 204, 113, .25);
  color: #a8ffce;
}

/* ============ BANNER (6 naxış şablonu, CSS dəyişəni ilə rənglənir) ============ */
/* 🐛 DÜZƏLİŞ (2-ci dəfə): mənfi kənar-boşluq fəndi .profile-sidebar-in flex
   düzülüşü ilə toqquşurdu; sadə blok isə kənarlara çatmadığı üçün "maraqsız"
   görünürdü. İndi `position:absolute` istifadə olunur — flex axınından
   TAMAMİLƏ çıxarılır, ona görə justify-content/mənfi-kənar problemi
   YARANMIR, üstəlik HƏMİŞƏ tam kənardan-kənara uzanır. .profile-sidebar-ə
   əlavə olunan `has-banner` sinifi (bax js/profile.js) yalnız banner
   aktivkən yuxarı boşluğu artırır ki, aşağıdakı avatar/ad üst-üstə düşməsin.
*/
.profile-sidebar {
  position: relative;
}
/* Banner (160px) avatarın (120px, dairəvi) YARISI ilə üst-üstə düşür —
   "ayrı bir zolaq" hissi yox, karta axan, klassik profil-banner görünüşü.
   padding-top=100px: avatar elə buradan başlayır ki, onun yuxarı yarısı
   (100-160px aralığı) bannerin daxilinə düşsün. */
.profile-sidebar.has-banner {
  padding-top: 100px;
}
/* Avatar (dairə) bannerin ÜSTÜNDƏ görünməlidir, altında YOX — banner
   position:absolute olduğu üçün z-index qeyd edilməsə brauzerə görə üst-üstə
   düşmə sırası qeyri-müəyyən ola bilər, ona görə HƏR İKİSİNƏ açıq z-index. */
.profile-avatar {
  position: relative;
  z-index: 1;
}
.profile-page-banner {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  border-radius: 0;
  margin: 0;
  width: auto;
}

.shop-banner {
  width: 100%;
  height: 70px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--banner-c1, #667eea), var(--banner-c2, #764ba2));
  position: relative;
  overflow: hidden;
}

.shop-banner.pattern-wave {
  background-size: 200% 200%;
  animation: banner-wave-shift 4s ease-in-out infinite;
}
@keyframes banner-wave-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.shop-banner.pattern-geo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.15) 0 8px, transparent 8px 16px);
}

.shop-banner.pattern-stars::before {
  content: "✨ ✨ ✨ ✨ ✨";
  position: absolute;
  inset: 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  opacity: .55;
  letter-spacing: 4px;
}

.shop-banner.pattern-aurora {
  background-size: 300% 300%;
  animation: banner-aurora-shift 6s ease infinite;
}
@keyframes banner-aurora-shift {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.shop-banner.pattern-mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.3) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.22) 0, transparent 40%);
}

.shop-banner.pattern-stripes {
  background-image: repeating-linear-gradient(120deg, var(--banner-c1, #667eea) 0 16px, var(--banner-c2, #764ba2) 16px 32px);
}

/* ============ 💬 ÇAT BALON EFFEKTLƏRİ ============ */
/* css/chat.css-dəki .message-bubble.bubble-style-X qaydalarının EYNİ rəngləri
   — magaza.html chat.css-i yükləmir (bax feedback_avatar_frames_shipped
   dərsi), ona görə önizləmə üçün BURADA ayrıca, kiçik bir təkrar lazımdır.
   Real çatdakı görünüş üçün chat.css-in özü istifadə olunur, bu yalnız
   mağaza kartındakı nümunədir. */
.shop-bubble-preview {
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
  background: rgba(255, 255, 255, .08);
  color: var(--mz-text);
}

.shop-bubble-preview.bubble-style-ocean {
  background: linear-gradient(135deg, #0575e6, #00f260);
  color: #012b1f;
}

.shop-bubble-preview.bubble-style-midnight {
  background: linear-gradient(135deg, #232526, #0f2027);
  color: #eae6ff;
  box-shadow: 0 0 0 1px rgba(155, 130, 255, .5);
}

.shop-bubble-preview.bubble-style-neon {
  background: linear-gradient(135deg, #d4fc79, #96e6a1);
  color: #0d2b0d;
  box-shadow: 0 0 10px 1px rgba(150, 230, 161, .7);
}

/* 👑 #56 hissə 5: VIP-yalnız "Kral Balonu" — animasiyalı, digərlərindən
   fərqli olaraq statik deyil. */
.shop-bubble-preview.bubble-style-royal {
  background: linear-gradient(120deg, #bf953f, #fcf6ba, #b993d6, #8ca6db, #bf953f);
  background-size: 300% 300%;
  animation: mz-royal-shift 3s ease infinite;
  color: #2b1d3d;
  box-shadow: 0 0 12px 2px rgba(191, 149, 63, .5);
}
@keyframes mz-royal-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============ 🎁 SİRLİ QUTU ============ */
.mz-mystery-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 0 4px;
}

.mz-mystery-box {
  font-size: 56px;
  line-height: 1;
  transition: transform .15s ease;
}

.mz-mystery-box.shaking {
  animation: mz-box-shake .35s ease-in-out infinite;
}

@keyframes mz-box-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg) scale(1.05); }
  75% { transform: rotate(8deg) scale(1.05); }
}

.mz-mystery-result {
  text-align: center;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 15px;
  min-width: 200px;
  animation: mz-result-pop .3s ease;
}

@keyframes mz-result-pop {
  0% { transform: scale(.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.mz-mystery-result .mz-rarity-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  opacity: .8;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.mz-mystery-result.rarity-adi {
  background: rgba(255, 255, 255, .08);
  color: var(--mz-text);
}

.mz-mystery-result.rarity-nadir {
  background: linear-gradient(135deg, rgba(52, 152, 219, .25), rgba(52, 152, 219, .1));
  color: #9fd3ff;
  box-shadow: 0 0 0 1px rgba(52, 152, 219, .4);
}

.mz-mystery-result.rarity-epik {
  background: linear-gradient(135deg, rgba(155, 89, 182, .3), rgba(155, 89, 182, .12));
  color: #e5c3ff;
  box-shadow: 0 0 0 1px rgba(155, 89, 182, .5);
}

.mz-mystery-result.rarity-efsanevi {
  background: linear-gradient(135deg, rgba(255, 209, 102, .35), rgba(255, 178, 56, .15));
  color: #ffe9b3;
  box-shadow: 0 0 14px 2px rgba(255, 209, 102, .5);
}

.mz-mystery-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #ffd166, #ffb238);
  color: #3a2500;
}

.mz-mystery-btn:disabled {
  opacity: .6;
  cursor: default;
}
