/**
 * Styles frontend du bloc Gutenberg PX3k Stickers Studio.
 *
 * Toutes les classes utilisent le préfixe px3ksg- pour éviter les conflits
 * avec les thèmes WordPress et les autres plugins.
 *
 * @package PX3k_StickersStudio
 */

/* ─────────────────────────────────────────────
   Wrapper du bloc
───────────────────────────────────────────── */

.px3ksg-block-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem 0;
}

/* ─────────────────────────────────────────────
   Bouton "Créer un sticker"
───────────────────────────────────────────── */

.px3ksg-open-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	background: linear-gradient(135deg, #6366f1, #4f46e5);
	color: #ffffff;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	border: none;
	border-radius: 0.5rem;
	cursor: pointer;
	box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	text-decoration: none;
	line-height: 1.4;
}

.px3ksg-open-btn:hover {
	background: linear-gradient(135deg, #818cf8, #6366f1);
	box-shadow: 0 6px 32px rgba(99, 102, 241, 0.5);
	transform: translateY(-1px);
}

.px3ksg-open-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.px3ksg-btn-icon {
	font-size: 1.25rem;
	line-height: 1;
}

/* ─────────────────────────────────────────────
   Modal plein écran — overlay
───────────────────────────────────────────── */

.px3ksg-modal-overlay {
	position: fixed;
	inset: 0;              /* top: 0; right: 0; bottom: 0; left: 0 */
	z-index: 999999;       /* Au-dessus de tout, y compris la barre admin WP */
	background-color: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	animation: px3ksg-fade-in 0.2s ease;
}

@keyframes px3ksg-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* ─────────────────────────────────────────────
   Iframe de l'application
───────────────────────────────────────────── */

.px3ksg-modal-iframe {
	flex: 1;
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* ─────────────────────────────────────────────
   Bouton fermer (×) positionné en haut à droite
───────────────────────────────────────────── */

.px3ksg-modal-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 1000000;
	width: 2.25rem;
	height: 2.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(30, 41, 59, 0.9);   /* slate-800 semi-transparent */
	color: #94a3b8;                        /* slate-400 */
	border: 1px solid rgba(100, 116, 139, 0.5);
	border-radius: 50%;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	backdrop-filter: blur(4px);
	font-family: Arial, sans-serif;
}

.px3ksg-modal-close:hover {
	background: rgba(239, 68, 68, 0.8);   /* red-500 semi-transparent */
	color: #ffffff;
	border-color: rgba(239, 68, 68, 0.6);
}
