/**
 * Publisher Profile Photo & Hero Background Modals Stylesheet
 *
 * @package AlmadenBookster
 */

/* ---------- Edit Buttons on Profile ---------- */
.almaden-publisher-hero-edit-btn {
	position: absolute;
	top: 1.25rem;
	right: 1.5rem;
	z-index: 25;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.5rem;
	background: rgba(0, 0, 0, 0.65);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.almaden-publisher-hero-edit-btn:hover {
	background: #000000;
	transform: scale(1.05);
	border-color: rgba(255, 255, 255, 0.4);
}

.almaden-publisher-photo-action {
	position: absolute;
	right: -4px;
	bottom: -4px;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	border: 2px solid #ffffff;
	background: #000000;
	color: #ffffff;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}

.almaden-publisher-photo-action:hover {
	background: #27272a;
	transform: scale(1.1);
}

.almaden-publisher-photo-action svg {
	width: 12px;
	height: 12px;
}

/* ---------- Modals Generic Backdrop & Panel ---------- */
.almaden-publisher-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.almaden-publisher-modal[hidden] {
	display: none !important;
}

.almaden-photo-modal-backdrop,
.almaden-hero-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.almaden-photo-modal-panel,
.almaden-hero-modal-panel {
	position: relative;
	width: 100%;
	max-width: 680px;
	max-height: 90vh;
	overflow-y: auto;
	background: #ffffff;
	border-radius: 1.5rem;
	padding: 2rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	border: 1px solid #e2e8f0;
	animation: almadenModalZoom 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes almadenModalZoom {
	from { opacity: 0; transform: scale(0.96); }
	to { opacity: 1; transform: scale(1); }
}

.almaden-photo-modal-btn,
.almaden-hero-modal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1.15rem;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
	border: 1px solid #e2e8f0;
	background: #ffffff;
	color: #0f172a;
	cursor: pointer;
	transition: all 0.15s ease;
}

.almaden-photo-modal-btn:hover,
.almaden-hero-modal-btn:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
}

.almaden-photo-modal-btn--primary,
.almaden-hero-modal-btn--primary {
	background: #0f172a !important;
	color: #ffffff !important;
	border-color: #0f172a !important;
}

.almaden-photo-modal-btn--primary:hover,
.almaden-hero-modal-btn--primary:hover {
	background: #27272a !important;
}

/* ---------- Dropzone Stage ---------- */
.almaden-photo-modal-grid,
.almaden-hero-modal-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 1.5rem;
	margin-top: 1.5rem;
}

@media (max-width: 640px) {
	.almaden-photo-modal-grid,
	.almaden-hero-modal-grid {
		grid-template-columns: 1fr;
	}
}

.almaden-photo-dropzone,
.almaden-hero-dropzone {
	border: 2px dashed #cbd5e1;
	border-radius: 1.25rem;
	padding: 2rem 1.5rem;
	text-align: center;
	background: #f8fafc;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 240px;
}

.almaden-photo-dropzone:hover,
.almaden-hero-dropzone:hover,
.almaden-photo-dropzone.is-dragover,
.almaden-hero-dropzone.is-dragover {
	border-color: #0f172a;
	background: #f1f5f9;
}

.almaden-photo-crop-canvas-wrap {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	background: #000;
}

.almaden-photo-crop-canvas {
	width: 100%;
	height: 100%;
	display: block;
	cursor: grab;
}

.almaden-photo-crop-canvas:active {
	cursor: grabbing;
}

/* ---------- Controls ---------- */
.almaden-photo-controls,
.almaden-hero-controls {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.almaden-photo-control-label {
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
	margin: 0 0 0.4rem;
}

.almaden-photo-control-row {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	flex-wrap: wrap;
}

.almaden-photo-range {
	width: 100%;
	accent-color: #0f172a;
	cursor: pointer;
}

.almaden-hero-mode-switch {
	display: flex;
	padding: 0.25rem;
	background: #f1f5f9;
	border-radius: 999px;
	gap: 0.25rem;
}

.almaden-hero-mode-btn {
	flex: 1;
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
	border: none;
	background: transparent;
	font-size: 0.8rem;
	font-weight: 700;
	color: #64748b;
	cursor: pointer;
	transition: all 0.15s ease;
}

.almaden-hero-mode-btn.active {
	background: #0f172a;
	color: #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.almaden-hero-color-input {
	-webkit-appearance: none;
	border: 1px solid #cbd5e1;
	width: 100%;
	height: 2.75rem;
	border-radius: 0.75rem;
	cursor: pointer;
	padding: 0.2rem;
	background: #ffffff;
}

.almaden-hero-color-input::-webkit-color-swatch-wrapper {
	padding: 0;
}

.almaden-hero-color-input::-webkit-color-swatch {
	border: none;
	border-radius: 0.55rem;
}

.almaden-hero-color-input--small {
	height: 2.25rem;
}

.almaden-hero-gradient-grid,
.almaden-hero-overlay-grid {
	display: grid;
	gap: 0.75rem;
}

.almaden-hero-field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: #334155;
}

.almaden-hero-preview-note {
	font-size: 0.75rem;
	color: #64748b;
	text-align: center;
	margin: 0.5rem 0 0;
}

.almaden-hero-upload-actions {
	margin-top: 0.75rem;
	justify-content: center;
}
