/* =============================================================================
   Silver & Gold Metals Plugin – Frontend Styles
   ============================================================================= */

/* --------------------------------------------------------------------------
   Price Box
   -------------------------------------------------------------------------- */
.silver-metals-price-box {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px 32px;
	border-radius: 10px;
	text-align: center;
	margin: 10px 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .10);
	min-width: 180px;
	font-family: inherit;
	transition: transform .15s ease, box-shadow .15s ease;
}

.silver-metals-price-box:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
}

/* Silver */
.sm-silver-box {
	background: linear-gradient(135deg, #f0f0f0 0%, #d8d8d8 100%);
	border: 2px solid #b0b0b0;
}

/* Gold */
.sm-gold-box {
	background: linear-gradient(135deg, #fffaeb 0%, #ffe066 100%);
	border: 2px solid #d4af37;
}

/* --------------------------------------------------------------------------
   Price box elements
   -------------------------------------------------------------------------- */
.sm-price-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.2px;
	color: #444;
	margin-bottom: 8px;
}

.sm-price-value {
	font-size: 28px;
	font-weight: 800;
	color: #111;
	line-height: 1.2;
	margin-bottom: 4px;
}

.sm-price-unit {
	font-size: 13px;
	font-weight: 400;
	color: #666;
}

.sm-price-change {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 4px;
}

.sm-pos { color: #1b7a2e; }
.sm-neg { color: #c62828; }

.sm-price-date {
	font-size: 11px;
	color: #888;
	margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Chart wrapper
   -------------------------------------------------------------------------- */
.silver-metals-chart-wrapper {
	width: 100%;
	max-width: 960px;
	margin: 24px auto;
	padding: 24px;
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
	box-sizing: border-box;
}

.silver-metals-chart-wrapper canvas {
	width: 100% !important;
}

/* --------------------------------------------------------------------------
   Price Table
   -------------------------------------------------------------------------- */
.silver-metals-table-wrapper {
	width: 100%;
	overflow-x: auto;
	margin: 24px 0;
}

.silver-metals-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .07);
}

.silver-metals-table thead th {
	background: #2c2c2c;
	color: #fff;
	padding: 12px 16px;
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.silver-metals-table tbody td {
	padding: 9px 16px;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: middle;
}

.silver-metals-table tbody tr:last-child td {
	border-bottom: none;
}

.silver-metals-table tbody tr:hover td {
	background-color: #fafafa;
}

.silver-metals-table .sm-pos {
	color: #1b7a2e;
	font-weight: 600;
}

.silver-metals-table .sm-neg {
	color: #c62828;
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   No-data notice
   -------------------------------------------------------------------------- */
.silver-metals-no-data {
	color: #999;
	font-style: italic;
	font-size: 14px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
	.silver-metals-price-box {
		min-width: 140px;
		padding: 14px 18px;
	}

	.sm-price-value {
		font-size: 22px;
	}

	.silver-metals-chart-wrapper {
		padding: 12px;
	}
}
