/* ===================================
   MY PROMPTS PAGE - SHOP GRID STYLE
   =================================== */

/* Hide old modal styles */
.woocommerce-account .thaimmo-my-prompts {
	display: none !important;
}

/* Override default My Prompts styles */
.woocommerce-account .custom-my-prompts-section {
	max-width: 1290px;
	margin: 0 auto;
	padding: 0 20px;
}

/* My Prompts Header */
.woocommerce-account .my-prompts-header {
	margin-bottom: 30px;
}

.woocommerce-account .custom-my-prompts-section h3 {
	font-size: 32px;
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 20px 0;
	background: linear-gradient(122deg, #00d4ff, #7c3aed);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* Search Box */
.woocommerce-account .my-prompts-search-wrapper {
	margin-bottom: 10px;
}

.woocommerce-account .my-prompts-search-box {
	position: relative;
	max-width: 400px;
}

.woocommerce-account .my-prompts-search-box .search-icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #6b7280;
	pointer-events: none;
}

.woocommerce-account #my-prompts-search {
	width: 100%;
	padding: 12px 16px 12px 48px;
	background: transparent;
	border: 1px solid #2d2d45;
	border-radius: 8px;
	color: #0d6efd;
	font-size: 15px;
	transition: all 0.3s ease;
}

.woocommerce-account #my-prompts-search:focus {
	outline: none;
	border-color: #7c3aed;
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.woocommerce-account #my-prompts-search::placeholder {
	color: #6b7280;
}

/* Products Grid - Match Shop Page */
.woocommerce-account .prompts-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin-bottom: 40px;
	list-style: none;
	padding: 0;
}

/* Product Card - Match Shop Page */
.woocommerce-account .prompt-card {
	background: transparent;
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
	list-style: none;
	border: none !important;
	outline: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.woocommerce-account .prompt-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.woocommerce-account .prompt-card * {
	box-sizing: border-box;
}

.woocommerce-account .product-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
	border: none !important;
	outline: none !important;
}

.woocommerce-account .product-card-image {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #1a1a1a;
	border-radius: 12px;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.woocommerce-account .product-card-image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	transition: all 0.5s ease;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
}

.woocommerce-account .prompt-card:hover .product-card-image img {
	transform: scale(1.08);
	opacity: 0.75;
}

/* Overlay with gradient */
.woocommerce-account .product-card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 10px;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.5) 0%,
		rgba(0, 0, 0, 0.1) 30%,
		rgba(0, 0, 0, 0.1) 70%,
		rgba(0, 0, 0, 0.6) 100%
	);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.3s ease;
	z-index: 2;
	font-family: Finlandica, system-ui, sans-serif;
}

.woocommerce-account .prompt-card:hover .product-card-overlay {
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.65) 0%,
		rgba(0, 0, 0, 0.2) 30%,
		rgba(0, 0, 0, 0.2) 70%,
		rgba(0, 0, 0, 0.75) 100%
	);
}

/* Owned Badge (Top Right Corner) */
.woocommerce-account .product-owned-badge {
	position: absolute;
	top: 19px;
	right: 10px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	padding: 2px 5px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	line-height: 1.2;
	z-index: 3;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 1);
}

.woocommerce-account .product-owned-badge svg {
	width: 10px;
	height: 10px;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 1));
}

/* Overlay Info Rows */
.woocommerce-account .product-info-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

/* Row 1: Category & Rating - TOP of overlay */
.woocommerce-account .product-meta-row {
	min-height: auto;
	margin-bottom: 0;
}

.woocommerce-account .product-category-info .product-category-badge {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
	padding: 2px 5px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	display: inline-block;
	line-height: 1.2;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 1);
}

.woocommerce-account .product-rating-info .product-rating-badge {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);
	padding: 4px 10px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	gap: 5px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.woocommerce-account .product-rating-info .rating-star {
	color: #ffd700;
	font-size: 14px;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 1));
}

.woocommerce-account .product-rating-info .rating-value {
	color: #ffffff;
	font-weight: 700;
	font-size: 14px;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 1);
}

/* Row 2: Title & Price - BOTTOM of overlay */
.woocommerce-account .product-main-row {
	align-items: flex-end;
	gap: 16px;
}

.woocommerce-account .prompt-card .product-card-title {
	margin: 0 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	flex: 1 !important;
	color: #ffffff !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 1) !important;
	background: none !important;
	-webkit-background-clip: unset !important;
	-webkit-text-fill-color: #ffffff !important;
	background-clip: unset !important;
}

.woocommerce-account .product-main-row .product-price {
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 700;
	color: #ffffff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 1);
	white-space: nowrap;
}

.woocommerce-account .product-price .free-price {
	color: #10b981;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 13px;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 1);
}

.woocommerce-account .product-price .woocommerce-Price-amount {
	color: inherit;
	font-size: inherit;
}

/* Empty State */
.woocommerce-account .no-prompts-message {
	text-align: center;
	padding: 60px 20px;
	color: #9ca3af;
	font-size: 16px;
}

/* Loading Indicator */
.woocommerce-account .my-prompts-loading {
	text-align: center;
	padding: 40px 20px;
	color: #9ca3af;
}

.woocommerce-account .loading-spinner {
	width: 40px;
	height: 40px;
	margin: 0 auto 15px;
	border: 4px solid #2d2d45;
	border-top-color: #7c3aed;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* No Results Message */
.woocommerce-account .my-prompts-no-results {
	text-align: center;
	padding: 60px 20px;
	color: #9ca3af;
	font-size: 16px;
}

/* Hidden State */
.woocommerce-account .prompt-card.hidden {
	display: none;
}

.woocommerce-account .no-prompts-message p {
	margin: 0 0 20px 0;
	font-size: 18px;
	color: #ffffff;
}

.woocommerce-account .no-prompts-message a {
	display: inline-block;
	padding: 12px 32px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.woocommerce-account .no-prompts-message a:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
	.woocommerce-account .prompts-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}
}

@media (max-width: 768px) {
	.woocommerce-account .prompts-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.woocommerce-account .product-card-title {
		font-size: 12px;
	}

	.woocommerce-account .product-main-row .product-price {
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.woocommerce-account .prompts-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.woocommerce-account .custom-my-prompts-section h3 {
		font-size: 24px;
		margin-bottom: 20px;
	}
}
