@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Krona+One&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* Basic reset and box-sizing */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: inherit;
}

html {
	--gatewayfy-color: 160, 100%, 45%;
	--danger-color: 4, 100%, 67%;
	--default-color: 251, 12%, 18%;
}

::-webkit-scrollbar {
	width: 2px;
	background: #000614;
}

::-webkit-scrollbar-thumb {
	background: hsl(var(--gatewayfy-color));
}

body {
	color: #ffffff;
	background: linear-gradient(135deg, #000614, #000614);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2rem;

	overflow-x: hidden;

	font-family: "Montserrat", sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
}

/* Text styles */
.krona {
	font-family: "Krona One", sans-serif;
	font-weight: 400;
	font-style: normal;
}

.text-small {
	font-size: 0.8rem;
	opacity: 0.5;
}

.section-title {
	font-size: 1rem;
	opacity: 0.5;
}

.header {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	justify-content: end;
	align-items: end;
}

.header .toggle-wrapper {
	display: flex;
	align-items: center;
	border-radius: 2em;
	overflow: hidden;
	border: 1px solid #fff5;
}

.header .toggle-wrapper .toggle-button {
	font-size: inherit;
	appearance: none;
	background-color: transparent;
	border: none;
	outline: none;

	min-width: 10rem;
	color: #fff;
	padding: 0.5rem 1.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: background-color 0.3s ease-in-out;
}
.header .toggle-wrapper .toggle-button.active {
	background-color: #fff;
	color: #000;
}

/* Container that holds everything */
.calculator-wrapper {
	position: relative;
	display: flex;
	gap: 2rem;
	width: 100%;
	max-width: 1200px;
	height: 100%;
	min-height: 470px;
}

#feeCalculatorContainer {
	transform: translateX(-120%);
	opacity: 0;
}
#feeCalculatorContainer.active {
	transform: translateX(0);
	opacity: 1;
}
#profitCalculatorContainer {
	transform: translateX(120%);
	opacity: 0;
}
#profitCalculatorContainer.active {
	transform: translateX(0);
	opacity: 1;
}

.container {
	position: absolute;
	width: 100%;
	max-width: 1200px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;

	transition: all 0.7s ease-in-out;
}

.side-container {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	justify-content: space-between;
}

/* Left and right sections */
.left-section {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.right-section {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* Card style (glassmorphism-like) */
.card {
	position: relative;
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	border-radius: 1.5rem;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.growth-icon {
	width: 4em;
	height: 4em;
	border-radius: 1em;
}

.company-icon {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 3em;
	height: 3em;

	opacity: 0.5;
}

.competitor-card .company-icon {
	filter: grayscale(1);
}

.company-icon img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cost-display {
	margin-top: 2em;
	display: flex;
	justify-content: space-between;
	align-items: end;
}

.cost-info {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.competitor-card {
	border-color: hsla(var(--danger-color), 0.5);
	background-color: hsla(var(--danger-color), 0.05);
}

.gatewayfy-card {
	border-color: hsla(var(--gatewayfy-color), 0.5);
	background-color: hsl(var(--gatewayfy-color), 0.05);
}

/* Revenue Card */
.revenue-card,
.platform-card {
	background-color: transparent;
	border: none;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 0;
}

.revenue-card h2 {
	margin-bottom: 1rem;
	font-size: 1.2rem;
}

.revenue-display {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

#revenueSlider {
	width: 100%;
	margin: 1rem 0;
}

.range-labels {
	display: flex;
	justify-content: space-between;
	font-size: 0.8rem;
	opacity: 0.8;
	font-weight: 100;
	color: hsl(var(--gatewayfy-color));
}

.range-labels span:first-child {
	opacity: 0.5;
}

/* Platform Card */
.platform-card h3 {
	margin-bottom: 1rem;
}

.platform-logos {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.platform-logo {
	flex: 1;
	min-width: 150px;

	/* Layout & spacing */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px; /* Space for icon + text */
	padding: 20px;
	cursor: pointer;

	/* Typography */
	font-size: 1rem;
	font-weight: 500;
	color: #ffffff;
	text-decoration: none;

	/* Background & border */
	background: linear-gradient(180deg, #1c232c, #13181f);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;

	/* Shadows (including inner shadow) */
	box-shadow:
		inset 0 1px 2px rgba(255, 255, 255, 0.06),
		inset 0 -1px 2px rgba(0, 0, 0, 0.5),
		0 4px 8px rgba(0, 0, 0, 0.4);

	/* Transition for hover/focus states */
	transition:
		transform 0.3s,
		background 0.3s;
}

.platform-logo img {
	width: 24px;
	height: 24px;
}

.platform-logo:hover {
	transform: translateY(-2px);
	background: linear-gradient(180deg, #202731, #141a21);
}

.platform-logo.active {
	background: rgba(255, 255, 255, 1);
	color: #333;

	transform: translateY(-2px);
}

/* Competitor & Gatewayfy Cards */
.card h4 {
	margin-bottom: 1rem;
	font-size: 1rem;
}

.cost {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 0.5rem;
}

.tax {
	font-size: 0.9rem;
}

.tax span {
	opacity: var(--text-opacity, 0.5);
}

.tax .tax-small {
	font-size: 0.8rem;
}

.tax .arrow {
	margin-right: 5px;
}

.competitor-tax {
	--text-opacity: 1;
	color: hsla(var(--danger-color), 1);
}

.gatewayfy-tax {
	--text-opacity: 1;
	color: hsla(var(--gatewayfy-color), 1);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
	.cost-display {
		flex-direction: column;
		align-items: start;
	}
}

@media (max-width: 900px) {
	.container {
		grid-template-columns: 1fr;
	}
}
