/**
 * Front-end Exchange shortcodes (coins shop, modals, grids).
 * Previously relied on site Custom CSS (.easygoin_box / card grids).
 *
 * @package EasyGoin_Exchange
 */

/* Outer shell — aligns with legacy .easygoin_box */
.easygoin_box.egl-exchange-shop,
.easygoin_box.egl-exchange-offers-wrap {
	background: #1b1b1b;
	border: 1px solid #333;
	border-radius: 10px;
	padding: 20px;
	margin: 20px auto;
	box-shadow: 0 0 12px rgba(0, 255, 255, 0.1);
	color: #ddd;
	font-size: 1em;
	line-height: 1.6;
	box-sizing: border-box;
	max-width: 1200px;
}

.easygoin_box.egl-exchange-shop #egl-shop-container {
	margin: 0;
	padding: 0;
}

#egl-shop-header {
	border-bottom: 1px solid #333;
	padding-bottom: 16px;
	margin-bottom: 16px;
}

#egl-shop-header h2 {
	color: #1abc9c;
	margin: 0 0 10px;
	font-size: 1.5rem;
}

.egl-user-info {
	color: #ccc;
	font-size: 0.95rem;
	line-height: 1.5;
}

.egl-vip-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 600;
}
.egl-vip-badge.active {
	background: rgba(26, 188, 156, 0.25);
	color: #1abc9c;
}
.egl-vip-badge.inactive {
	background: #333;
	color: #888;
}

#egl-shop-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 20px;
	align-items: center;
}

#egl-shop-filters input,
#egl-shop-filters select {
	background: #111;
	border: 1px solid #444;
	color: #eee;
	padding: 8px 12px;
	border-radius: 6px;
	min-width: 200px;
	box-sizing: border-box;
}

#egl-shop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 20px;
}

.egl-shop-item {
	background: #111;
	border: 1px solid #333;
	border-radius: 8px;
	padding: 16px;
	box-shadow: 0 0 10px rgba(0, 255, 255, 0.05);
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
	box-sizing: border-box;
}

.egl-shop-item:hover {
	border-color: #1abc9c;
	box-shadow: 0 0 14px rgba(0, 255, 255, 0.15);
}

.egl-shop-item h3 {
	margin: 0 0 8px;
	color: #1abc9c;
	font-size: 1.1rem;
}

.egl-shop-item p {
	margin: 0.5em 0;
	color: #ccc;
	font-size: 0.95rem;
}

.egl-shop-item .egl-qty-input {
	width: 72px;
	padding: 6px 8px;
	background: #0d0d0d;
	border: 1px solid #444;
	color: #fff;
	border-radius: 4px;
}

.egl-purchase-button {
	background: linear-gradient(145deg, #1abc9c, #16a085);
	color: #fff !important;
	border: none;
	border-radius: 6px;
	padding: 10px 18px;
	cursor: pointer;
	font-weight: 600;
	margin-top: 10px;
	box-shadow: 0 0 10px rgba(26, 188, 156, 0.35);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.egl-purchase-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 0 14px rgba(0, 255, 255, 0.45);
}

/* Modal */
#egl-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	z-index: 100000;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

#egl-modal-content {
	background: #1a1a1a;
	border: 1px solid #333;
	border-radius: 10px;
	max-width: 520px;
	width: 100%;
	max-height: 90vh;
	overflow: auto;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

#egl-modal-inner {
	padding: 24px;
	color: #ddd;
}

#egl-modal-inner h2 {
	color: #1abc9c;
	margin-top: 0;
}

#egl-modal-content button,
#egl-modal-inner button {
	background: linear-gradient(145deg, #1abc9c, #16a085);
	color: #000;
	border: none;
	padding: 8px 14px;
	cursor: pointer;
	margin-top: 10px;
	border-radius: 4px;
	font-weight: 600;
}

#egl-modal-content input,
#egl-modal-content select,
#egl-modal-inner input,
#egl-modal-inner select {
	width: 100%;
	max-width: 100%;
	margin-bottom: 10px;
	background: #222;
	border: 1px solid #555;
	color: #ddd;
	padding: 8px;
	border-radius: 4px;
	box-sizing: border-box;
}

/* Simple offers grid shortcodes */
.easygoin_box.egl-exchange-offers-wrap .egl-exchange-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
	margin: 0;
}

.easygoin_box.egl-exchange-offers-wrap .egl-offer {
	background: #111;
	border: 1px solid #333;
	border-radius: 8px;
	padding: 16px;
	box-sizing: border-box;
}

.easygoin_box.egl-exchange-offers-wrap .egl-offer h3 {
	color: #1abc9c;
	margin: 0 0 8px;
}
