/**
 * SRZ Kampane - Frontend CSS
 *
 * Štýly pre všetky 4 typy zobrazenia kampaní.
 *
 * @package Srz_Rada
 * @since 1.0.0
 */

/* ═══════════════════════════════════════════
   SPOLOČNÉ
   ═══════════════════════════════════════════ */

.srz-kampan {
	box-sizing: border-box;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	line-height: 1.5;
}

.srz-kampan *,
.srz-kampan *::before,
.srz-kampan *::after {
	box-sizing: border-box;
}

.srz-kampan-btn {
	display: inline-block;
	padding: 10px 24px;
	background: #fff;
	color: #018763;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s, transform 0.2s;
	white-space: nowrap;
}

.srz-kampan-btn:hover {
	background: #f0f0f0;
	transform: translateY(-1px);
	text-decoration: none;
	color: #018763;
}

.srz-kampan-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s;
	padding: 0;
	line-height: 1;
	color: inherit;
}

.srz-kampan-close:hover {
	opacity: 1;
}

/* ═══════════════════════════════════════════
   NOTIFICATION BAR
   ═══════════════════════════════════════════ */

.srz-kampan-bar {
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
}

.srz-kampan-bar-inner {
	max-width: 80%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 12px 16px;
}

.srz-kampan-bar-content {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.srz-kampan-bar-title {
	font-size: 14px;
	font-weight: 700;
}

.srz-kampan-bar-text {
	font-size: 14px;
}

.srz-kampan-bar-btn {
	display: inline-block;
	padding: 6px 18px;
	background: #fff;
	border-radius: 30px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
	white-space: nowrap;
}

.srz-kampan-bar-btn:hover {
	background: #f0f0f0;
	text-decoration: none;
}

.srz-kampan-bar .srz-kampan-close {
	font-size: 20px;
	flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   MODAL (POPUP)
   ═══════════════════════════════════════════ */

.srz-kampan-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.srz-kampan-modal {
	position: relative;
	max-width: 500px;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.srz-kampan-modal .srz-kampan-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	background: rgba(0, 0, 0, 0.3);
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

.srz-kampan-modal-image {
	width: 100%;
	max-height: 250px;
	overflow: hidden;
}

.srz-kampan-modal-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.srz-kampan-modal-body {
	padding: 28px;
}

.srz-kampan-modal-title {
	margin: 0 0 10px 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.srz-kampan-modal-text {
	margin: 0 0 20px 0;
	font-size: 15px;
	opacity: 0.9;
	line-height: 1.6;
}

/* ═══════════════════════════════════════════
   SLIDE-IN PANEL
   ═══════════════════════════════════════════ */

.srz-kampan-slidein {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 9000;
	max-width: 380px;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.srz-kampan-slidein .srz-kampan-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	background: rgba(0, 0, 0, 0.2);
	color: #fff;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

.srz-kampan-slidein-image {
	width: 100%;
	max-height: 160px;
	overflow: hidden;
}

.srz-kampan-slidein-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.srz-kampan-slidein-body {
	padding: 20px;
}

.srz-kampan-slidein-title {
	margin: 0 0 8px 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.srz-kampan-slidein-text {
	margin: 0 0 14px 0;
	font-size: 13px;
	opacity: 0.9;
	line-height: 1.5;
}

.srz-kampan-slidein .srz-kampan-btn {
	font-size: 13px;
	padding: 8px 20px;
}

/* ═══════════════════════════════════════════
   BOTTOM BAR
   ═══════════════════════════════════════════ */

.srz-kampan-bottombar {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
}

.srz-kampan-bottombar-inner {
	max-width: 80%;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 12px 16px;
}

.srz-kampan-bottombar .srz-kampan-close {
	font-size: 20px;
	flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   QUICK LINK CARD
   ═══════════════════════════════════════════ */

.srz-kampan-quicklink.wp-block-column {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
}

/* Karta ako link (celá klikateľná) */
a.srz-kampan-quicklink {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

a.srz-kampan-quicklink:hover {
	text-decoration: none;
	opacity: 0.9;
}

a.srz-kampan-quicklink figure {
	margin: 0;
}

a.srz-kampan-quicklink h3 {
	color: var(--wp--preset--color--foreground);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ═══════════════════════════════════════════
   INLINE CARD
   ═══════════════════════════════════════════ */

.srz-kampan-inline {
	max-width: 80%;
	margin: 24px auto;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.srz-kampan-inline-inner {
	display: flex;
	align-items: stretch;
}

.srz-kampan-inline-image {
	flex: 0 0 280px;
	max-width: 280px;
	overflow: hidden;
}

.srz-kampan-inline-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.srz-kampan-inline-content {
	flex: 1;
	padding: 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.srz-kampan-inline-title {
	margin: 0 0 10px 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

.srz-kampan-inline-text {
	margin: 0 0 18px 0;
	font-size: 15px;
	opacity: 0.9;
	line-height: 1.6;
}

/* ═══════════════════════════════════════════
   ANIMÁCIE — KEYFRAMES
   ═══════════════════════════════════════════ */

@keyframes srz-kampan-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.04); }
}

@keyframes srz-kampan-glow {
	0%, 100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.1); }
	50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.2); }
}

@keyframes srz-kampan-shake {
	0%, 100% { transform: translateX(0); }
	10%, 50%, 90% { transform: translateX(-4px); }
	30%, 70% { transform: translateX(4px); }
	20%, 60% { transform: rotate(-1deg); }
	40%, 80% { transform: rotate(1deg); }
}

@keyframes srz-kampan-rubber {
	0% { transform: scale(1); }
	30% { transform: scaleX(1.2) scaleY(0.8); }
	40% { transform: scaleX(0.8) scaleY(1.2); }
	50% { transform: scaleX(1.1) scaleY(0.9); }
	65% { transform: scaleX(0.95) scaleY(1.05); }
	75% { transform: scaleX(1.03) scaleY(0.97); }
	100% { transform: scale(1); }
}

@keyframes srz-kampan-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-6px); }
}

/* ═══════════════════════════════════════════
   RESPONZÍVNE
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
	/* Notification Bar + Bottom Bar */
	.srz-kampan-bar-inner,
	.srz-kampan-bottombar-inner {
		max-width: 95%;
		flex-wrap: wrap;
		gap: 8px;
		padding: 10px 12px;
	}

	.srz-kampan-bar-content {
		flex-direction: column;
		text-align: center;
		gap: 4px;
	}

	.srz-kampan-bar-title,
	.srz-kampan-bar-text {
		font-size: 13px;
	}

	/* Modal */
	.srz-kampan-modal {
		max-width: 90vw;
	}

	.srz-kampan-modal-body {
		padding: 20px;
	}

	.srz-kampan-modal-title {
		font-size: 18px;
	}

	/* Slide-in */
	.srz-kampan-slidein {
		max-width: none;
		left: 12px;
		right: 12px;
		bottom: 12px;
		border-radius: 12px;
	}

	.srz-kampan-slidein-body {
		padding: 14px;
	}

	/* Inline Card */
	.srz-kampan-inline {
		max-width: 95%;
		margin: 16px auto;
	}

	.srz-kampan-inline-inner {
		flex-direction: column;
	}

	.srz-kampan-inline-image {
		flex: none;
		max-width: 100%;
		max-height: 180px;
	}

	.srz-kampan-inline-content {
		padding: 20px;
	}

	.srz-kampan-inline-title {
		font-size: 18px;
	}
}
