/* ==========================================
   COLLECTOR CUSTOMIZATION
   Uses g.ui modal system - only custom styles here
   ========================================== */

/* === DISPLAY ELEMENTS (on collector page) === */

.collectorPfp {
	margin-bottom: 1em;
}
.collectorPfp img {
	max-width: 120px;
	max-height: 120px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--colorAccent, #fff);
}
.collectorLinks {
	margin: 1em 0;
}
.collectorLinks ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em 1.5em;
}

/* Customize button */
.customizePanel {
	margin: 1.5em 0;
}

/* === EDITOR MODAL (extends g.ui styles) === */

/* Header textarea row */
.uiRowHeader .labelCell { vertical-align: top; padding-top: 0.3em; }
.uiRowHeader .labelCell .hint { display: block; font-size: 0.75em; opacity: 0.5; margin-top: 0.3em; }
.uiRowHeader textarea { width: var(--hundredPercent); min-width: 280px; resize: vertical; min-height:200px;font-family: var(--fontFamily1);font-size:0.9rem;}

#customizeDialog .uiRow>span:nth-child(1)
{
	width:140px;
}
/* Header preview */
.headerActions { margin-top: 0.5em; display:flex; flex-direction: row-reverse;}
.headerPreview {
	margin-top: 0.5em;
	padding: 0.8em;
	background: rgba(255,255,255,0.05);
	border-radius: 4px;
	border: 1px dashed rgba(255,255,255,0.2);
}
.headerPreview.hidden { display: none; }

/* PFP in form */
.pfpSelectWrap {
	display: flex;
	align-items: center;
	/*justify-content: space-between;*/
	gap: 0.8em;
	margin-bottom:20px;
}
.pfpPreview {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: rgba(255,255,255,0.05);
	border:1px solid rgba(255,255,255,0.2);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.pfpPreview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.pfpPreview .noPfp {
	font-size: 0.8em;
	opacity: 0.5;
}

label.themeOption
{	margin-right : 20px;
    display: inline-block;
	padding:5px 8px 5px 5px;
	cursor:pointer;
}
label.themeOption:has(input:checked)
{
	background-color: var(--mattingColor);
	color : var(--textMatting);
	border-radius: 5px;
}
/* === PFP SELECTOR GRID === */

.pfpSelectorGrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 0.8em;
	max-height: 320px;
	overflow-y: auto;
	margin-bottom: 1em;
	padding: 0.5em;
}
.pfpSelectorItem {
	cursor: pointer;
	text-align: center;
	padding: 0.3em;
	border-radius: 4px;
	transition: background 0.15s;
}
.pfpSelectorItem:hover {
	background: rgba(255,255,255,0.1);
}
.pfpSelectorItem img {
	width: 70px;
	height: 70px;
	object-fit: cover;
	border-radius: 4px;
}
.pfpSelectorItem .pfpItemName {
	display: block;
	font-size: 0.7em;
	opacity: 0.7;
	margin-top: 0.3em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 80px;
}

/* === LINKS EDITOR === */

.linksWrap {
	margin-bottom: 0.5em;
	/*margin-left: 140px;*/
}
.linkRow {
	display: flex;
	gap: 0.5em;
	margin-bottom: 0.5em;
	align-items: center;
}
.linkRow .linkTitle {
	width: 100px;
}
.linkRow .linkUrl {
	flex: 1;
	min-width: 150px;
}
.btnRemoveLink {
	flex-shrink: 0;
}
.btnAddLink {
	margin-top: 0.5em;
}

/* === NFT SELECTOR GRID === */

.nftSelectorGrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
	gap: 0.8em;
	max-height: 320px;
	overflow-y: auto;
	margin-bottom: 1em;
	padding: 0.5em;
}
.nftSelectorItem {
	cursor: pointer;
	text-align: center;
	padding: 0.3em;
	border-radius: 4px;
	transition: background 0.15s;
}
.nftSelectorItem:hover {
	background: rgba(255,255,255,0.1);
}
.nftSelectorItem img {
	width: 70px;
	height: 70px;
	object-fit: cover;
	border-radius: 4px;
}
.nftSelectorItem.pixelArt img
{
	image-rendering: pixelated;
}
.nftSelectorItem .nftItemName {
	display: block;
	font-size: 0.7em;
	opacity: 0.7;
	margin-top: 0.3em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 80px;
}

/* === IMAGE CROPPER === */

.cropperCanvasWrap {
	display: flex;
	justify-content: center;
	margin-bottom: 1em;
}
.cropperCanvas {
	display: block;
	cursor: move;
	border-radius: 4px;
	background: #111;
}
.cropperControls {
	display: flex;
	align-items: center;
	gap: 1em;
	margin-bottom: 1em;
}
.cropperLabel {
	font-size: 0.9em;
	opacity: 0.8;
}
.cropperZoom {
	width: 200px;
	flex: 1;
	max-width: 250px;
}
.cropperPreviewRow {
	display: flex;
	align-items: center;
	gap: 1em;
}
.cropperPreviewWrap {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid rgba(255,255,255,0.3);
}
.cropperPreview {
	width: 100%;
	height: 100%;
	display: block;
}
.cropperCanvas:active {
	cursor: grabbing;
}

/* === MOBILE: HIDE EDITOR === */

@media (max-width: 768px) {
	.customizePanel,
	.btnCustomize {
		display: none;
	}
}
