/* ═══════════════════════════════════════════════════════════════
   VOIDCYBER SHOP — style.css
   Extends main style.css with shop-specific components
═══════════════════════════════════════════════════════════════ */
@import url('../style.css');

/* ── Shop page active nav ───────────────────────────────────── */
.nav-links .active-page {
  color: var(--accent) !important;
  font-weight: 700 !important;
}
.nav-links .active-page::after {
  width: 100% !important;
  background: linear-gradient(90deg, var(--accent2), var(--accent)) !important;
}

/* ══════════════════════════════════════════════════════════════
   CYPHER INTRO SECTION
══════════════════════════════════════════════════════════════ */
#cypher-intro {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 68px;
  background: var(--bg);
}

.shop-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridScroll 18s linear infinite;
}

.shop-orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none;
  animation: orbFloat 9s ease-in-out infinite;
}
.shop-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,0,0.11) 0%, transparent 70%);
  top: -140px; right: -80px; animation-delay: -2s;
}
.shop-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,215,0,0.07) 0%, transparent 70%);
  bottom: -120px; left: 10%; animation-delay: -5s;
}
[data-theme="blue"] .shop-orb-1 { background: radial-gradient(circle, rgba(0,245,255,0.09) 0%, transparent 70%); }
[data-theme="blue"] .shop-orb-2 { background: radial-gradient(circle, rgba(0,128,255,0.06) 0%, transparent 70%); }
[data-theme="clean"] .shop-orb-1 { background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%); }
[data-theme="clean"] .shop-orb-2 { background: radial-gradient(circle, rgba(139,92,246,0.07) 0%, transparent 70%); }

.shop-intro-wrap { position: relative; z-index: 2; }

.shop-hero-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 4rem;
  align-items: center;
}

/* ── Cypher Coin Visual ─────────────────────────────────────── */
.cypher-visual-col {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 380px;
}

.cypher-rings-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.cypher-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid transparent;
}
.cypher-ring-1 {
  width: 320px; height: 320px;
  border-color: rgba(255,107,0,0.25);
  box-shadow: 0 0 20px rgba(255,107,0,0.12);
  animation: cRing 7s linear infinite;
}
.cypher-ring-2 {
  width: 260px; height: 260px;
  border-color: rgba(255,215,0,0.18);
  box-shadow: 0 0 14px rgba(255,215,0,0.1);
  animation: cRing 5s linear infinite reverse;
}
.cypher-ring-3 {
  width: 200px; height: 200px;
  border-color: rgba(255,107,0,0.15);
  animation: cRing 9s linear infinite;
}
.cypher-ring-4 {
  width: 350px; height: 350px;
  border-color: rgba(255,107,0,0.07);
  animation: cRing 14s linear infinite reverse;
}
@keyframes cRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
[data-theme="blue"] .cypher-ring-1 { border-color: rgba(0,245,255,0.25); box-shadow: 0 0 20px rgba(0,245,255,0.12); }
[data-theme="blue"] .cypher-ring-2 { border-color: rgba(0,128,255,0.18); }
[data-theme="blue"] .cypher-ring-3 { border-color: rgba(0,245,255,0.12); }
[data-theme="blue"] .cypher-ring-4 { border-color: rgba(0,128,255,0.07); }
[data-theme="clean"] .cypher-ring-1 { border-color: rgba(99,102,241,0.22); box-shadow: none; }
[data-theme="clean"] .cypher-ring-2 { border-color: rgba(139,92,246,0.15); }
[data-theme="clean"] .cypher-ring-3 { border-color: rgba(99,102,241,0.1); }
[data-theme="clean"] .cypher-ring-4 { border-color: rgba(99,102,241,0.06); }

.cypher-coin-hero {
  position: relative; z-index: 2;
  width: 130px; height: 130px;
  display: flex; align-items: center; justify-content: center;
}
.cypher-hero-img {
  width: 130px; height: 130px; object-fit: contain;
  filter: drop-shadow(0 0 18px var(--accent)) drop-shadow(0 0 40px var(--accent-glow));
  animation: coinPulse 3s ease-in-out infinite;
}
[data-theme="clean"] .cypher-hero-img { filter: drop-shadow(0 4px 20px rgba(99,102,241,0.4)); }
.cypher-fallback-icon {
  font-size: 7rem; color: var(--accent);
  text-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent-glow);
  animation: coinPulse 3s ease-in-out infinite;
}

.cypher-hero-label {
  position: relative; z-index: 2;
  margin-top: 1.8rem;
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.25em; color: var(--accent2);
  text-shadow: 0 0 10px var(--accent2);
}
[data-theme="clean"] .cypher-hero-label { text-shadow: none; }

/* ── Cypher Text Column ─────────────────────────────────────── */
.cypher-text-col .section-title { margin-bottom: 1.2rem; }
.cypher-desc {
  font-family: var(--font-body); font-size: 0.96rem;
  color: var(--text2); line-height: 1.9; margin-bottom: 1rem;
}
.cypher-desc strong { color: var(--accent); font-weight: 600; }

.cypher-earn-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem;
  margin-top: 1.5rem;
}
.cypher-earn-card {
  display: flex; gap: 0.8rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.9rem 1rem;
  position: relative; overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}
.cypher-earn-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent2));
  transform: scaleY(0); transform-origin: top; transition: transform 0.3s;
}
.cypher-earn-card:hover { border-color: var(--border2); background: var(--surface2); }
.cypher-earn-card:hover::before { transform: scaleY(1); }
[data-theme="clean"] .cypher-earn-card { border-radius: 10px; }
.cec-icon { font-size: 1.4rem; flex-shrink: 0; }
.cec-val {
  font-family: var(--font-title); font-size: 0.85rem; font-weight: 700;
  color: var(--accent2); text-shadow: 0 0 8px var(--accent2);
}
[data-theme="clean"] .cec-val { text-shadow: none; }
.cec-label {
  font-family: var(--font-body); font-size: 0.66rem;
  color: var(--muted); letter-spacing: 0.05em; margin-top: 1px;
}

/* ══════════════════════════════════════════════════════════════
   SHOP CATALOG
══════════════════════════════════════════════════════════════ */
#shop-catalog { background: var(--bg2); }

/* Balance bar */
.shop-balance-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  padding: 12px 18px; margin-bottom: 1.4rem;
}
[data-theme="clean"] .shop-balance-bar { border-radius: 10px; }
.shop-balance-left { display: flex; align-items: center; gap: 8px; }
.cypher-img-sm {
  width: 22px; height: 22px; object-fit: contain;
  filter: drop-shadow(0 0 4px var(--accent));
}
[data-theme="clean"] .cypher-img-sm { filter: none; }
.shop-balance-label {
  font-family: var(--font-body); font-size: 0.72rem;
  color: var(--muted); letter-spacing: 0.08em;
}
.shop-balance-val {
  font-family: var(--font-title); font-size: 1.1rem; font-weight: 900;
  color: var(--accent2); text-shadow: 0 0 10px var(--accent2);
}
[data-theme="clean"] .shop-balance-val { text-shadow: none; }
.shop-balance-unit {
  font-family: var(--font-body); font-size: 0.68rem; color: var(--muted);
}
.shop-earn-link {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; color: var(--accent); text-decoration: none;
  transition: color 0.2s;
}
.shop-earn-link:hover { color: var(--accent2); }

/* Category tabs */
.shop-tabs {
  display: flex; gap: 0.4rem; margin-bottom: 1.8rem; flex-wrap: wrap;
}
.shop-tab {
  font-family: var(--font-body); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.07em; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 9px 18px; cursor: pointer; transition: all 0.22s;
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.shop-tab:hover { color: var(--accent); border-color: var(--accent); }
.shop-tab.active {
  color: var(--bg); background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(255,107,0,0.35);
}
[data-theme="clean"] .shop-tab { clip-path: none; border-radius: 999px; }
[data-theme="clean"] .shop-tab.active { color: #fff; box-shadow: none; }

/* Items grid */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  min-height: 200px;
}

/* Item card */
.shop-item-card {
  background: var(--bg3); border: 1px solid var(--border);
  position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.shop-item-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.4);
}
[data-theme="clean"] .shop-item-card { border-radius: 12px; }

/* Preview area */
.item-preview {
  height: 90px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.item-preview-color { width: 100%; height: 100%; }
.item-preview-glow {
  width: 100%; height: 100%;
  background: #050505;
  display: flex; align-items: center; justify-content: center;
}
.item-preview-glow-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,107,0,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.item-preview-frame {
  width: 100%; height: 100%;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
}
.item-preview-frame-inner {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text2);
}
.item-preview-theme {
  width: 100%; height: 100%;
  background: #060606;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fira Code', monospace; font-size: 0.6rem; color: #28C940;
  line-height: 1.7; padding: 8px;
  white-space: pre; text-align: left;
}

/* Rarity badge */
.item-rarity {
  position: absolute; top: 7px; right: 7px;
  font-family: var(--font-body); font-size: 0.55rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 7px;
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}
[data-theme="clean"] .item-rarity { clip-path: none; border-radius: 999px; }
.rarity-comune   { background: rgba(156,163,175,0.25); color: #9CA3AF; border: 1px solid rgba(156,163,175,0.3); }
.rarity-nc       { background: rgba(34,197,94,0.18);   color: #22C55E; border: 1px solid rgba(34,197,94,0.3); }
.rarity-raro     { background: rgba(59,130,246,0.18);  color: #60A5FA; border: 1px solid rgba(59,130,246,0.3); }
.rarity-epico    { background: rgba(168,85,247,0.18);  color: #C084FC; border: 1px solid rgba(168,85,247,0.3); }
.rarity-leggendario { background: rgba(245,158,11,0.2); color: #FCD34D; border: 1px solid rgba(245,158,11,0.3);
  box-shadow: 0 0 10px rgba(245,158,11,0.2); }

/* Card body */
.item-info { padding: 0.8rem; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.item-name {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  color: var(--text); letter-spacing: 0.04em;
}
.item-type {
  font-family: var(--font-body); font-size: 0.60rem;
  color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase;
}
.item-desc {
  font-family: var(--font-body); font-size: 0.67rem;
  color: var(--text2); line-height: 1.5; margin-top: 2px; flex: 1;
}

/* Card footer */
.item-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.8rem 0.8rem;
  border-top: 1px solid var(--border);
  gap: 8px;
}
.item-cost {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-title); font-size: 0.82rem; font-weight: 700;
  color: var(--accent2);
}
.item-cost-icon {
  width: 16px; height: 16px; object-fit: contain;
  filter: drop-shadow(0 0 3px var(--accent2));
}
[data-theme="clean"] .item-cost-icon { filter: none; }
.item-cost-icon-fallback { color: var(--accent2); font-size: 0.75rem; }

.item-buy-btn {
  font-family: var(--font-body); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #000; background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; padding: 6px 14px; cursor: pointer;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  box-shadow: 0 0 14px rgba(255,107,0,0.3);
  white-space: nowrap;
}
.item-buy-btn:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(255,107,0,0.5); }
.item-buy-btn:disabled,
.item-buy-btn.locked {
  background: var(--surface2); color: var(--muted);
  box-shadow: none; cursor: not-allowed; opacity: 0.65;
  clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
[data-theme="clean"] .item-buy-btn { clip-path: none; border-radius: 6px; color: #fff; }
[data-theme="clean"] .item-buy-btn.locked { color: var(--text2); }

/* ── System Rules ───────────────────────────────────────────── */
.shop-rules {
  margin-top: 3rem; padding: 1.4rem;
  background: var(--surface); border: 1px solid var(--border);
  position: relative;
}
.shop-rules::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent2), transparent);
}
[data-theme="clean"] .shop-rules { border-radius: 12px; }
.shop-rules-title {
  font-family: var(--font-body); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; color: var(--accent); margin-bottom: 1rem;
}
.shop-rules-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
}
.shop-rule-item {
  font-family: var(--font-body); font-size: 0.74rem;
  color: var(--text2); display: flex; align-items: center; gap: 8px;
  line-height: 1.5;
}
.rule-icon { color: var(--accent); font-style: normal; flex-shrink: 0; }

/* ── Empty state ────────────────────────────────────────────── */
.shop-empty {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: center;
  padding: 4rem 2rem;
  font-family: var(--font-body); font-size: 0.8rem; color: var(--muted);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .shop-hero-inner { grid-template-columns: 300px 1fr; gap: 3rem; }
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .shop-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .cypher-visual-col { height: 280px; }
  .cypher-ring-1 { width: 250px; height: 250px; }
  .cypher-ring-2 { width: 200px; height: 200px; }
  .cypher-ring-3 { width: 160px; height: 160px; }
  .cypher-ring-4 { width: 280px; height: 280px; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .cypher-earn-grid { grid-template-columns: 1fr; }
  .shop-rules-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .shop-tabs { gap: 3px; }
  .shop-tab { font-size: 0.68rem; padding: 7px 10px; }
}

.cursor, #trailContainer { display: none !important; }
body { cursor: auto !important; }