/*
Theme Name: Lumo
Theme URI: https://lumo.cards/
Author: 037.digital
Description: Custom WordPress theme for Lumo Cards. All assets (CSS, JS, images, fonts) are bundled locally — no external CDN requests.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lumo
*/

/*
Main styles live in assets/css/lumo.css
Self-hosted fonts live in assets/css/fonts.css
Add your own overrides below or in a new file enqueued via functions.php.
*/

/* Link-holderi na homepage-u pretvoreni u <a> — zadrže izgled diva. */
a.deploying-app-link-holder {
	color: inherit;
	text-decoration: none;
}

/* "Otvori platformu" u navbaru i footeru — brend gradient.
   Pun intenzitet uvek (brightness diže tamnu sredinu gradienta na tamnoj
   pozadini), hover blago spušta opacity. */
.nav-link.platform-link,
.footer-link.platform-link {
	color: #b82865;
	/* fallback za starije browsere */
	background-image: linear-gradient(90deg, #b82865 0%, #931883 50%, #cbb351 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: brightness(1.45);
	opacity: 1;
	transition: opacity .3s;
}

.nav-link.platform-link:hover,
.footer-link.platform-link:hover {
	opacity: .7;
}

/* Marketplace grid (page-marketplace.php). Prati postojeći dark stil teme. */
.marketplace-section {
	padding-bottom: 160px;
}

/* Ulazna animacija marketplace sekcije (fade + blagi pomak nagore). */
@keyframes lumoFadeUp {
	from {
		opacity: 0;
		transform: translateY(28px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.marketplace-section .title-holder {
	animation: lumoFadeUp .7s ease .1s both;
}

.marketplace-section .marketplace-grid {
	animation: lumoFadeUp .7s ease .3s both;
}

@media screen and (max-width: 767px) {
	.marketplace-section {
		padding-bottom: 80px;
	}
}

.marketplace-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-top: 64px;
}

.marketplace-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	background-color: #131313;
	border: 1px solid #2b2b2b;
	border-radius: 24px;
	padding: 32px;
}

/* Gradient okvir iza slike (isti BG-Gradient kao "Pogodnosti" sekcija),
   na hover polako rotira kao interakcija na homepage-u. */
.marketplace-card-image {
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 24px;
	position: relative;
	padding: 10px;
	isolation: isolate;
	/* bez ovoga rotirani ::before ignoriše border-radius clip */
}

.marketplace-card-image::before {
	content: "";
	position: absolute;
	inset: -70%;
	background: url("assets/images/643f0f099e03640fa5b6063e_BG-Gradient.jpg") center / cover no-repeat;
	transition: transform 1s ease;
	/* hover-out: glatko vraćanje kao na homepage-u */
	z-index: 0;
}

.marketplace-card:hover .marketplace-card-image::before {
	transform: rotate(180deg);
	transition: transform 5s ease;
	/* hover-in: identično interakciji na homepage-u */
}

.marketplace-card-image img {
	width: 100%;
	height: auto;
	display: block;
	position: relative;
	z-index: 1;
	border-radius: 10px;
}

.marketplace-card .card-title {
	margin-bottom: 8px;
}

.marketplace-card .grey-text {
	flex-grow: 1;
	margin-bottom: 24px;
}

.marketplace-price {
	margin-bottom: 24px;
}

.marketplace-price-value {
	color: #887ef9;
	font-family: Inter, sans-serif;
	font-size: 42px;
	font-weight: 500;
	letter-spacing: -1.8px;
}

.marketplace-price-period {
	color: rgba(216, 213, 209, .8);
	font-family: Inter, sans-serif;
	font-size: 16px;
	margin-left: 4px;
}

@media screen and (max-width: 991px) {
	.marketplace-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (max-width: 767px) {
	.marketplace-grid {
		grid-template-columns: 1fr;
		margin-top: 40px;
	}
}

/* Showcase sekcija (Dovedi prijatelja): bez scale animacije na hover,
   promena pozadine i ivice ostaju iz glavnog CSS-a (lumo.css). */
.best-thing-box-holder:hover,
.logos:hover {
	transform: none;
}

/* Slika Security Center panela u sekciji Bezbednost. */
img[src*="bezbednost-centar-final"] {
	max-width: 274px;
	height: auto;
	display: block;
	margin-left: auto;
	margin-right: auto;
	border-radius: 32px;
}

/* Sakrij "Made in Webflow" bedž koji runtime (lumo.js) ubacuje u DOM — ime
   klase .w-webflow-badge dolazi iz tog runtime-a i ne sme se menjati. Glavni
   CSS ga drži vidljivim sa !important, pa treba jača specifičnost posle njega. */
html body .w-webflow-badge,
html body .w-webflow-badge * {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
/* Responsive popravke — marketplace kartice, konsistentno sa ostatkom sajta. */
@media screen and (max-width: 479px) {
	.marketplace-grid {
		gap: 16px;
		margin-top: 30px;
	}

	.marketplace-card {
		padding: 18px;
		border-radius: 16px;
	}

	.marketplace-card-image {
		padding: 8px;
		border-radius: 12px;
		margin-bottom: 16px;
	}

	.marketplace-card-image img {
		border-radius: 8px;
	}

	.marketplace-card .grey-text {
		margin-bottom: 16px;
	}

	.marketplace-price {
		margin-bottom: 16px;
	}

	.marketplace-price-value {
		font-size: 28px;
		letter-spacing: -1.2px;
	}

	.marketplace-price-period {
		font-size: 14px;
	}
}
