/* ============================================================
   HQ Community — Composer (medien-first Editor)
   ============================================================ */

/* --- Dropzone ----------------------------------------------- */
.hq-dropzone {
	border: 1.5px dashed var(--line, #DCDBD7);
	border-radius: 12px;
	background: var(--white, #fff);
	padding: clamp(2rem, 5vw, 3.2rem) 1.5rem;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.hq-dropzone:hover { border-color: var(--champagne, #A99D8D); }
.hq-dropzone.is-over {
	border-color: var(--champagne, #A99D8D);
	background: #faf8f5;
	box-shadow: 0 0 0 4px rgba(169, 157, 141, 0.12);
}
.hq-dropzone__icon { color: var(--champagne, #A99D8D); margin-bottom: 0.6rem; }
.hq-dropzone__title { font-size: 1.05rem; font-weight: 600; color: var(--slate, #60686F); margin: 0 0 0.3rem; }
.hq-dropzone__sub { font-size: 0.82rem; color: var(--slate-mute, #98A2A2); margin: 0 0 1.2rem; }
.hq-dropzone__actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* --- QR-Panel ------------------------------------------------ */
.hq-qr-panel {
	display: flex;
	gap: 1.4rem;
	align-items: center;
	margin-top: 1rem;
	padding: 1.2rem 1.4rem;
	background: var(--white, #fff);
	border: 1px solid var(--line, #DCDBD7);
	border-radius: 12px;
}
.hq-qr-panel__code { flex-shrink: 0; width: 132px; height: 132px; display: flex; align-items: center; justify-content: center; }
.hq-qr-panel__code svg { width: 100%; height: 100%; }
.hq-qr-panel__text strong { display: block; font-size: 0.95rem; color: var(--slate, #60686F); margin-bottom: 0.3rem; }
.hq-qr-panel__text p { font-size: 0.85rem; color: var(--slate-soft, #7D888F); line-height: 1.6; margin: 0 0 0.5rem; }
.hq-qr-panel__status { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--champagne, #A99D8D); }

/* --- Medien-Grid --------------------------------------------- */
.hq-media-grid {
	list-style: none;
	padding: 0;
	margin: 1.1rem 0 0.4rem;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 0.8rem;
}
.hq-media-grid:empty { display: none; }
.hq-tile {
	position: relative;
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
	background: var(--sand, #E5E1DC);
	cursor: grab;
	transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
}
.hq-tile:active { cursor: grabbing; }
.hq-tile.is-dragging { opacity: 0.45; transform: scale(0.96); }
.hq-tile__media {
	position: absolute; inset: 0;
	background-position: center; background-size: cover; background-repeat: no-repeat;
}
.hq-tile__media.is-video-placeholder::after {
	content: '🎬';
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: 2rem;
}
.hq-tile__vbadge {
	position: absolute; left: 8px; bottom: 8px;
	font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	background: rgba(44, 53, 49, 0.78); color: #fff;
	padding: 0.25rem 0.55rem; border-radius: 100px;
}
.hq-tile__cover-badge {
	position: absolute; left: 8px; top: 8px;
	display: none;
	font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
	background: var(--champagne, #A99D8D); color: #fff;
	padding: 0.25rem 0.55rem; border-radius: 100px;
}
.hq-tile.is-cover .hq-tile__cover-badge { display: block; }
.hq-tile__rm {
	position: absolute; right: 6px; top: 6px;
	width: 24px; height: 24px;
	border: none; border-radius: 50%;
	background: rgba(44, 53, 49, 0.72); color: #fff;
	font-size: 0.95rem; line-height: 1;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.25s;
}
.hq-tile:hover .hq-tile__rm { opacity: 1; }
.hq-tile__progress {
	position: absolute; left: 0; right: 0; bottom: 0;
	height: 4px;
	background: rgba(255, 255, 255, 0.5);
	display: none;
}
.hq-tile.is-uploading .hq-tile__progress { display: block; }
.hq-tile__bar { display: block; height: 100%; width: 0; background: var(--champagne, #A99D8D); transition: width 0.2s; }
.hq-tile.is-error { outline: 2px solid #a05555; }
.hq-tile.is-error::after {
	content: '!';
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.6rem; font-weight: 700; color: #a05555;
	background: rgba(255, 255, 255, 0.7);
}

/* --- Composer-Feinschliff ------------------------------------ */
.hq-title-input { font-size: 1.15rem; font-weight: 600; }
.hq-more { margin: 0.6rem 0 1.4rem; border: 1px solid var(--line, #DCDBD7); border-radius: 10px; background: var(--white, #fff); }
.hq-more summary {
	cursor: pointer;
	padding: 0.9rem 1.2rem;
	font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--slate-soft, #7D888F);
	list-style: none;
}
.hq-more summary::-webkit-details-marker { display: none; }
.hq-more summary::after { content: '+'; float: right; font-size: 1rem; }
.hq-more[open] summary::after { content: '–'; }
.hq-more[open] summary { border-bottom: 1px solid var(--line, #DCDBD7); }
.hq-more > .hq-field { padding: 1rem 1.2rem 0.4rem; }
.hq-biz-loc { margin-top: 0.7rem; }

@media (max-width: 640px) {
	.hq-qr-panel { flex-direction: column; text-align: center; }
	.hq-media-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

/* Kamera-Button nur auf Touch-Geräten sichtbar (Desktop: Dropzone reicht) */
@media (pointer: fine) {
	.hq-camera-btn { display: none; }
}

/* Offline-Hinweis im Composer */
.hq-offline-note { margin: 0.7rem 0 0; padding: 0.6rem 0.9rem; font-size: 0.82rem; color: var(--taupe, #776D5F); background: var(--cream, #F2F1EF); border: 1px solid var(--line, #DCDBD7); border-radius: 8px; }

/* Mentions: Autocomplete + Chips */
.hq-mentions-field { position: relative; }
.hq-mention-suggest { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin: 0.3rem 0 0; padding: 0.3rem; list-style: none; background: #fff; border: 1px solid var(--line, #DCDBD7); border-radius: 10px; box-shadow: 0 14px 40px rgba(44,53,49,0.12); max-height: 240px; overflow-y: auto; }
.hq-mention-suggest li { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem; border-radius: 7px; cursor: pointer; font-size: 0.9rem; }
.hq-mention-suggest li:hover { background: var(--cream, #F2F1EF); }
.hq-mention-suggest li img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.hq-mention-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0.7rem 0 0; padding: 0; }
.hq-mention-chips li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.5rem 0.35rem 0.9rem; border: 1px solid var(--line, #DCDBD7); border-radius: 100px; font-size: 0.82rem; }
.hq-mention-chip__rm { border: 0; background: transparent; cursor: pointer; font-size: 1rem; line-height: 1; color: var(--slate-mute, #98A2A2); padding: 0 0.3rem; }
.hq-mention-chip__rm:hover { color: var(--taupe, #776D5F); }
