/**
 * Noxora Bento Box Profile System
 * Apple-style grid layout for profile dashboard
 */

.nx-bento-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-bottom: 24px;
}

@media (min-width: 768px) {
	.nx-bento-grid {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
	}
	
	.nx-bento-item--avatar {
		grid-row: span 2;
	}
}

.nx-bento-item {
	background: rgba(17, 17, 17, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 20px;
	padding: 20px;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nx-bento-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
	border-color: rgba(255, 255, 255, 0.1);
}

/* Avatar Block */
.nx-bento-avatar {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}

.nx-bento-avatar__image {
	position: relative;
	width: 100px;
	height: 100px;
}

.nx-bento-avatar__img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	border: 3px solid rgba(212, 175, 55, 0.3);
	object-fit: cover;
}

.nx-bento-avatar__upload {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 32px;
	height: 32px;
	background: rgba(212, 175, 55, 0.2);
	border: 1px solid rgba(212, 175, 55, 0.4);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #d4af37;
	transition: background 0.2s, transform 0.2s;
}

.nx-bento-avatar__upload:hover {
	background: rgba(212, 175, 55, 0.3);
	transform: scale(1.1);
}

.nx-bento-avatar__info {
	text-align: center;
}

.nx-bento-avatar__name {
	margin: 0 0 4px;
	font-size: 1.25rem;
	font-weight: 700;
	color: #f5f5f5;
}

.nx-bento-avatar__role {
	margin: 0;
	font-size: 0.875rem;
	color: #a3a3a3;
}

/* XP Block */
.nx-bento-xp {
	background: rgba(230, 0, 0, 0.08);
	border: 1px solid rgba(230, 0, 0, 0.2);
	border-radius: 16px;
	padding: 16px;
	margin-bottom: 16px;
}

.nx-bento-xp__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.nx-bento-xp__header span {
	font-size: 0.875rem;
	color: #a3a3a3;
}

.nx-bento-xp__level {
	font-size: 1.5rem;
	font-weight: 800;
	color: #ff1a1a;
}

.nx-bento-xp__bar {
	height: 8px;
	background: rgba(0, 0, 0, 0.4);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 8px;
}

.nx-bento-xp__bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #e60000, #ff1a1a);
	border-radius: 999px;
	transition: width 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nx-bento-xp__meta {
	margin: 0 0 4px;
	font-size: 0.8125rem;
	color: #a3a3a3;
}

.nx-bento-xp__tier {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: #ff1a1a;
}

/* Badges Block */
.nx-bento-badges h4 {
	margin: 0 0 12px;
	font-size: 0.875rem;
	color: #a3a3a3;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* Wallet Block (Gold Gradient) */
.nx-bento-item--wallet {
	background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(248, 246, 239, 0.08));
	border: 1px solid rgba(212, 175, 55, 0.3);
	position: relative;
	overflow: hidden;
}

.nx-bento-item--wallet::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle, rgba(212, 175, 55, 0.1), transparent 70%);
	pointer-events: none;
}

.nx-bento-wallet {
	display: flex;
	align-items: center;
	gap: 16px;
	position: relative;
	z-index: 1;
}

.nx-bento-wallet__icon {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(212, 175, 55, 0.2);
	border: 1px solid rgba(212, 175, 55, 0.4);
	border-radius: 16px;
	color: #d4af37;
}

.nx-bento-wallet__content {
	flex: 1;
}

.nx-bento-wallet__content h3 {
	margin: 0 0 8px;
	font-size: 1rem;
	font-weight: 600;
	color: #f5f5f5;
}

.nx-bento-wallet__balance {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 8px;
}

.nx-bento-wallet__coins {
	font-size: 1.5rem;
	font-weight: 800;
	background: linear-gradient(135deg, #d4af37, #f8f6ef);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.nx-bento-wallet__tl {
	font-size: 1.125rem;
	font-weight: 600;
	color: #d4af37;
}

.nx-bento-wallet__rate {
	margin: 0;
	font-size: 0.8125rem;
	color: #a3a3a3;
}

.nx-bento-wallet__action {
	flex-shrink: 0;
	padding: 10px 16px;
	background: rgba(212, 175, 55, 0.2);
	border: 1px solid rgba(212, 175, 55, 0.4);
	border-radius: 12px;
	color: #d4af37;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	transition: background 0.2s, transform 0.2s;
}

.nx-bento-wallet__action:hover {
	background: rgba(212, 175, 55, 0.3);
	transform: translateX(-2px);
}

/* Subscriptions Block */
.nx-bento-subs h3 {
	margin: 0 0 16px;
	font-size: 1rem;
	font-weight: 600;
	color: #f5f5f5;
}

.nx-bento-subs__pro {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	background: rgba(212, 175, 55, 0.1);
	border: 1px solid rgba(212, 175, 55, 0.2);
	border-radius: 12px;
	margin-top: 12px;
}

.nx-bento-subs__pro-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(212, 175, 55, 0.2);
	border-radius: 10px;
	color: #d4af37;
}

.nx-bento-subs__pro-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nx-bento-subs__pro-label {
	font-size: 0.8125rem;
	color: #a3a3a3;
}

.nx-bento-subs__pro-status {
	font-size: 0.9375rem;
	font-weight: 600;
	color: #d4af37;
}

/* Responsive */
@media (max-width: 767px) {
	.nx-bento-grid {
		grid-template-columns: 1fr;
	}
	
	.nx-bento-item--avatar {
		grid-row: auto;
	}
}
