/**
 * Coupon Manager - Public Styles
 *
 * @package CouponManager
 * @since   1.0.0
 */

/* ── Card Hover ───────────────────────────────── */
.ccm-coupon-card:hover, .ccm-vendor-card:hover {
	box-shadow: 0 6px 24px rgba(0,0,0,0.08) !important;
}

/* ── Show Code Button — Hover Animation ───────── */
.ccm-show-btn:hover {
	background: #1557a0 !important;
	transform: rotateY(8deg) scale(1.03);
	box-shadow: 0 4px 14px rgba(30,108,193,0.3);
}
.ccm-show-btn {
	transition: all 0.3s ease !important;
	transform-origin: left center;
}

/* ── Get Deal Button — Hover Animation ────────── */
.ccm-deal-btn:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 6px 18px rgba(0,0,0,0.15);
	filter: brightness(1.1);
}
.ccm-deal-btn {
	transition: all 0.3s ease !important;
}

/* ── Copy Button — Hover ──────────────────────── */
.ccm-copy-btn:hover {
	background: #1557a0 !important;
	transform: scale(1.05);
}
.ccm-copy-btn {
	transition: all 0.2s ease !important;
}

/* ── Tooltips (black stripe above button) ─────── */
.ccm-show-btn,
.ccm-deal-btn,
.ccm-copy-btn {
	position: relative;
}
.ccm-show-btn:hover::before,
.ccm-deal-btn:hover::before,
.ccm-copy-btn:hover::before {
	content: attr(title);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: #1e293b;
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	padding: 6px 12px;
	border-radius: 6px;
	white-space: nowrap;
	pointer-events: none;
	z-index: 100;
	letter-spacing: 0.2px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	animation: ccmTooltipIn 0.2s ease;
}
.ccm-show-btn:hover::after,
.ccm-deal-btn:hover::after,
.ccm-copy-btn:hover::after {
	content: '';
	position: absolute;
	bottom: calc(100% + 2px);
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: #1e293b;
	pointer-events: none;
	z-index: 100;
	animation: ccmTooltipIn 0.2s ease;
}

@keyframes ccmTooltipIn {
	from { opacity: 0; transform: translateX(-50%) translateY(4px); }
	to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── LIST → vertical on mobile ────────────────── */
@media screen and (max-width: 720px) {
	.ccm-card-list {
		flex-direction: column !important;
	}
	.ccm-card-list > div:first-child {
		width: 100% !important;
		min-width: unset !important;
		height: 180px !important;
	}
	.ccm-card-list > div:last-child {
		align-items: stretch !important;
		padding: 0 14px 14px !important;
		min-width: unset !important;
	}
}

/* ── GRID responsive ──────────────────────────── */
@media screen and (max-width: 900px) {
	.ccm-grid-wrap { grid-template-columns: repeat(2,1fr) !important; }
}
@media screen and (max-width: 540px) {
	.ccm-grid-wrap { grid-template-columns: 1fr !important; }
}

/* ── COMPACT responsive ───────────────────────── */
@media screen and (max-width: 600px) {
	.ccm-card-compact { flex-wrap: wrap !important; }
}
