/*
Theme Name: Kuponiq
Theme URI: https://kuponiq.ru
Author: Kuponiq Team
Author URI: https://kuponiq.ru
Description: Custom theme for kuponiq.ru
Version: 1.0.0
Text Domain: kuponiq
*/
/* Основной контент статьи */
.entry-content > * {
	margin-bottom: 1.25rem; /* ~20px */
}

/* Заголовки */
.entry-content h1,
.entry-content h2,
.entry-content h3 {
	margin-top: 2rem;
	margin-bottom: 1rem;
}

/* Абзацы */
.entry-content p {
	margin-bottom: 1rem;
}

/* Списки */
.entry-content ul,
.entry-content ol {
	margin-left: 1.5rem;
	margin-bottom: 1rem;
}

/* Картинки */
.entry-content img {
	margin: 1.5rem 0;
}
/* ========== Kuponiq Pagination (global) ========== */

.navigation.pagination,
.nav-links,
.page-numbers {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 32px 5px;
	flex-wrap: wrap;
}

/* Ссылки и span */
.page-numbers,
.nav-links a,
.nav-links span {
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;

	font-size: 14px;
	font-weight: 600;
	text-decoration: none;

	color: #0f172a; /* тёмно-синий */
	background-color: #ffffff;
	border: 1px solid #dbeafe; /* голубая рамка */
	border-radius: 12px;

	transition: all 0.2s ease;
}

/* Hover */
.page-numbers:hover,
.nav-links a:hover {
	background-color: #e0f2fe; /* светло-голубой */
	border-color: #38bdf8;
	color: #0369a1;
}

/* Активная страница */
.page-numbers.current,
.nav-links .current {
	background-color: #0ea5e9; /* голубой */
	border-color: #0ea5e9;
	color: #ffffff;
	cursor: default;
}

/* Prev / Next */
.page-numbers.prev,
.page-numbers.next {
	font-weight: 700;
	padding: 0 18px;
}

/* Точки ... */
.page-numbers.dots {
	border-style: dashed;
	color: #94a3b8;
	background: transparent;
	cursor: default;
}

/* Disabled (если span вместо ссылки) */
.nav-links span.prev,
.nav-links span.next {
	opacity: 0.45;
	cursor: not-allowed;
}

/* Мобилка */
@media (max-width: 480px) {
	.page-numbers,
	.nav-links a,
	.nav-links span {
		min-width: 34px;
		height: 34px;
		padding: 0 10px;
		border-radius: 10px;
		font-size: 13px;
	}
}

/* ===== Kuponiq Modal (React-like) ===== */
/* Блокировка скролла страницы */
html.kuponiq-modal-open,
html.kuponiq-modal-open body {
	overflow: hidden;
}

/* ===== Overlay ===== */
.kuponiq-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.kuponiq-modal.hidden {
	display: none;
}

.kuponiq-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
}

/* ===== Panel ===== */
.kuponiq-modal__panel {
	position: relative;
	background: #ffffff;
	width: 100%;
	max-width: 420px;
	margin: 16px;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	animation: kuponiqModalIn 0.25s ease-out;
	overflow: hidden;
}

/* ===== Header ===== */
.kuponiq-modal__header {
	padding: 20px 20px 12px;
	border-bottom: 1px solid #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.kuponiq-modal__title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
}

.kuponiq-modal__close {
	border: none;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
}

.kuponiq-modal__close:hover {
	color: #0f172a;
}

/* ===== Logo ===== */
.kuponiq-modal__logo {
	display: flex;
	justify-content: center;
	padding: 16px 20px 0;
}

.kuponiq-modal__logo img {
	max-width: 120px;
	max-height: 120px;
	object-fit: contain;
}

/* ===== Badge ===== */
.kuponiq-modal__badge {
	margin: 12px auto 0;
	width: fit-content;
	background: #ef4444;
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
}

/* ===== Description ===== */
.kuponiq-modal__desc {
	padding: 16px 20px 0;
	font-size: 14px;
	line-height: 1.55;
	color: #334155;
	text-align: center;
}

/* ===== Code box ===== */
.kuponiq-modal__codebox {
	padding: 20px;
	text-align: center;
}

.kuponiq-modal__label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 8px;
}

.kuponiq-modal__code {
	border: 2px dashed #cbd5f5;
	border-radius: 12px;
	padding: 16px 12px;
	background: #f8fafc;
}

.kuponiq-code-text {
	display: block;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 1px;
	color: #0f172a;
	word-break: break-all;
}

.kuponiq-copy {
	margin-top: 10px;
	background: #06b6d4;
	color: #ffffff;
	border: none;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.kuponiq-copy:hover {
	background: #0891b2;
}

/* Если нет промокода */
.kuponiq-modal__empty {
	font-size: 14px;
	color: #475569;
}

/* ===== Date ===== */
.kuponiq-modal__date {
	padding: 0 20px 12px;
	text-align: center;
	font-size: 13px;
	color: #475569;
}

/* ===== Actions ===== */
.kuponiq-modal__actions {
	padding: 16px 20px 20px;
	display: grid;
	gap: 10px;
}

.kuponiq-modal__link {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(90deg, #06b6d4, #3b82f6);
	color: #ffffff;
	font-weight: 700;
	text-decoration: none;
	padding: 12px 16px;
	border-radius: 12px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kuponiq-modal__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 20px rgba(6, 182, 212, 0.35);
}

.kuponiq-modal__btn {
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #0f172a;
	padding: 11px 16px;
	border-radius: 12px;
	font-weight: 600;
	cursor: pointer;
}

.kuponiq-modal__btn:hover {
	background: #f8fafc;
}

/* ===== Animation ===== */
@keyframes kuponiqModalIn {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
	.kuponiq-modal__panel {
		max-width: 100%;
		border-radius: 14px;
	}

	.kuponiq-code-text {
		font-size: 20px;
	}
}
