/* Economy pieces of the player site: DÜKKAN, MAÇ ÇANTASI, HESABIM tabs, HAREKETLER, MAÇLARIM and SIRALAMA. Site pages load it
   after app.css + site.css. */

/* ---------------------------------------------------------------- shared pieces */
.eco-meta { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--dim, #73797a); }
.eco-tag {
  display: inline-block; margin-left: 6px; padding: 2px 7px; border: 1px solid rgba(232, 184, 74, .45); color: var(--gold, #e8b84a);
  font: 700 10px/1.4 var(--font-ui, "Segoe UI", Arial, sans-serif); letter-spacing: .12em; vertical-align: middle; white-space: nowrap;
}
.eco-tag-dim { border-color: var(--line); color: var(--muted); }

.eco-tabs { display: flex; gap: 4px; margin: 0 0 28px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.eco-tabs::-webkit-scrollbar { display: none; }
.eco-tabs a {
  flex: 0 0 auto; margin-bottom: -1px; padding: 12px 16px; border-bottom: 2px solid transparent; white-space: nowrap;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--muted); transition: color .15s, border-color .15s;
}
.eco-tabs a:hover { color: #fff; }
.eco-tabs a.active { color: #fff; border-bottom-color: var(--accent-strong); }
.eco-tabs small { margin-left: 6px; font-size: 11px; color: var(--dim); }
.eco-tabs-sub { margin-top: -18px; }

.eco-wallet { display: flex; align-items: stretch; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.eco-wallet div { display: grid; gap: 8px; padding: 14px 20px; background: rgba(10, 11, 13, .88); }
.eco-wallet > .text-link { display: flex; align-items: center; padding: 14px 20px; background: rgba(10, 11, 13, .88); letter-spacing: .12em; }
.eco-wallet span { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; color: var(--dim); }
.eco-wallet strong { font: 400 30px/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; color: #f3f3ee; }

.eco-banner {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 22px; padding: 14px 18px;
  border: 1px solid rgba(225, 61, 61, .45); border-left-width: 3px; background: rgba(187, 40, 44, .12);
}
.eco-banner strong { font-size: 12px; letter-spacing: .16em; color: var(--accent-strong); }
.eco-banner span { font-size: 14px; }
.eco-rules { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.eco-rules b { padding: 3px 8px; border: 1px solid var(--line); font-size: 10px; font-weight: 700; letter-spacing: .16em; color: #d6d9d5; }
.eco-note { max-width: 86ch; margin: 0 0 22px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.card .eco-note { margin: 0; }
.card .eco-note.pad { padding-bottom: 0; }
.eco-list { display: grid; gap: 6px; margin: 0 0 16px; padding-left: 18px; font-size: 14px; }
.eco-list-muted { margin-bottom: 0; font-size: 13px; color: var(--muted); }
.eco-earn .eco-banner { margin-bottom: 14px; }
.eco-earn .eco-note { margin-bottom: 12px; }
.eco-stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.eco-stats .stat small { font-size: 11px; letter-spacing: .08em; color: var(--dim); }

/* ---------------------------------------------------------------- DÜKKAN */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-bottom: 28px; }
.shop-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px;
  background: linear-gradient(180deg, rgba(26, 29, 32, .95), rgba(12, 13, 15, .95)); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.shop-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: transparent; transition: background .2s; }
.shop-card:hover { border-color: rgba(255, 255, 255, .22); transform: translateY(-2px); box-shadow: 0 22px 40px -26px rgba(0, 0, 0, .95); }
.shop-card:hover::before { background: var(--accent-strong); }
.shop-card-top { display: flex; align-items: center; gap: 16px; min-width: 0; }
.shop-icon, .shop-badge { flex: 0 0 auto; width: 84px; height: 84px; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .07), rgba(0, 0, 0, .35)); border: 1px solid var(--line); }
.shop-icon { object-fit: contain; padding: 8px; }
.shop-badge { display: grid; place-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .16em; color: var(--muted); }
.shop-badge.cat-bomba { color: var(--accent-strong); border-color: rgba(225, 61, 61, .45); }
.shop-badge.cat-silah { color: #f3f3ee; }
.shop-badge.cat-cephane { color: var(--gold, #e8b84a); }
.shop-badge.cat-medikal { color: var(--green, #3ecf8e); }
.shop-card-title { display: grid; gap: 6px; min-width: 0; }
.shop-card h2 { margin: 0; font: 400 26px/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; color: #f3f3ee; overflow-wrap: anywhere; }
.shop-desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.shop-items { margin: 0; padding: 10px 12px; font-size: 13px; color: #d6d9d5; background: rgba(255, 255, 255, .03); border-left: 2px solid rgba(225, 61, 61, .5); overflow-wrap: anywhere; }
.shop-card-foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 12px; margin-top: auto; padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.shop-price { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.shop-price strong { font: 400 30px/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--gold, #e8b84a); }
.shop-price .eco-tag { margin-left: 0; }
.shop-form { margin: 0; }
a.shop-buy { display: inline-flex; }
.shop-missing { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.shop-missing span { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--accent-strong); }

/* ---------------------------------------------------------------- MAÇ ÇANTASI */
.stash-form { margin: 0; }
.stash-form .card-head { flex-wrap: wrap; }
.stash-limits { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0; font-size: 12.5px; letter-spacing: .04em; color: var(--muted); }
.stash-limits b { color: #fff; }
.stash-limits .over, .stash-limits .over b { color: var(--accent-strong); }
.stash-list { margin: 0; padding: 0; list-style: none; }
.stash-item { display: flex; align-items: flex-start; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); transition: background .15s; }
.stash-item:has(input:checked) { background: rgba(187, 40, 44, .08); box-shadow: inset 3px 0 0 var(--accent-strong); }
.stash-pick {
  display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 88px; cursor: pointer; text-align: center;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--muted);
}
.stash-pick input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.stash-pick:has(input:checked) { color: #fff; }
.stash-body { display: grid; gap: 6px; min-width: 0; }
.stash-body h3 { margin: 0; font: 400 24px/1.05 var(--font-display); letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.stash-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 18px 20px; background: rgba(255, 255, 255, .02); }

/* ---------------------------------------------------------------- SIRALAMA */
.rank-own {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 22px; padding: 16px 20px;
  background: linear-gradient(90deg, rgba(232, 184, 74, .12), rgba(10, 11, 13, .88) 60%); border: 1px solid rgba(232, 184, 74, .3);
}
.rank-own strong { font: 400 34px/1 var(--font-display); color: var(--gold, #e8b84a); }
.rank-pos { width: 1%; font: 400 22px/1 var(--font-display); color: var(--dim); }
.rank-pos.rank-top { color: var(--gold, #e8b84a); }
.rank-table tbody tr:nth-child(1) td { background: rgba(232, 184, 74, .09); }
.rank-table tbody tr:nth-child(2) td { background: rgba(214, 217, 213, .05); }
.rank-table tbody tr:nth-child(3) td { background: rgba(196, 128, 72, .06); }
.rank-table tbody tr:nth-child(-n+3) .rank-pos { font-size: 28px; }
.rank-table tbody tr:nth-child(2) .rank-pos.rank-top { color: #d6d9d5; }
.rank-table tbody tr:nth-child(3) .rank-pos.rank-top { color: #d0905a; }
.rank-table tbody tr:nth-child(-n+3) .member-link { font-size: 15px; }
.rank-foot { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }

@media (max-width: 760px) {
  .eco-wallet { flex-wrap: wrap; }
  .eco-wallet div { flex: 1 1 140px; padding: 12px 14px; }
  .eco-wallet strong { font-size: 24px; }
  .eco-tabs { margin-bottom: 22px; }
  .eco-tabs-sub { margin-top: -14px; }
  .eco-tabs a { padding: 11px 12px; letter-spacing: .1em; }
  .shop-card { padding: 16px; }
  .shop-icon, .shop-badge { width: 68px; height: 68px; }
  .shop-card h2 { font-size: 23px; }
  .stash-item { gap: 12px; padding: 14px; }
  .stash-pick { flex-basis: 64px; }
  .stash-foot { padding: 14px; }
}
