/* ezy WP Social Media Photocard — Frontend Styles */

.ezy-photocard-wrap {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 20px;
	margin: 20px 0;
	box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* Featured Image Notice */
.ezy-featured-notice {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	border-radius: 6px;
	padding: 8px 14px;
	margin-bottom: 10px;
	font-size: 13px;
	color: #2e7d32;
}
.ezy-featured-notice .ezy-featured-icon { font-size: 16px; }
.ezy-featured-remove {
	margin-left: auto;
	background: none;
	border: 1px solid #a5d6a7;
	border-radius: 4px;
	padding: 2px 8px;
	font-size: 12px;
	color: #c62828;
	cursor: pointer;
	transition: background 0.15s;
}
.ezy-featured-remove:hover { background: #ffebee; }

/* Toolbar */
.ezy-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 16px;
}
.ezy-toolbar-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ezy-toolbar-group > label { font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }

/* Template pills */
.ezy-template-pills { display: flex; gap: 6px; }
.ezy-tpl-pill {
	width: 36px; height: 36px; border-radius: 8px; border: 2px solid #e2e8f0;
	background: #f8fafc; cursor: pointer; font-size: 16px;
	display: flex; align-items: center; justify-content: center;
	transition: border-color .2s, background .2s;
}
.ezy-tpl-pill:hover, .ezy-tpl-pill.active { border-color: #1877f2; background: #eff6ff; }

/* BG controls */
.ezy-bg-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ezy-bg-controls label { font-size: 12px; color: #64748b; }
.ezy-bg-controls input[type="color"] { width: 32px; height: 32px; border: 2px solid #e2e8f0; border-radius: 6px; cursor: pointer; padding: 2px; }

/* Canvas */
.ezy-canvas-area { display: flex; justify-content: center; margin-bottom: 16px; }
.ezy-canvas-container { width: 100%; }
#ezy-canvas {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 8px 32px rgba(0,0,0,.18);
	cursor: crosshair;
}

/* Controls panel */
.ezy-controls-panel {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 16px;
}
.ezy-panel-section { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #f1f5f9; }
.ezy-panel-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.ezy-section-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #374151; }

.ezy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.ezy-col { display: flex; flex-direction: column; gap: 3px; }
.ezy-col label { font-size: 11px; color: #6b7280; }

.ezy-textarea, .ezy-input {
	width: 100%; box-sizing: border-box;
	border: 1px solid #d1d5db; border-radius: 6px;
	padding: 8px 10px; font-size: 14px;
	transition: border-color .2s;
}
.ezy-textarea:focus, .ezy-input:focus { border-color: #1877f2; outline: none; box-shadow: 0 0 0 3px rgba(24,119,242,.1); }
.ezy-textarea { resize: vertical; }
.ezy-number { width: 64px; border: 1px solid #d1d5db; border-radius: 6px; padding: 6px 8px; font-size: 13px; }
.ezy-range { width: 100px; cursor: pointer; accent-color: #1877f2; }
.ezy-check { display: flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; }
select.ezy-page-select, .ezy-controls-panel select {
	border: 1px solid #d1d5db; border-radius: 6px; padding: 6px 8px; font-size: 13px; background: #fff;
}

/* Upload button */
.ezy-upload-btn {
	display: inline-flex; align-items: center; gap: 6px;
	background: #eff6ff; border: 1px solid #bfdbfe;
	color: #1d4ed8; border-radius: 7px;
	padding: 7px 12px; font-size: 13px; cursor: pointer;
	transition: background .2s;
}
.ezy-upload-btn:hover { background: #dbeafe; }

/* Actions */
.ezy-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding-top: 4px;
}
.ezy-fb-section { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ezy-fb-status {
	display: flex; align-items: center; gap: 6px;
	font-size: 13px; padding: 6px 12px;
	border-radius: 20px;
}
.ezy-fb-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ezy-fb-disconnected { background: #fef2f2; color: #991b1b; }
.ezy-fb-disconnected .ezy-fb-dot { background: #ef4444; }
.ezy-fb-connected { background: #f0fdf4; color: #166534; }
.ezy-fb-connected .ezy-fb-dot { background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.5} }

.ezy-btn {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600;
	border: none; cursor: pointer; text-decoration: none;
	transition: transform .1s, opacity .2s, box-shadow .2s;
}
.ezy-btn:hover { transform: translateY(-1px); opacity: .92; }
.ezy-btn:active { transform: translateY(0); }
.ezy-btn-secondary { background: #f1f5f9; color: #374151; border: 1px solid #d1d5db; }
.ezy-btn-facebook { background: #1877f2; color: #fff; box-shadow: 0 2px 8px rgba(24,119,242,.3); }
.ezy-btn-post { background: #166534; color: #fff; box-shadow: 0 2px 8px rgba(22,101,52,.3); }
.ezy-btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

.ezy-page-select { max-width: 220px; }

/* Message */
.ezy-message {
	margin-top: 12px; padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
}
.ezy-message.success { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.ezy-message.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.ezy-message.info    { background: #eff6ff; color: #1e40af; border: 1px solid #93c5fd; }

/* Admin notice */
.ezy-notice { padding: 12px 16px; border-radius: 8px; border-left: 4px solid #f59e0b; background: #fffbeb; margin: 8px 0; }
.ezy-notice-warning { border-left-color: #f59e0b; }

/* Responsive */
@media (max-width: 600px) {
	.ezy-photocard-wrap { padding: 12px; }
	.ezy-row { gap: 8px; }
	.ezy-actions { flex-direction: column; align-items: stretch; }
	.ezy-btn { justify-content: center; }
}
