/* =============================================================================
   Store Page — CSS
   Complete redesign: cards, frames, banners, themes, badges
   ============================================================================= */

/* ── Card Base ────────────────────────────────────────────────────────────── */

.inv-store-card {
	background: #111827;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.inv-store-card:hover {
	border-color: rgba(245, 158, 11, 0.4);
	transform: translateY(-2px);
}

.inv-store-card--owned {
	border-color: rgba(34, 197, 94, 0.3);
}

.inv-store-card--owned:hover {
	border-color: rgba(34, 197, 94, 0.5);
}

/* ── Card Preview (70% height = 140px) ────────────────────────────────────── */

.inv-store-card__preview {
	height: 140px;
	background: #0d1424;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

/* ── Card Info ────────────────────────────────────────────────────────────── */

.inv-store-card__info {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.inv-store-card__name {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	color: #c8cce8;
	line-height: 1.2;
	margin: 0;
}

.inv-store-card__meta {
	margin-top: auto;
}

.inv-store-card__price {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
	color: #f59e0b;
}

/* ── Buy Button ───────────────────────────────────────────────────────────── */

.inv-store-card__btn {
	width: 100%;
	height: 32px;
	border-radius: 6px;
	font-size: 0.6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	background: #f59e0b;
	color: #000;
	border: none;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.inv-store-card__btn:hover {
	opacity: 0.8;
}

.inv-store-card__btn--disabled {
	background: rgba(255, 255, 255, 0.04);
	color: #3d4560;
	cursor: not-allowed;
}

.inv-store-card__btn--disabled:hover {
	opacity: 1;
}

/* ── Level Badges ─────────────────────────────────────────────────────────── */

.inv-lvl-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 20px;
	font-size: 0.55rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.inv-lvl-badge--scout {
	background: rgba(16, 185, 129, 0.15);
	color: #10b981;
}

.inv-lvl-badge--commander {
	background: rgba(245, 158, 11, 0.15);
	color: #f59e0b;
}

.inv-lvl-badge--warlord {
	background: rgba(168, 85, 247, 0.15);
	color: #a855f7;
}

.inv-lvl-badge--exclusive {
	background: rgba(59, 130, 246, 0.15);
	color: #60a5fa;
}

/* =============================================================================
   FRAME PREVIEWS
   ============================================================================= */

.inv-frame-preview {
	position: relative;
	width: 80px;
	height: 80px;
}

.inv-frame-avatar {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: linear-gradient(135deg, #1a2540, #0d1424);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	z-index: 1;
}

.inv-frame-svg {
	position: absolute;
	top: 0;
	left: 0;
	width: 80px;
	height: 80px;
	z-index: 2;
}

.inv-frame-svg svg {
	width: 100%;
	height: 100%;
}

/* Frame animations */
@keyframes goldPulse {
	0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.5)); }
	50% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9)); }
}

.frame-gold-anim {
	animation: goldPulse 2s ease-in-out infinite;
}

@keyframes bluePulse {
	0%, 100% { filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.5)); }
	50% { filter: drop-shadow(0 0 12px rgba(96, 165, 250, 1)); }
}

.frame-invictus-anim {
	animation: bluePulse 2s ease-in-out infinite;
}

/* =============================================================================
   BANNER PREVIEWS
   ============================================================================= */

.inv-banner-preview {
	width: 100%;
	height: 100%;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.inv-banner-glow {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.inv-banner-bolt {
	position: absolute;
	width: 40px;
	height: 60px;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0.8;
}

.inv-banner-castle {
	position: absolute;
	width: 80px;
	height: 40px;
	bottom: 10px;
	left: 50%;
	transform: translateX(-50%);
}

/* =============================================================================
   THEME PREVIEWS (Mini Mockup)
   ============================================================================= */

.inv-theme-preview {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 10px;
	gap: 6px;
	border-radius: 4px;
}

.inv-theme-nav {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 14px;
	border-radius: 3px;
	padding: 0 6px;
}

.inv-theme-nav-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex-shrink: 0;
}

.inv-theme-nav-bar {
	width: 18px;
	height: 3px;
	border-radius: 2px;
	opacity: 0.3;
}

.inv-theme-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-top: 4px;
}

.inv-theme-bar {
	height: 4px;
	border-radius: 2px;
	opacity: 0.2;
}

.inv-theme-tiers {
	display: flex;
	gap: 4px;
	margin-top: auto;
}

.inv-theme-tier {
	flex: 1;
	height: 22px;
	border-radius: 3px;
}

/* =============================================================================
   BADGE PREVIEWS
   ============================================================================= */

.inv-badge-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.inv-badge-icon {
	font-size: 2.5rem;
	filter: drop-shadow(0 0 8px var(--badge-glow, #6b7494));
}

/* ── Badge Cards (bottom section) ─────────────────────────────────────────── */

.inv-badge-card {
	background: #111827;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 12px;
	padding: 20px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.inv-badge-card:hover {
	border-color: var(--badge-glow, rgba(255, 255, 255, 0.15));
	transform: translateY(-2px);
}

.inv-badge-card__icon {
	font-size: 2rem;
	filter: drop-shadow(0 0 8px var(--badge-glow, #6b7494));
}

.inv-badge-card__name {
	font-family: 'Rajdhani', sans-serif;
	font-size: 0.7rem;
	font-weight: 700;
	color: #c8cce8;
	line-height: 1.2;
}

.inv-badge-card__reward {
	font-size: 0.55rem;
	font-weight: 700;
	color: #f59e0b;
}

/* =============================================================================
   Warlord Rank — Featured Card
   ============================================================================= */

.inv-warlord-card {
	position: relative;
	background: #111827;
	border: 1px solid rgba(168, 85, 247, 0.35);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 0.2s;
}

.inv-warlord-card:hover {
	border-color: rgba(168, 85, 247, 0.55);
}

.inv-warlord-card__glow {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 20% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
	pointer-events: none;
}

.inv-warlord-card__content {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 1.5rem;
	flex-wrap: wrap;
}

.inv-warlord-card__icon {
	font-size: 2rem;
	line-height: 1;
	flex-shrink: 0;
}

.inv-warlord-card__text {
	flex: 1;
	min-width: 180px;
}

.inv-warlord-card__action {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

.inv-store-card__btn--warlord {
	background: linear-gradient(135deg, #7c3aed, #a855f7);
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.7rem;
}

.inv-store-card__btn--warlord:hover {
	background: linear-gradient(135deg, #6d28d9, #9333ea);
}
