/* Benim Sepetim - WordPress Tema İzoleli CSS */

.bs-wrapper {
	--bs-bg: #f8fafc;
	--bs-surface: #ffffff;
	--bs-surface-2: #f1f5f9;
	--bs-border: #e2e8f0;
	--bs-text: #0f172a;
	--bs-muted: #64748b;
	--bs-green: #15803d;
	--bs-green-bg: #dcfce7;
	--bs-red: #b91c1c;
	--bs-red-bg: #fee2e2;
	--bs-accent: #0f766e;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	background: var(--bs-bg);
	color: var(--bs-text);
	border: 1px solid var(--bs-border);
	border-radius: 16px;
	padding: 20px;
	margin: 20px auto;
	max-width: 1080px;
	box-sizing: border-box;
	line-height: 1.5;
}

.bs-wrapper.bs-theme-dark,
.bs-widget-card.bs-theme-dark {
	--bs-bg: #0f172a;
	--bs-surface: #1e293b;
	--bs-surface-2: #334155;
	--bs-border: #334155;
	--bs-text: #f8fafc;
	--bs-muted: #94a3b8;
	--bs-green: #4ade80;
	--bs-green-bg: rgba(34, 197, 94, 0.16);
	--bs-red: #f87171;
	--bs-red-bg: rgba(239, 68, 68, 0.16);
}

.bs-wrapper *,
.bs-wrapper *::before,
.bs-wrapper *::after,
.bs-widget-card *,
.bs-widget-card *::before,
.bs-widget-card *::after {
	box-sizing: border-box;
}

/* [hidden] attribute'unun display:flex tarafindan ezilmesini kesinlikle engelle */
.bs-wrapper [hidden],
.bs-wrapper .bs-is-hidden,
.bs-widget-card [hidden] {
	display: none !important;
}

/* Canli WebSocket Rozeti */
.bs-ws-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: #dcfce7;
	color: #15803d;
}

.bs-theme-dark .bs-ws-badge {
	background: rgba(34, 197, 94, 0.16);
	color: #4ade80;
}

/* Header */
.bs-wrapper .bs-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 16px;
}

.bs-wrapper .bs-title {
	margin: 0 0 6px 0;
	font-size: 22px;
	font-weight: 700;
	color: var(--bs-text);
	line-height: 1.25;
}

.bs-wrapper .bs-subtitle {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
	color: var(--bs-muted);
}

.bs-wrapper .bs-badge-privacy {
	background: var(--bs-surface-2);
	border: 1px solid var(--bs-border);
	padding: 2px 10px;
	border-radius: 999px;
	font-weight: 600;
	color: var(--bs-text);
}

.bs-wrapper .bs-header-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* Buttons */
.bs-wrapper .bs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid transparent;
	transition: opacity 0.15s ease, transform 0.1s ease, background 0.15s ease;
	text-decoration: none;
	line-height: 1.2;
}

.bs-wrapper .bs-btn:active {
	transform: scale(0.98);
}

.bs-wrapper .bs-btn-primary {
	background: var(--bs-accent);
	color: #ffffff;
}

.bs-wrapper .bs-btn-primary:hover {
	opacity: 0.92;
}

.bs-wrapper .bs-btn-outline {
	background: var(--bs-surface);
	color: var(--bs-text);
	border-color: var(--bs-border);
}

.bs-wrapper .bs-btn-outline:hover {
	background: var(--bs-surface-2);
}

.bs-wrapper .bs-btn-ghost {
	background: transparent;
	color: var(--bs-muted);
	border-color: var(--bs-border);
}

.bs-wrapper .bs-btn-ghost:hover {
	color: var(--bs-text);
	background: var(--bs-surface-2);
}

.bs-wrapper .bs-btn-danger-ghost {
	background: transparent;
	color: var(--bs-red);
	border-color: var(--bs-border);
}

.bs-wrapper .bs-btn-danger-ghost:hover {
	background: var(--bs-red-bg);
}

.bs-wrapper .bs-btn-sm {
	padding: 6px 10px;
	font-size: 12px;
	border-radius: 8px;
}

.bs-wrapper .bs-link-btn {
	background: none;
	border: none;
	color: var(--bs-red);
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
}

/* Ticker */
.bs-wrapper .bs-ticker {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 6px;
	margin-bottom: 16px;
}

.bs-wrapper .bs-ticker-item {
	flex: 0 0 auto;
	background: var(--bs-surface);
	border: 1px solid var(--bs-border);
	border-radius: 10px;
	padding: 7px 12px;
	font-size: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.bs-wrapper .bs-ticker-name {
	font-weight: 700;
	color: var(--bs-muted);
}

.bs-wrapper .bs-ticker-price {
	font-weight: 700;
	color: var(--bs-text);
}

/* Summary Grid */
.bs-wrapper .bs-summary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 16px;
}

.bs-wrapper .bs-card {
	background: var(--bs-surface);
	border: 1px solid var(--bs-border);
	border-radius: 14px;
	padding: 16px;
}

.bs-wrapper .bs-card-primary {
	border-left: 4px solid var(--bs-accent);
}

.bs-wrapper .bs-card-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--bs-muted);
	margin-bottom: 6px;
}

.bs-wrapper .bs-card-value {
	font-size: 24px;
	font-weight: 800;
	color: var(--bs-text);
	letter-spacing: -0.02em;
	margin-bottom: 4px;
}

.bs-wrapper .bs-card-sub {
	font-size: 13px;
	font-weight: 600;
	color: var(--bs-muted);
}

/* Colors for positive / negative */
.bs-wrapper .bs-pos,
.bs-widget-card .bs-pos {
	color: #15803d;
}

.bs-wrapper.bs-theme-dark .bs-pos,
.bs-widget-card.bs-theme-dark .bs-pos {
	color: #4ade80;
}

.bs-wrapper .bs-neg,
.bs-widget-card .bs-neg {
	color: #b91c1c;
}

.bs-wrapper.bs-theme-dark .bs-neg,
.bs-widget-card.bs-theme-dark .bs-neg {
	color: #f87171;
}

.bs-wrapper .bs-pill-pos {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: var(--bs-green-bg);
	color: var(--bs-green);
}

.bs-wrapper .bs-pill-neg {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: var(--bs-red-bg);
	color: var(--bs-red);
}

.bs-wrapper .bs-pill-neu {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: var(--bs-surface-2);
	color: var(--bs-muted);
}

/* Allocation Box */
.bs-wrapper .bs-allocation-box {
	background: var(--bs-surface);
	border: 1px solid var(--bs-border);
	border-radius: 14px;
	padding: 14px 16px;
	margin-bottom: 16px;
}

.bs-wrapper .bs-section-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 10px;
}

.bs-wrapper .bs-allocation-count {
	font-size: 12px;
	color: var(--bs-muted);
	font-weight: 600;
}

.bs-wrapper .bs-allocation-bar {
	display: flex;
	height: 12px;
	border-radius: 999px;
	overflow: hidden;
	background: var(--bs-surface-2);
	gap: 2px;
	margin-bottom: 10px;
}

.bs-wrapper .bs-alloc-seg {
	height: 100%;
	transition: width 0.3s ease;
}

.bs-wrapper .bs-allocation-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 12px;
}

.bs-wrapper .bs-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--bs-text);
	font-weight: 600;
}

.bs-wrapper .bs-legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}

/* Form Card */
.bs-wrapper .bs-form-card {
	background: var(--bs-surface);
	border: 1px solid var(--bs-border);
	border-radius: 14px;
	padding: 16px;
	margin-bottom: 16px;
}

.bs-wrapper .bs-form-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	font-size: 14px;
	font-weight: 700;
}

.bs-wrapper .bs-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
	align-items: end;
}

.bs-wrapper .bs-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.bs-wrapper .bs-field label {
	font-size: 12px;
	font-weight: 600;
	color: var(--bs-muted);
	margin: 0;
}

.bs-wrapper .bs-field input,
.bs-wrapper .bs-field select {
	width: 100%;
	padding: 9px 11px;
	border-radius: 9px;
	border: 1px solid var(--bs-border);
	background: var(--bs-bg);
	color: var(--bs-text);
	font-size: 14px;
	line-height: 1.3;
	margin: 0;
	outline: none;
}

.bs-wrapper .bs-field input:focus,
.bs-wrapper .bs-field select:focus {
	border-color: var(--bs-accent);
}

.bs-wrapper .bs-field-submit .bs-btn {
	width: 100%;
	height: 39px;
}

/* Table & Empty State */
.bs-wrapper .bs-list-wrap {
	background: var(--bs-surface);
	border: 1px solid var(--bs-border);
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 16px;
}

.bs-wrapper .bs-empty-state {
	text-align: center;
	padding: 36px 20px;
}

.bs-wrapper .bs-empty-icon {
	font-size: 36px;
	margin-bottom: 8px;
}

.bs-wrapper .bs-empty-state h3 {
	margin: 0 0 8px 0;
	font-size: 17px;
	color: var(--bs-text);
}

.bs-wrapper .bs-empty-state p {
	margin: 0 auto 16px auto;
	max-width: 480px;
	font-size: 13px;
	color: var(--bs-muted);
}

.bs-wrapper .bs-table-scroll {
	overflow-x: auto;
}

.bs-wrapper .bs-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	margin: 0;
}

.bs-wrapper .bs-table th {
	text-align: left;
	padding: 12px 14px;
	background: var(--bs-surface-2);
	color: var(--bs-muted);
	font-weight: 700;
	font-size: 12px;
	border-bottom: 1px solid var(--bs-border);
	white-space: nowrap;
}

.bs-wrapper .bs-table td {
	padding: 12px 14px;
	border-bottom: 1px solid var(--bs-border);
	vertical-align: middle;
	white-space: nowrap;
}

.bs-wrapper .bs-table tr:last-child td {
	border-bottom: none;
}

.bs-wrapper .bs-asset-name {
	font-weight: 700;
	color: var(--bs-text);
	display: flex;
	align-items: center;
	gap: 8px;
}

.bs-wrapper .bs-asset-cat {
	font-size: 11px;
	color: var(--bs-muted);
	font-weight: 500;
}

.bs-wrapper .bs-actions-cell {
	display: flex;
	gap: 6px;
}

.bs-wrapper .bs-icon-btn {
	background: var(--bs-surface-2);
	border: 1px solid var(--bs-border);
	color: var(--bs-text);
	border-radius: 7px;
	padding: 5px 9px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.bs-wrapper .bs-icon-btn-del {
	color: var(--bs-red);
}

.bs-wrapper .bs-icon-btn:hover {
	opacity: 0.85;
}

/* Footer */
.bs-wrapper .bs-footer {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bs-wrapper .bs-footer-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.bs-wrapper .bs-upload-label {
	margin: 0;
}

.bs-wrapper .bs-disclaimer {
	margin: 0;
	font-size: 11px;
	color: var(--bs-muted);
}

/* =========================================================
   ANASAYFA WIDGET KARTI (Sanal Portföy Oyunu Stiline Uyumlu)
   ========================================================= */
.bs-widget-card {
	--bs-w-bg: #ffffff;
	--bs-w-border: #e5e7eb;
	--bs-w-text: #111827;
	--bs-w-muted: #6b7280;

	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	background: var(--bs-w-bg);
	color: var(--bs-w-text);
	border: 1px solid var(--bs-w-border);
	border-radius: 14px;
	padding: 20px 24px;
	margin: 14px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.bs-widget-card.bs-theme-dark {
	--bs-w-bg: #1e293b;
	--bs-w-border: #334155;
	--bs-w-text: #f8fafc;
	--bs-w-muted: #94a3b8;
}

.bs-widget-card .bs-widget-main {
	flex: 1 1 auto;
	min-width: 0;
}

.bs-widget-card .bs-widget-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 6px;
}

.bs-widget-card .bs-widget-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--bs-w-text);
	line-height: 1.3;
}

.bs-widget-card .bs-widget-desc {
	margin: 0 0 10px 0;
	font-size: 13.5px;
	color: var(--bs-w-muted);
	line-height: 1.45;
}

.bs-widget-card .bs-widget-portfolio {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 10px 0;
	font-size: 14px;
}

.bs-widget-card .bs-widget-total-label {
	color: var(--bs-w-muted);
	font-weight: 500;
}

.bs-widget-card .bs-widget-total-val {
	font-size: 18px;
	font-weight: 800;
	color: var(--bs-w-text);
}

.bs-widget-card .bs-widget-daily {
	font-size: 13px;
	font-weight: 700;
}

.bs-widget-card .bs-widget-rates {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 12.5px;
	color: var(--bs-w-muted);
}

.bs-widget-card .bs-w-rate-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.bs-widget-card .bs-w-rate-item strong {
	color: var(--bs-w-text);
	font-weight: 700;
}

.bs-widget-card .bs-widget-cta {
	flex: 0 0 auto;
}

.bs-widget-card .bs-widget-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #2563eb;
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 600;
	padding: 11px 22px;
	border-radius: 9px;
	white-space: nowrap;
	transition: background 0.15s ease, transform 0.1s ease;
}

.bs-widget-card .bs-widget-btn:hover {
	background: #1d4ed8;
}

.bs-widget-card .bs-widget-btn:active {
	transform: scale(0.98);
}

/* Responsive */
@media (max-width: 768px) {
	.bs-wrapper {
		padding: 14px;
	}

	.bs-wrapper .bs-summary-grid {
		grid-template-columns: 1fr;
	}

	.bs-wrapper .bs-card-value {
		font-size: 21px;
	}

	.bs-widget-card {
		flex-direction: column;
		align-items: stretch;
		padding: 16px;
		gap: 14px;
	}

	.bs-widget-card .bs-widget-btn {
		width: 100%;
	}
}
