/**
 * Funded Trading Core - Propfirm Review Widget Styles
 *
 * @package fundedtrading-core
 * @since 1.0.0
 */

/* Container */
.ft-propfirm-review-container {
	width: 100%;
	max-width: 100%;
}

/* Category Tabs */
.ft-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-bottom: 2px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 2rem;
	padding: 0;
	list-style: none;
}

.ft-tabs .nav-item {
	flex: 1;
    min-width: 0;
    text-align: center;
	margin: 0;
}

.ft-tabs .nav-link {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 3px solid transparent;
	color: rgba(255, 255, 255, 0.6);
	cursor: pointer;
	padding: 1rem 1.5rem;
	text-transform: uppercase;
	transition: none;
	white-space: nowrap;
}

.ft-tabs .nav-link:hover {
	color: rgba(255, 255, 255, 0.9);
}

.ft-tabs .nav-link.active {
	color: #00ffc8;
	border-bottom-color: #00ffc8;
}

/* Category Dropdown (Mobile) - Hidden by default */
.ft-category-dropdown-wrapper {
	display: none;
}

.ft-category-dropdown {
	width: 100%;
	background-color: rgba(255, 255, 255, 0.05);	
	color: rgba(255, 255, 255, 1);
	border: 1px solid rgba(255, 255, 255, 0.1);
	outline-color: rgba(255, 255, 255, 0)!important;
	outline: none;
	border-radius: 8px;
	padding: 16px 10px;
	 /* Remove default arrow */
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	
	/* Custom arrow using your SVG */
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath fill-rule='evenodd' d='M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z' clip-rule='evenodd'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	transition: none !important;
  -webkit-transition: none !important;
  -moz-transition: none !important;
  -o-transition: none !important;
}

.ft-category-dropdown:focus {
	border-color: var(--e-global-color-9915f2b);
	outline-color: rgba(255, 255, 255, 0)!important;
	outline: none;
}

.ft-category-dropdown option {
	background-color: var(--e-global-color-09b46c3);
	color: rgba(255, 255, 255, 0.9);
	padding: 0.5rem;
}
/* Search and Filters Container */
.ft-search-filters-container {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
	align-items: center;
	justify-content: space-between;
}

/* Search Wrapper */
.ft-search-wrapper {
	flex: 1;
}

.ft-search-wrapper .input-group {
	display: flex;
	align-items: stretch;
	position: relative;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 0.5rem;
	overflow: hidden;
	transition: all 0.3s ease;
}

.ft-search-wrapper .input-group:focus-within{
	border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: var(--e-global-color-9915f2b);
}

.ft-search-wrapper .input-group-text {
	border: none;
	display: flex;
	align-items: center;
	padding: 0.5rem 0 0.5rem 1rem;
	z-index: 1;
}

.ft-search-input {
	border: none;
	flex: 1;
	padding: 0.5rem 0.5rem 0.5rem 0;
	outline: none;
}

input.form-control.ft-search-input:focus {
    border-style: unset !important;
    border-width: unset !important;
    border-color: unset !important;
}

.ft-search-input::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.ft-search-btn {
	border: none;
	border-radius: 0.375rem;
	cursor: pointer;
	font-weight: 600;
	padding: 0.5rem 1.5rem;
	margin: 0.25rem;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

/* Filters Wrapper */
.ft-filters-wrapper {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.ft-filter-btn {
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1.25rem;
}

.ft-filter-btn svg{
	width: 24px;
}

.ft-filter-btn.active.desc {
    background-color: var(--e-global-color-primary);
    color: var(--e-global-color-text);
}

/* Propfirm Cards Container */
.ft-propfirm-cards {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

/* Individual Propfirm Card */
.ft-propfirm-card {
	background: #ffffff14;
	border: 1px solid #ffffff33;
	backdrop-filter: blur(10px);
	border-radius: 16px;
    padding: 24px;
	transition: all 0.3s ease;
	display: grid;
	grid-template-columns: 1.1fr 1fr auto;
	align-items: center;
	gap: 1rem;
	position: relative;
}

.ft-propfirm-card.hidden {
	display: none;
}

/* Column 1: Logo and Information */
.ft-card-logo-information {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex: 1;
	min-width: 0;
}

/* Column 2: Score, Promo, and Latest Update */
.ft-card-score-promo-information {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 200px;
	max-height: 100px;
    justify-content: space-between;
}

/* Latest Update Section */
.ft-last-update-wrap {
	margin-bottom: 0.5rem;
}

.ft-last-update {
	color: rgba(255, 255, 255, 0.5);
	font-size: var(--e-global-typography-7081da2-font-size);   
    font-weight: var(--e-global-typography-7081da2-font-weight);
    line-height: var(--e-global-typography-7081da2-line-height);
}

/* Score and Promo Wrapper */
.ft-card-score-promo {
	display: flex;
	gap: 0px;
	align-items: flex-start;
}

/* Column 3: Action Buttons */
.ft-card-action-information {
	display: flex;
	align-items: center;
	min-width: 140px;
}

/* Card Logo */
.ft-card-logo {
	display: flex;
    justify-content: center;
	flex-shrink: 0;
}

.ft-firm-logo {
	width: 100px;
	height: 100px;
	object-fit: contain;
	background-color: rgba(255, 255, 255, 0.05);
	border-radius: 8px ! Important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.ft-firm-logo-placeholder {
	width: 95px;
	height: 95px;
	background: linear-gradient(135deg, rgba(0, 200, 255, 0.15) 0%, rgba(0, 150, 255, 0.25) 100%);
	border-radius: 8px!Important;
}

/* Card Info */
.ft-card-info {
	display: inline-flex;
	min-width: 180px;
    flex-direction: column;
    justify-content: center;   
}

.ft-firm-name {
	color: #fff;
	margin: 0px;
	line-height: 1.3;
}

.ft-tradable-assets {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.ft-label {
	color: rgba(255, 255, 255, 0.55);
	font-weight: 500;
}

.ft-asset-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.ft-asset-badge {
	font-size: 14px;
	background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 4px 6px;
}

/* Asset More Badge (+n indicator) */
.ft-asset-more {
	background-color: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.3);
	font-weight: 600;
}

/* Desktop: Show first 4 badges + desktop more indicator */
.ft-asset-badge-5,
.ft-asset-badge-6,
.ft-asset-badge-7,
.ft-asset-badge-8,
.ft-asset-badge-9,
.ft-asset-badge-10,
.ft-asset-badge-11,
.ft-asset-badge-12,
.ft-asset-badge-13,
.ft-asset-badge-14,
.ft-asset-badge-15,
.ft-asset-badge-16,
.ft-asset-badge-17,
.ft-asset-badge-18,
.ft-asset-badge-19,
.ft-asset-badge-20 {
	display: none;
}

.ft-asset-more-mobile {
	display: none;
}

.ft-asset-more-desktop {
	display: inline-block;
}

/* Score Section */
.ft-card-score {
	display: flex;
	flex-direction: column;
	min-width: 100px;
}

.ft-score-value {
	color: var(--e-global-color-primary);
	line-height: 1;
}

.ft-score-value h6{
	color: var(--e-global-color-primary);
	margin-bottom: 0px;
}

/* Promo Section */
.ft-card-promo {
	display: flex;
	flex-direction: column;
	min-width: 260px;
}


.ft-promo-items {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	gap: 0.5rem;
}

.ft-promo-match{
	display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 5px 8px 5px 0px;
    position: relative;
}

.ft-promo-badge {
	display: flex;
	align-items: center;
	background-color: rgba(0, 255, 210, 0.1);
	border-radius: 4px;
	padding: 5px 8px 5px 0px;
	position: relative;
}

.ft-promo-badge {
	color: var(--e-global-color-primary);
	cursor: pointer;
}

.ft-promo-icon {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ft-promo-badge .ft-promo-icon svg {
	color: var(--e-global-color-primary);
	width: 32px;
	height: 32px;
}

.ft-promo-badge .ft-promo-text {
	color: var(--e-global-color-primary);
	flex: 1;
}


.ft-promo-match .ft-promo-icon svg {
	color: var(--e-global-color-primary);
	width: 32px;
	height: 32px;
}

.ft-promo-match .ft-promo-text {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 10ch; /* Desktop: 10 characters */
}

.ft-promo-badge .ft-promo-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 10ch; /* Desktop: 10 characters */
}

.ft-promo-match:active {
	transform: scale(0.98);
}

/* Copy tooltip */
.ft-promo-code-tooltip {
	position: absolute;
	top: -35px;
	left: 50%;
	transform: translateX(-50%);
	background-color: rgba(0, 200, 150, 0.95);
	color: #fff;
	padding: 0.4rem 0.8rem;
	border-radius: 8px;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.25s ease;
	z-index: 10;
}

.ft-promo-code-tooltip::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 4px solid rgba(0, 200, 150, 0.95);
}

.ft-promo-code-tooltip.show {
	opacity: 1;
}

/* Card Actions */
.ft-card-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 145px;
}

.ft-visit-btn,
.ft-review-btn {
	padding: 10px 24px;
	border-radius: 8px;
	text-align: center;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}

.ft-load-more-btn {
	background-color: rgba(255, 255, 255, 0.05);
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: 0.5rem;
	color: rgba(255, 255, 255, 0.9);
	cursor: pointer;
	padding: 0.875rem 2.5rem;
	transition: all 0.3s ease;
}

.ft-load-more-btn:hover {
	background-color: rgba(0, 255, 200, 0.1);
	border-color: #00ffc8;
	color: #00ffc8;
	transform: translateY(-2px);
}

.ft-load-more-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.ft-load-more-btn.loading::after {
	content: "...";
	animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
	0%, 20% {
		content: ".";
	}
	40% {
		content: "..";
	}
	60%, 100% {
		content: "...";
	}
}

/* No Results */
.ft-no-results {
	text-align: center;
	padding: 3rem 1rem;
}

.ft-no-results p {
	margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
	.ft-propfirm-card {
		padding: 1.5rem;
		gap: 1.25rem;
	}

	.ft-card-info {
		min-width: 150px;
	}

	.ft-card-score,
	.ft-card-promo {
		min-width: 100px;
	}

	.ft-card-actions {
		min-width: 120px;
	}
}

@media (max-width: 991px) {
	/* Hide tabs on mobile */
	.ft-tabs {
		display: none !important;
	}

	/* Show dropdown on mobile */
	.ft-category-dropdown-wrapper {
		display: block;
	}

	/* Reorganize search and filters for mobile */
	.ft-search-filters-container {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 10px;
		margin-bottom: 1rem;
	}

	/* Row 1: Category Dropdown (left) + Newest Button (right) */
	.ft-category-dropdown-wrapper {
		order:1;
		flex: 1 1 calc(100% - 150px);
		min-width: 0;
		margin-bottom: 0;
	}

	.ft-filters-wrapper {
		order: 2;
		flex: 0 0 140px;
		display: flex;
		justify-content: flex-end;
		margin-bottom: 0;
	}

	.ft-search-btn {
		padding: 14px 16px;
    	margin: 5px;
	}

	.ft-filter-btn {
		width: 100%;
		min-width: auto;
		justify-content: center;
		padding: 0.75rem 1rem;
	}

	/* Row 2: Search Input + Search Button (full width) */
	.ft-search-wrapper {
		order: 3;
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
	}

	/* Mobile: Show only first 2 badges + mobile more indicator */
	.ft-asset-badge-3,
	.ft-asset-badge-4,
	.ft-asset-badge-5,
	.ft-asset-badge-6,
	.ft-asset-badge-7,
	.ft-asset-badge-8,
	.ft-asset-badge-9,
	.ft-asset-badge-10,
	.ft-asset-badge-11,
	.ft-asset-badge-12,
	.ft-asset-badge-13,
	.ft-asset-badge-14,
	.ft-asset-badge-15,
	.ft-asset-badge-16,
	.ft-asset-badge-17,
	.ft-asset-badge-18,
	.ft-asset-badge-19,
	.ft-asset-badge-20 {
		display: none;
	}

	.ft-asset-more-desktop {
		display: none;
	}

	.ft-asset-more-mobile {
		display: inline-block;
	}

	.ft-propfirm-card {
		display: flex;
        flex-wrap: wrap;
		padding: 16px;
		text-align: left;
		border-radius: 8px;
		gap:16px;
	}

	.ft-card-logo-information {
		width: 45%;
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
		flex: unset;
	}

	.ft-tradable-assets {
		align-items: flex-start;
	}

	.ft-asset-badges {
		justify-content: flex-start;
	}
	
	.ft-card-logo-information,
	.ft-card-score-promo-information,
	.ft-card-action-information {
		max-height: fit-content;
		gap:16px;
	}

	.ft-card-score-promo-information {
		width: 50%;
        gap:8px;
		text-align: left;
    }

	.ft-card-info {
		display: inline-flex;
		min-width: 150px;
		flex-direction: column;
		justify-content: center;
	}

	.ft-asset-badge{
		font-size: 12px;
	}

	.ft-card-score-promo {
		flex-direction: row;
		align-items: unset;
		gap: 0;
		justify-content: space-between;
	}

	.ft-card-score,
	.ft-card-promo {
		min-width: unset;
		align-items: flex-start;
	}

	.ft-card-score{
		width: 70px;
	}

	.ft-score-value h6 {
		font-size: 20px;
	}

	.ft-promo-items {
    	gap: 10px;
	}

	/* Mobile: 8 characters limit for promo text */
	.ft-promo-match .ft-promo-text,
	.ft-promo-badge .ft-promo-text {
		max-width: 8ch; /* Mobile: 8 characters */
	}

	.ft-card-action-information {
		width: 100%;
	}

	.ft-card-actions {
		flex-direction: row;
		gap: 0.65rem;
		width: 100%;
	}

	.ft-visit-btn,
	.ft-review-btn {
		width: 100%;
	}
}

@media (max-width: 767px) {
	/* Hide tabs on mobile */
	.ft-tabs {
		display: none !important;
	}

	/* Show dropdown on mobile */
	.ft-category-dropdown-wrapper {
		display: block;
	}

	/* Reorganize search and filters for mobile */
	.ft-search-filters-container {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 10px;
		margin-bottom: 1rem;
	}

	/* Row 1: Category Dropdown (left) + Newest Button (right) */
	.ft-category-dropdown-wrapper {
		order:1;
		flex: 1 1 calc(100% - 150px);
		min-width: 0;
		margin-bottom: 0;
	}

	.ft-filters-wrapper {
		order: 2;
		flex: 0 0 140px;
		display: flex;
		justify-content: flex-end;
		margin-bottom: 0;
	}

	.ft-search-btn {
		padding: 14px 16px;
    	margin: 5px;
	}

	.ft-filter-btn {
		width: 100%;
		min-width: auto;
		justify-content: center;
		padding: 0.75rem 1rem;
	}

	/* Row 2: Search Input + Search Button (full width) */
	.ft-search-wrapper {
		order: 3;
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
	}

	/* Mobile: Show only first 2 badges + mobile more indicator */
	.ft-asset-badge-3,
	.ft-asset-badge-4,
	.ft-asset-badge-5,
	.ft-asset-badge-6,
	.ft-asset-badge-7,
	.ft-asset-badge-8,
	.ft-asset-badge-9,
	.ft-asset-badge-10,
	.ft-asset-badge-11,
	.ft-asset-badge-12,
	.ft-asset-badge-13,
	.ft-asset-badge-14,
	.ft-asset-badge-15,
	.ft-asset-badge-16,
	.ft-asset-badge-17,
	.ft-asset-badge-18,
	.ft-asset-badge-19,
	.ft-asset-badge-20 {
		display: none;
	}

	.ft-asset-more-desktop {
		display: none;
	}

	.ft-asset-more-mobile {
		display: inline-block;
	}

	.ft-propfirm-card {
		padding: 16px;
		grid-template-columns: 1fr;
		text-align: left;
		border-radius: 8px;
		gap:16px;
	}

	.ft-card-logo-information {
		flex-direction: row;
		align-items: flex-start;
		text-align: left;
	}

	.ft-tradable-assets {
		align-items: flex-start;
	}

	.ft-asset-badges {
		justify-content: flex-start;
	}
	
	.ft-card-logo-information,
	.ft-card-score-promo-information,
	.ft-card-action-information {
		width: 100%;
		max-height: fit-content;
		gap:16px;
	}

	.ft-card-score-promo-information {
        gap:8px;
		text-align: left;
    }

	.ft-card-info {
		display: inline-flex;
		min-width: 150px;
		flex-direction: column;
		justify-content: center;
	}

	.ft-asset-badge{
		font-size: 12px;
	}

	.ft-card-score-promo {
		flex-direction: row;
		align-items: unset;
		gap: 0;
		justify-content: space-between;
	}

	.ft-card-score,
	.ft-card-promo {
		min-width: unset;
		align-items: flex-start;
	}

	.ft-card-score{
		width: 70px;
	}

	.ft-score-value h6 {
		font-size: 20px;
	}

	.ft-promo-items {
    	gap: 10px;
	}

	/* Mobile: 8 characters limit for promo text */
	.ft-promo-match .ft-promo-text,
	.ft-promo-badge .ft-promo-text {
		max-width: 8ch; /* Mobile: 8 characters */
	}

	.ft-card-actions {
		flex-direction: column;
		gap: 0.65rem;
		width: 100%;
	}

	.ft-visit-btn,
	.ft-review-btn {
		width: 100%;
	}
}

@media (max-width: 575px) {
	.ft-propfirm-review-container {
		padding: 0;
	}

	.ft-tabs .nav-link {
		padding: 0.65rem 0.875rem;
	}

	.ft-category-dropdown-wrapper {
		width: 60%;
	}

	.ft-search-wrapper {
		min-width: 100%;
	}

	.ft-filters-wrapper {
		width: 30%;
	}

	.ft-filter-btn {
		flex: 1;
		justify-content: center;
	}

	.ft-firm-logo,
	.ft-firm-logo-placeholder {
		width: 100px;
		height: 100px;
	}

	.ft-score-value {
	}
}

/* Animation for fade in */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ft-propfirm-card {
	animation: fadeIn 0.4s ease-out;
}

/* Loading state */
.ft-propfirm-cards.loading {
	opacity: 0.6;
	pointer-events: none;
}

.ft-propfirm-cards.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	border: 4px solid rgba(0, 255, 200, 0.2);
	border-top-color: #00ffc8;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}
