/**
 * EZ Amazon Deals Pro — Modern Zero-JS Frontend Stylesheet
 */

:root {
	--ez-bg-card: #ffffff;
	--ez-border: #e2e8f0;
	--ez-border-hover: #cbd5e1;
	--ez-text-main: #0f172a;
	--ez-text-muted: #64748b;
	--ez-accent: #ff9900;
	--ez-accent-hover: #f08804;
	--ez-accent-text: #111827;
	--ez-badge-bg: #dc2626;
	--ez-badge-text: #ffffff;
	--ez-save-bg: #ecfdf5;
	--ez-save-text: #047857;
	--ez-expired-bg: #fef2f2;
	--ez-expired-border: #fca5a5;
	--ez-expired-text: #991b1b;
	--ez-radius: 14px;
	--ez-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
	--ez-shadow-md: 0 12px 24px -6px rgba(15, 23, 42, 0.10), 0 4px 10px -3px rgba(15, 23, 42, 0.05);
}

/* Grid Container */
.ez-deals-wrap {
	margin: 1.75rem 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

.ez-deals-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
}

/* Deal Card */
.ez-deal-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--ez-bg-card);
	border: 1px solid var(--ez-border);
	border-radius: var(--ez-radius);
	box-shadow: var(--ez-shadow-sm);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ez-deal-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ez-shadow-md);
	border-color: var(--ez-border-hover);
}

/* Badges */
.ez-discount-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: var(--ez-badge-text);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	padding: 4px 10px;
	border-radius: 999px;
	box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

.ez-rating-pill {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(4px);
	border: 1px solid var(--ez-border);
	color: #1e293b;
	font-size: 0.76rem;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.ez-rating-star {
	color: #f59e0b;
}

/* Image Box */
.ez-card-media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 215px;
	padding: 1.25rem;
	background: #ffffff;
	border-bottom: 1px solid #f1f5f9;
	text-decoration: none;
}

.ez-card-media img {
	max-width: 100%;
	max-height: 175px;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform 0.25s ease;
}

.ez-deal-card:hover .ez-card-media img {
	transform: scale(1.04);
}

/* Card Body */
.ez-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.15rem 1.25rem 1.25rem;
}

.ez-card-niche {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #4f46e5;
	margin-bottom: 0.4rem;
	text-decoration: none;
}

.ez-card-title {
	margin: 0 0 0.85rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.42;
	color: var(--ez-text-main);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ez-card-title a {
	color: inherit;
	text-decoration: none;
}

.ez-card-title a:hover {
	color: #4f46e5;
}

/* Pricing Row */
.ez-card-pricing {
	margin-top: auto;
	padding-top: 0.5rem;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 0.95rem;
}

.ez-price-current {
	font-size: 1.38rem;
	font-weight: 800;
	color: var(--ez-text-main);
	letter-spacing: -0.02em;
}

.ez-price-original {
	font-size: 0.9rem;
	color: #94a3b8;
	text-decoration: line-through;
}

.ez-price-savings {
	font-size: 0.74rem;
	font-weight: 700;
	background: var(--ez-save-bg);
	color: var(--ez-save-text);
	padding: 2px 8px;
	border-radius: 6px;
}

/* CTA Button */
.ez-deal-btn,
a.ez-deal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	width: 100%;
	box-sizing: border-box;
	padding: 0.72rem 1rem;
	background: linear-gradient(180deg, #ffad33 0%, #ff9900 100%);
	color: var(--ez-accent-text) !important;
	font-size: 0.92rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
	border: 1px solid #e68a00;
	border-radius: 10px;
	box-shadow: 0 2px 4px rgba(255, 153, 0, 0.22);
	transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.ez-deal-btn:hover,
a.ez-deal-btn:hover {
	background: linear-gradient(180deg, #ff9900 0%, #e68a00 100%);
	box-shadow: 0 4px 10px rgba(240, 136, 4, 0.32);
	transform: translateY(-1px);
}

.ez-deals-disclaimer {
	margin-top: 1rem;
	font-size: 0.76rem;
	color: var(--ez-text-muted);
	text-align: center;
}

.ez-deals-empty {
	padding: 2rem;
	text-align: center;
	background: #f8fafc;
	border: 1px dashed var(--ez-border);
	border-radius: var(--ez-radius);
	color: var(--ez-text-muted);
}

/* Single Deal Hero & Expired Alert Banner */
.ez-expired-banner {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	padding: 1.1rem 1.35rem;
	margin: 0 0 1.5rem;
	background: var(--ez-expired-bg);
	border: 1px solid var(--ez-expired-border);
	border-left: 5px solid #dc2626;
	border-radius: 12px;
	color: var(--ez-expired-text);
}

.ez-expired-icon {
	font-size: 1.5rem;
	line-height: 1;
}

.ez-expired-banner strong {
	display: block;
	font-size: 1.05rem;
	margin-bottom: 0.2rem;
}

.ez-expired-banner p {
	margin: 0;
	font-size: 0.9rem;
	color: #7f1d1d;
}

.ez-single-deal-box {
	display: grid;
	grid-template-columns: minmax(220px, 320px) 1fr;
	gap: 2rem;
	padding: 1.75rem;
	margin: 0 0 2rem;
	background: #ffffff;
	border: 1px solid var(--ez-border);
	border-radius: 16px;
	box-shadow: var(--ez-shadow-sm);
	align-items: center;
}

.ez-single-deal-media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff;
	padding: 1rem;
	border: 1px solid #f1f5f9;
	border-radius: 12px;
	min-height: 240px;
}

.ez-single-deal-media img {
	max-height: 260px;
	width: auto;
	object-fit: contain;
}

.ez-single-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.85rem;
	font-size: 0.82rem;
	color: var(--ez-text-muted);
}

.ez-single-price-block {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1rem 0 1.25rem;
}

.ez-single-price-current {
	font-size: 2rem;
	font-weight: 800;
	color: var(--ez-text-main);
}

.ez-single-price-orig {
	font-size: 1.1rem;
	color: #94a3b8;
	text-decoration: line-through;
}

.ez-single-cta-wrap {
	max-width: 320px;
}

.ez-deal-btn.is-expired {
	background: #f1f5f9;
	border-color: #cbd5e1;
	color: #475569 !important;
	box-shadow: none;
}

.ez-single-checked {
	margin-top: 0.85rem;
	font-size: 0.76rem;
	color: var(--ez-text-muted);
}

.ez-related-deals-section {
	margin: 2.5rem 0 1.5rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--ez-border);
}

.ez-related-deals-heading {
	margin: 0 0 1.15rem;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--ez-text-main);
}

/* AI Blog Comparison Table & Zero-JS FAQ Accordion */
.ez-affiliate-notice {
	padding: 0.75rem 1rem;
	background: #f8fafc;
	border-left: 3px solid #94a3b8;
	border-radius: 6px;
	font-size: 0.84rem;
	color: #475569;
}

.ez-comparison-wrapper {
	overflow-x: auto;
	margin: 1.5rem 0 2rem;
	border: 1px solid var(--ez-border);
	border-radius: 12px;
	box-shadow: var(--ez-shadow-sm);
}

.ez-comparison-table {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	font-size: 0.92rem;
}

.ez-comparison-table th {
	background: #f8fafc;
	color: #334155;
	font-weight: 700;
	text-align: left;
	padding: 0.9rem 1rem;
	border-bottom: 1px solid var(--ez-border);
	white-space: nowrap;
}

.ez-comparison-table td {
	padding: 0.9rem 1rem;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}

.ez-comparison-table tr:last-child td {
	border-bottom: none;
}

.ez-comp-product {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 220px;
}

.ez-comp-thumb {
	width: 52px;
	height: 52px;
	object-fit: contain;
	border-radius: 6px;
	border: 1px solid #f1f5f9;
	flex-shrink: 0;
}

.ez-comp-title {
	font-weight: 600;
	color: var(--ez-text-main);
	text-decoration: none;
}

.ez-comp-badge {
	display: inline-block;
	background: #fee2e2;
	color: #b91c1c;
	font-weight: 700;
	font-size: 0.78rem;
	padding: 2px 8px;
	border-radius: 999px;
}

.ez-comp-price del {
	color: #94a3b8;
	font-size: 0.82rem;
	margin-left: 4px;
}

.ez-comp-btn,
a.ez-comp-btn,
a.ez-inline-cta {
	display: inline-block;
	padding: 0.48rem 0.9rem;
	background: #ff9900;
	color: #111827 !important;
	font-weight: 700;
	font-size: 0.82rem;
	border-radius: 8px;
	text-decoration: none !important;
	white-space: nowrap;
}

.ez-faq-section {
	margin: 2.25rem 0;
}

.ez-faq-item {
	border: 1px solid var(--ez-border);
	border-radius: 10px;
	margin-bottom: 0.75rem;
	background: #ffffff;
	overflow: hidden;
}

.ez-faq-item summary {
	padding: 1rem 1.15rem;
	font-weight: 600;
	color: var(--ez-text-main);
	cursor: pointer;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ez-faq-item summary::-webkit-details-marker {
	display: none;
}

.ez-faq-item summary::after {
	content: "+";
	font-size: 1.2rem;
	font-weight: 700;
	color: #64748b;
}

.ez-faq-item[open] summary::after {
	content: "−";
	color: #4f46e5;
}

.ez-faq-answer {
	padding: 0 1.15rem 1rem;
	color: #475569;
	border-top: 1px solid #f1f5f9;
}

@media (max-width: 768px) {
	.ez-single-deal-box {
		grid-template-columns: 1fr;
		gap: 1.25rem;
		padding: 1.25rem;
	}
	.ez-single-cta-wrap {
		max-width: 100%;
	}
}
