/**
 * BookCashback AI — Gift Finder Frontend Stylesheet
 * Version: 1.0.0
 */

.bcai-gf-container {
	max-width: 1000px;
	margin: 24px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	box-sizing: border-box;
}

.bcai-gf-container * {
	box-sizing: border-box;
}

/* Hero Section */
.bcai-gf-hero {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	border-radius: 16px;
	padding: 36px 30px;
	color: #ffffff;
	box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.2);
	margin-bottom: 30px;
	text-align: center;
}

.bcai-gf-header {
	margin-bottom: 24px;
}

.bcai-gf-icon {
	font-size: 40px;
	line-height: 1;
	margin-bottom: 8px;
}

.bcai-gf-title {
	margin: 0 0 6px 0;
	font-size: 28px;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: -0.5px;
}

.bcai-gf-subtitle {
	margin: 0;
	font-size: 15px;
	color: #94a3b8;
}

/* Input Form */
.bcai-gf-form {
	max-width: 700px;
	margin: 0 auto;
}

.bcai-gf-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	background: #ffffff;
	border-radius: 50px;
	padding: 6px 6px 6px 20px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	transition: all 0.2s ease;
}

.bcai-gf-input-wrapper:focus-within {
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5), 0 4px 20px rgba(0, 0, 0, 0.2);
}

.bcai-gf-input-icon {
	font-size: 18px;
	margin-right: 12px;
	color: #64748b;
}

.bcai-gf-input {
	flex-grow: 1;
	border: none !important;
	outline: none !important;
	background: transparent !important;
	font-size: 16px;
	color: #0f172a;
	padding: 10px 0 !important;
	box-shadow: none !important;
}

.bcai-gf-input::placeholder {
	color: #94a3b8;
}

.bcai-gf-btn {
	background: #2563eb;
	color: #ffffff !important;
	border: none;
	border-radius: 40px;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.1s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
}

.bcai-gf-btn:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
}

.bcai-gf-btn:active {
	transform: translateY(0);
}

.bcai-gf-btn:disabled {
	background: #64748b;
	cursor: not-allowed;
}

/* Quick Chips */
.bcai-gf-quick-chips {
	margin-top: 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.chips-label {
	font-size: 13px;
	color: #94a3b8;
}

.gf-chip {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #e2e8f0;
	border-radius: 20px;
	padding: 5px 12px;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.gf-chip:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.3);
}

/* Loading Animation & Skeletons */
.bcai-gf-loading {
	text-align: center;
	padding: 40px 20px;
}

.bcai-gf-pulse-icon {
	font-size: 48px;
	animation: bcai-pulse 1.5s infinite;
	margin-bottom: 12px;
}

@keyframes bcai-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.2); opacity: 0.7; }
}

.bcai-gf-loading-text {
	font-size: 16px;
	color: #475569;
	font-weight: 500;
	margin-bottom: 24px;
}

.bcai-gf-skeleton-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.bcai-gf-skeleton-card {
	background: #f1f5f9;
	height: 340px;
	border-radius: 12px;
	animation: bcai-shimmer 1.5s infinite;
}

@keyframes bcai-shimmer {
	0% { opacity: 0.6; }
	50% { opacity: 0.9; }
	100% { opacity: 0.6; }
}

/* Results Header */
.bcai-gf-results-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 10px;
}

.bcai-gf-results-heading {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
}

.bcai-gf-intent-pill {
	background: #e0f2fe;
	color: #0369a1;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

/* Product Cards Grid */
.bcai-gf-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 24px;
}

.bcai-gf-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	transition: all 0.25s ease;
	position: relative;
}

.bcai-gf-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.1);
	border-color: #cbd5e1;
}

.bcai-gf-card-top {
	position: relative;
	background: #f8fafc;
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
}

.bcai-gf-img {
	max-height: 160px;
	max-width: 100%;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.bcai-gf-card:hover .bcai-gf-img {
	transform: scale(1.04);
}

.bcai-gf-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: #2563eb;
	color: #ffffff;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.badge-best { background: #16a34a; }
.badge-value { background: #d97706; }
.badge-popular { background: #2563eb; }

.bcai-gf-match-pill {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(15, 23, 42, 0.85);
	color: #38bdf8;
	padding: 4px 8px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 700;
}

.bcai-gf-card-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.bcai-gf-card-title {
	margin: 0 0 10px 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #1e293b;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.bcai-gf-price-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 12px;
}

.bcai-gf-current-price {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
}

.bcai-gf-orig-price {
	font-size: 14px;
	color: #94a3b8;
	text-decoration: line-through;
}

.bcai-gf-discount-badge {
	background: #dcfce7;
	color: #15803d;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
}

.bcai-gf-store-row {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #64748b;
	margin-bottom: 12px;
}

.bcai-gf-store-pill {
	background: #f1f5f9;
	color: #334155;
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 12px;
}

.bcai-gf-reason-box {
	background: #f8fafc;
	border-left: 3px solid #3b82f6;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 12px;
	color: #475569;
	line-height: 1.4;
	margin-bottom: 16px;
	flex-grow: 1;
}

/* Multi-Store Comparison Offers (Part 10) */
.bcai-gf-comparison-section {
	margin-bottom: 16px;
	border-top: 1px dashed #e2e8f0;
	padding-top: 10px;
}

.bcai-gf-comp-title {
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 700;
	color: #64748b;
	margin-bottom: 6px;
}

.bcai-gf-comp-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.bcai-gf-comp-chip {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 3px 8px;
	font-size: 11px;
	text-decoration: none !important;
	color: #334155 !important;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: all 0.15s ease;
}

.bcai-gf-comp-chip:hover {
	border-color: #2563eb;
	color: #2563eb !important;
	background: #eff6ff;
}

/* CTA Button */
.bcai-gf-cta-btn {
	background: #16a34a;
	color: #ffffff !important;
	text-align: center;
	padding: 12px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
	display: block;
	transition: background 0.2s ease;
}

.bcai-gf-cta-btn:hover {
	background: #15803d;
}

/* Empty & Suggestion States */
.bcai-gf-empty {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 40px 20px;
	text-align: center;
}

.bcai-gf-empty-icon {
	font-size: 40px;
	margin-bottom: 12px;
}

.bcai-gf-empty h3 {
	margin: 0 0 16px 0;
	font-size: 18px;
	color: #334155;
}

.bcai-gf-suggested-list,
.bcai-gf-empty-suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-top: 12px;
}

.bcai-gf-filter-suggestions {
	margin-top: 30px;
	background: #f8fafc;
	border-radius: 12px;
	padding: 20px;
	text-align: center;
}

.bcai-gf-filter-suggestions h4 {
	margin: 0 0 10px 0;
	font-size: 14px;
	color: #475569;
}

.gf-sug-chip {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #2563eb;
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.gf-sug-chip:hover {
	background: #eff6ff;
	border-color: #93c5fd;
}

@media (max-width: 640px) {
	.bcai-gf-hero { padding: 24px 16px; }
	.bcai-gf-input-wrapper { flex-direction: column; border-radius: 16px; padding: 12px; }
	.bcai-gf-input { width: 100%; text-align: center; }
	.bcai-gf-btn { width: 100%; border-radius: 8px; margin-top: 8px; }
	.bcai-gf-cards-grid { grid-template-columns: 1fr; }
}
