/* Dark Mode Strategy Carousel CSS */

/* Container Styles */
.strategy-carousel-container {
	background: #121c2600;
	color: #fff;
	padding: 60px 0;
	overflow: hidden;
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	padding-bottom: 0px;
}
.slick-slide {
	width: 350px;
}
.strategy-carousel {
	padding: 0 4%;
	width: 100%;
	opacity: 0;
}

.strategy-carousel.slick-initialized {
	opacity: 1;
	transition: opacity 0.3s ease-out;
}

/* Track and Slide Base Styles */
.strategy-carousel .slick-track {
	padding: 35px 0;
	margin: 0 auto;
	display: flex;
}

.strategy-carousel .slick-slide {
	margin: 1px;
	margin-left: 10px;
	height: inherit !important;
	transition: all 0.6s cubic-bezier(.25,.8,.25,1) 0.3s;
}

.strategy-carousel .slick-slide > div {
	height: 100% !important;
}

/* Card Base Styles */
.strategy-slide {
	position: relative;
	padding: 0 10px;
	transition: transform 0.3s cubic-bezier(.25,.8,.25,1);
}

.strategy-card {
	background: #131722;
	border-radius: 12px;
	padding: 20px;
	height: 100%;
	min-height: 400px;
	position: relative;
	color: #fff;
	box-shadow: 0 2px 10px rgba(0,0,0,0.9);
	transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.strategy-card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	gap: 15px;
}

/* Risk Badge */
.risk-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	background: rgba(147, 51, 234, 0.2);
	color: #a855f7;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

/* Profile Section */
.profile-section {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
}


.profile-image {
	position: absolute;
	top: 4px;
	right: -25px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	overflow: hidden;
	background: #2d2d2d;
	padding: 4px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
	z-index: 3;
}



.profile-image img.coinpairs {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.profile-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.strategy-name {
	font-size: 18px;
	font-weight: 600;
	color: #fff;
	margin: 0;
	margin-top: 8px;
	z-index: 9;
}

/* Stats Section */
.stats-section {
	display: flex;
	justify-content: space-between;
	margin: 15px 0;
	background: #2d2d2d;
	padding: 15px;
	border-radius: 8px;
}

.stat-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.stat-label {
	font-size: 12px;
	color: #999;
}

.stat-value {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
}

/* Performance Section */
.performance-section {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.performance-badge {
	display: inline-block;
	padding: 4px 12px;
	background: rgba(16, 185, 129, 0.2);
	color: #10b981;
	border-radius: 4px;
	font-weight: 600;
	align-self: flex-start;
	z-index: 999;
}


/* Chart Background Container */
.performance-chart {
	position: absolute;
	top: 10px;
	left: 0;
	right: 0;
	height: 105px;
	z-index: 1;
	background: transparent;
	/* object-fit: cover; */
	/* object-position: 116% 0; */
	overflow: hidden;
}

.performance-chart-top {
	top:-10px;
}

/*
.performance-chart img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
*/
.performance-chart img {
	width: 100%;
	height: 222%;
	object-fit: cover;
	object-fit: cover;
	object-position: 98% 0;
	top: 0px;
	object-position: 10% 10% 14% 13%;
	margin-top: -80px;
}
/* Action Buttons */
.action-buttons {
	display: flex;
	gap: 10px;
	margin-top: auto;
	z-index: 9999;
}

.copy-btn {
	flex-grow: 1;
	padding: 10px;
	background: #e50914;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.3s;
	font-weight: 600;
}

.copy-btn:hover {
	background: #f6121d;
}

.favorite-btn, .more-btn {
	width: 40px;
	height: 40px;
	padding: 8px;
	background: #2d2d2d;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	transition: all 0.3s;
}

.favorite-btn:hover, .more-btn:hover {
	background: #3d3d3d;
	color: #e50914;
}

/* Hover Effects */
.strategy-slide:hover {
	transform: scale(1.2);
	z-index: 100;
}

.strategy-slide:hover .strategy-card {
	box-shadow: 0 14px 28px rgba(0,0,0,0.5), 0 10px 10px rgba(0,0,0,0.4);
	position: absolute;
	top: -60px;
	left: 0;
	right: 0;
	bottom: -60px;
}

/* Slide Transitions */
.strategy-slide:hover ~ .strategy-slide {
	transform: translateX(50px);
}

.strategy-slide.prev:hover ~ .strategy-slide {
	transform: translateX(-50px);
}

/* Navigation Arrows */
.strategy-carousel .slick-arrow {
	font-size: 0;
	line-height: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	height: calc(100% - 120px);
	background: rgba(20,20,20,0.7);
	padding: 0;
	cursor: pointer;
	color: transparent;
	border: none;
	outline: none;
	width: 4%;
	background-repeat: no-repeat;
	background-position: center center;
	opacity: 0;
	transition: all 0.3s cubic-bezier(.25,.8,.25,1);
	z-index: 10;
}

.strategy-carousel:hover .slick-arrow {
	opacity: 1;
}

.strategy-carousel .slick-next {
	right: 140px;

}

.strategy-carousel .slick-prev {
	left: 140px;
	
}

.strategy-carousel .slick-disabled {
	opacity: 0 !important;
}

/* Slider List */
.slick-list {
	overflow: visible;
	margin: 0 -50px;
	padding: 0 50px;
}

/* Z-index Management */
.slick-track {
	z-index: 1;
}

.slick-slide {
	z-index: 2;
}

.slick-slide:hover {
	z-index: 10;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
	.strategy-card {
		min-height: 350px;
	}

	.stats-section {
		flex-direction: column;
		gap: 10px;
	}

	.strategy-carousel .slick-arrow {
		width: 8%;
	}
}

@media (max-width: 480px) {
	.strategy-carousel {
		padding: 0 2%;
	}

	.strategy-slide:hover {
		transform: scale(1.1);
	}
}


/* Updated Stats Section */
.stats-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: #2d2d2d;
	padding: 0;
	border-radius: 8px;
	overflow: hidden;
	margin-top: 0px;
}

.stat-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 15px;
	background: #1f1f1f;
}

.stat-label {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #999;
}

.stat-value {
	font-size: 20px;
	font-weight: 600;
	color: #fff;
}

.stat-value.positive {
	color: #10b981;
}

.stat-value.negative {
	color: #ef4444;
}

.period-badge {
	background: #333;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 11px;
	color: #999;
}

/* Hover effect */
.strategy-slide:hover .stat-item {
	background: #262626;
}


/* Style 1: Minimal with hover buttons */
.style-minimal .strategy-card .action-buttons {
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.3s ease;
}

.style-minimal .strategy-card:hover .action-buttons {
	opacity: 1;
	transform: translateY(0);
}

.strategy-card:hover{
/*box-shadow:0 2px 10px rgb(112 44 255 / 90%);*/
}
/* Style 2: Compact view */
.style-compact .strategy-card {
	min-height: 300px;
	padding: 15px;
}

.style-compact .stats-section {
	grid-template-columns: 1fr;
}

.style-compact .performance-chart {
	height: 100px;
}

/* Style 3: Grid layout */
.style-grid .strategy-carousel .slick-track {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	padding: 20px;
}

.style-grid .strategy-slide:hover {
	transform: scale(1.05);
}

/* Style 4: Dark elegant */
.style-elegant .strategy-card {
	background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.style-elegant .stat-item {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(5px);
}

.style-elegant .copy-btn {
	background: linear-gradient(45deg, #e50914, #ff0f1b);
}

/* Style 5: Modern transparent */
.style-modern .strategy-card {
	background: rgba(19, 23, 34, 0.8);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.style-modern .stats-section {
	background: rgba(45, 45, 45, 0.5);
}

.style-modern .stat-item {
	background: transparent;
}

.style-modern .performance-badge {
	background: rgba(16, 185, 129, 0.3);
	backdrop-filter: blur(4px);
}



/* Netflix-style numbered background styling */
.style-netflix .strategy-slide {
	position: relative;
	padding: 0 10px;
	transition: transform 0.3s cubic-bezier(.25,.8,.25,1);
}

.style-netflix .strategy-slide::before {
	content: attr(data-rank);
	position: absolute;
	left: -20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 400px;
	font-weight: 900;
	/* color: rgba(40, 40, 40, 0.6); */
	z-index: 0;
	line-height: 1;
	font-family: 'Arial Black', sans-serif;
	opacity: 0.15;
	pointer-events: none;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.style-netflix .strategy-card {
	position: relative;
	z-index: 1;
	background: rgba(19, 23, 34, 0.95);
	backdrop-filter: blur(10px);
	border: none;
	box-shadow: 0 2px 10px rgba(0,0,0,0.9);
}

/* Add red accent similar to Netflix */
.style-netflix .risk-badge {
	background: rgba(229, 9, 20, 0.2);
	color: #e50914;
}

.style-netflix .copy-btn {
	background: #e50914;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Hover effects */
.style-netflix .strategy-slide:hover {
	transform: scale(1.05);
	z-index: 100;
}

/* Hover effects */
.style-netflix .strategy-slide {
	padding-left:135px;
}

/*
.style-netflix .strategy-slide:hover::before {
	opacity: 0.2;
	transform: translateY(-50%) scale(1.1);
	transition: all 0.3s ease;
}
*/

/* Responsive adjustments */
@media (max-width: 1200px) {
	.style-netflix .strategy-slide::before {
		font-size: 300px;
	}
}

@media (max-width: 768px) {
	.style-netflix .strategy-slide::before {
		font-size: 200px;
		left: -10px;
	}
}

/* Netflix Style Hover Animation */
/* Netflix Style Number Animation */
.style-netflix .strategy-slide {
	transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms;
	position: relative;
}

.style-netflix .strategy-slide:hover {
	position: relative;
	z-index: 99;
	transform: scale(1.4);
	transition-delay: 300ms;
}

/* Handle edge cases */
.style-netflix .strategy-slide:first-child:hover {
	transform-origin: left center;
}

.style-netflix .strategy-slide:last-child:hover {
	transform-origin: right center;
}

/* Slide push effect */
.style-netflix .strategy-slide:hover ~ .strategy-slide {
	transform: translateX(40px);
	transition-delay: 300ms;
}

.style-netflix .strategy-slide.prev {
	transform: translateX(-40px);
	transition-delay: 300ms;
}

/* Card animation */
.style-netflix .strategy-slide:hover .strategy-card {
	box-shadow: rgba(0, 0, 0, 0.75) 0px 3px 10px;
}

/* Ensure proper stacking */
.style-netflix .slick-slide {
	z-index: 2;
}

.style-netflix .slick-slide:hover {
	z-index: 99;
}

.style-netflix .strategy-slide::before {
opacity: 0.15;
	transition: opacity 450ms cubic-bezier(0.23, 1, 0.32, 0.3);
}

.style-netflix .strategy-slide:hover::before {
	opacity: 0;
	transition-delay: 100ms;
}

/* Restore number on hover out */
.style-netflix .strategy-slide:not(:hover)::before {
	opacity: 0.15;
	transition: opacity 450ms cubic-bezier(0.23, 1, 0.32, 1) 150ms; /* Added slight delay on return */
}
.style-netflix .stats-section {
	grid-template-columns: 1fr;
}
/* Keep existing hover animations */
.style-netflix .strategy-slide:hover {
	position: relative;
	z-index: 99;
	transform: scale(1.2);
	transition-delay: 300ms;
}

.strategy-slide {
	cursor: pointer;
	
}

/* Optional: Change to grabbing cursor while dragging */
.strategy-slide:active {
	cursor: grabbing;
}






/***** MODAL STYLE ******/

/* Modal Base Styles */
.strategy-modal {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 75%;
	height: 90vh;
	z-index: 9999;
	overflow: hidden;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Modal Background Overlay */
.modal-backdrop {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(19, 23, 34, 0.8);
	backdrop-filter: blur(10px);
	z-index: 2;
}

/* Ensure modal is above backdrop */
.strategy-modal {
	z-index: 9999;
	display: none;
}

.strategy-modal-content {
	position: relative;
	width: 100%;
	height: 100%;
	background: rgb(19, 23, 34);
	color: #fff;
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* Modal Header */
.modal-header {
	position: relative;
	height: 45%;
	min-height: 300px;
	overflow: hidden;
	border-radius: 16px 16px 0 0;
}

.modal-featured-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	transform: scale(1.02); /* Prevent white edges during blur */
}

.modal-gradient-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
	  0deg,
	  rgb(19, 23, 34) 16%,
	  rgba(19, 23, 34, 0) 21%,
	  rgba(19, 23, 34, 0) 100%
	 );
}

.modal-header-content {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 2.5rem;
	z-index: 2;
}

.strategy-modal-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	background: linear-gradient(to right, #fff, #ccc);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Enhanced Modal Body */
.modal-body {
	flex: 1;
	overflow-y: auto;
	/*padding: 2rem 2.5rem;*/
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.modal-body::-webkit-scrollbar {
	width: 6px;
}

.modal-body::-webkit-scrollbar-track {
	background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
}

/* Enhanced Metrics Section */
.modal-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
	padding: 0px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric {
	padding: 1rem;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 8px;
	transition: transform 0.2s ease;
}

.metric:hover {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, 0.05);
}

.metric-label {
	font-size: 0.875rem;
	color: #999;
	margin-bottom: 0.5rem;
}

.metric-value {
	font-size: 1.25rem;
	font-weight: 600;
	color: #fff;
}

.metric-value.positive {
	color: #10b981;
}

.metric-value.negative {
	color: #ef4444;
}

/* Enhanced Action Buttons */
.modal-actions {
	display: flex;
	gap: 1rem;
	margin-top: 1.5rem;
}

.copy-strategy-btn {
	padding: 0.75rem 2rem;
	background: linear-gradient(45deg, #e50914, #ff0f1b);
	color: white;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	font-size: 1.125rem;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px -1px rgba(229, 9, 20, 0.2);
}

.copy-strategy-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 8px -1px rgba(229, 9, 20, 0.3);
}

/* Advanced Stats Button */
.show-copy-bots {
	display: block;
	width: 100%;
	padding: 1rem;
	margin-top: 2rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	color: #fff;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin:0px;
}


/* Advanced Stats Button */
.show-advanced-stats {
	display: block;
	width: 100%;
	padding: 1rem;
	margin-top: 2rem;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	color: #fff;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin:0px;
}

.show-advanced-stats:hover {
	background: rgba(255, 255, 255, 0.1);
}

.show-advanced-stats svg {
	width: 20px;
	height: 20px;
	transition: transform 0.2s ease;
}

.show-advanced-stats:hover svg {
	transform: translateY(2px);
}

/* Enhanced Close Button */
.modal-close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	width: 2.5rem;
	height: 2.5rem;
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	color: white;
	font-size: 1.5rem;
	cursor: pointer;
	z-index: 3;
	transition: all 0.2s ease;
	backdrop-filter: blur(5px);
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-close:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: rotate(90deg);
}

/* Animation */
@keyframes modalFadeIn {
	from { 
		opacity: 0;
		transform: translate(-50%, -48%);
	}
	to { 
		opacity: 1;
		transform: translate(-50%, -50%);
	}
}

.strategy-modal.active {
	display: block;
	animation: modalFadeIn 0.3s ease-out forwards;
}

/* Dark mode styles for the modal */
/* Modal Grid Styles */
.stats-grid {
	background: #131722;
	border-radius: 8px;
	padding: 10px;
}

.stats-basic-info {
	width: 100%;
}

.stats-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.stat-item {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	padding: 20px;
}

.basic-info {
	margin-bottom: 20px;
}

.basic-info label {
	display: block;
	color: #999;
	font-size: 14px;
	margin-bottom: 8px;
}

.basic-info .value {
	font-size: 18px;
	font-weight: 600;
	color: #fff;
}

/* 2x2 Grid Layout */
.profit-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, 1fr);
	gap: 15px;
	margin-top: 20px;
}

.profit-item {
	background: rgba(30, 34, 45, 0.7);
	padding: 12px;
	border-radius: 6px;
}

.profit-item label {
	display: block;
	color: #999;
	font-size: 12px;
	margin-bottom: 5px;
}

.profit-item .value {
	font-size: 16px;
	font-weight: 600;
}

/* Value Colors */
.value.positive {
	color: #00ffa7;
}

.value.negative {
	color: #F80CFC;
}

/* Chart Container */
.chart-container {
	height: 100%;
	min-height: 200px;
}

#winRateChart {
	width: 100%;
	height: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.stats-row {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.chart-container {
		grid-column: span 2;
	}
}

@media (max-width: 768px) {
	.stats-row {
		grid-template-columns: 1fr;
	}
	
	.chart-container {
		grid-column: span 1;
	}
}

/* Stars */

.jq-stars {
  display: inline-block;
}

.jq-rating-label {
  font-size: 22px;
  display: inline-block;
  position: relative;
  vertical-align: top;
  font-family: helvetica, arial, verdana;
}

.jq-star {
  width: 100px;
  height: 100px;
  display: inline-block;
  cursor: pointer;
}

.jq-star-svg {
  padding-left: 3px;
  width: 100%;
  height: 100% ;
}

.jq-star:hover .fs-star-svg path {
}

.jq-star-svg path {
  /* stroke: #000; */
  stroke-linejoin: round;
}

/* un-used */
.jq-shadow {
  -webkit-filter: drop-shadow( -2px -2px 2px #888 );
  filter: drop-shadow( -2px -2px 2px #888 );
}