/* ============================================================
   HQ Community — Dashboard & Editor (Frontend)
   Markendesign: Slate / Champagne / Cream
   ============================================================ */

:root {
	--slate: #60686F;
	--slate-soft: #7D888F;
	--slate-mute: #98A2A2;
	--champagne: #A99D8D;
	--taupe: #776D5F;
	--cream: #F2F1EF;
	--sand: #E5E1DC;
	--line: #DCDBD7;
	--white: #FFFFFF;
	--ok: #5f7d5f;
	--err: #a35d5d;
}

.hq-dash,
.hq-form-wrap {
	max-width: 60rem;
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 4rem) clamp(1.2rem, 4vw, 2rem);
	font-family: 'Mulish', system-ui, sans-serif;
	color: var(--slate);
}

.hq-eyebrow {
	font-size: 0.7rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--champagne);
	font-weight: 600;
}

.hq-dash__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--line);
}
.hq-dash__title {
	font-size: clamp(1.8rem, 3.5vw, 2.6rem);
	font-weight: 200;
	line-height: 1.1;
	margin: 0.4rem 0 0;
	color: var(--slate);
}

/* Buttons */
.hq-btn {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.8rem 1.6rem;
	border-radius: 100px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
	text-decoration: none;
	line-height: 1;
}
.hq-btn--primary { background: var(--slate); color: var(--cream); }
.hq-btn--primary:hover { background: var(--taupe); transform: translateY(-2px); }
.hq-btn--ghost { background: transparent; color: var(--slate); border-color: var(--line); }
.hq-btn--ghost:hover { border-color: var(--slate); }

/* List */
.hq-list { list-style: none; margin: 0; padding: 0; }
.hq-list__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--line);
}
.hq-list__t { font-size: 1.25rem; font-weight: 300; margin: 0.5rem 0; color: var(--slate); }
.hq-list__meta { font-size: 0.8rem; color: var(--slate-mute); }
.hq-list__actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

/* Status badges */
.hq-status {
	display: inline-block;
	font-size: 0.65rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 0.3rem 0.7rem;
	border-radius: 100px;
	font-weight: 600;
	background: var(--sand);
	color: var(--slate);
}
.hq-status--publish { background: #e3ede3; color: #3f5f3f; }
.hq-status--hq_submitted { background: #e8e4dc; color: var(--taupe); }
.hq-status--hq_review { background: #e6e9ec; color: var(--slate); }
.hq-status--hq_rejected { background: #f0e0e0; color: var(--err); }
.hq-status--hq_returned { background: #f2ece0; color: var(--taupe); }
.hq-status--draft { background: var(--sand); color: var(--slate-soft); }

.hq-note {
	margin-top: 0.8rem;
	padding: 0.8rem 1rem;
	background: var(--cream);
	border-left: 2px solid var(--champagne);
	font-size: 0.9rem;
	color: var(--slate);
}

/* Empty state */
.hq-empty {
	text-align: center;
	padding: 4rem 1rem;
	color: var(--slate-soft);
}
.hq-empty p { margin-bottom: 1.5rem; }

/* Banner */
.hq-banner {
	padding: 1rem 1.4rem;
	border-radius: 4px;
	margin-bottom: 2rem;
	font-size: 0.9rem;
}
.hq-banner--ok { background: #e3ede3; color: #3f5f3f; }
.hq-banner--err { background: #f0e0e0; color: var(--err); }

/* Form */
.hq-form { margin-top: 1rem; }
.hq-field { margin-bottom: 2rem; }
.hq-field > label {
	display: block;
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--slate);
	margin-bottom: 0.7rem;
}
.hq-field input[type="text"],
.hq-field input[type="url"],
.hq-field textarea {
	width: 100%;
	padding: 0.9rem 1rem;
	border: 1px solid var(--line);
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
	color: var(--slate);
	background: var(--white);
	transition: border-color 0.3s;
}
.hq-field input:focus,
.hq-field textarea:focus { outline: none; border-color: var(--champagne); }
.hq-hint { display: block; margin-top: 0.5rem; font-size: 0.78rem; color: var(--slate-mute); }

/* Uploader */
.hq-uploader {
	border: 1px dashed var(--slate-mute);
	border-radius: 6px;
	padding: 1.5rem;
	background: var(--white);
}
.hq-media-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.hq-media-list__item {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.5rem;
	background: var(--cream);
	border-radius: 4px;
}
.hq-media-list__thumb {
	width: 44px; height: 44px; border-radius: 4px;
	background: var(--sand) center/cover no-repeat; flex-shrink: 0;
}
.hq-media-list__name { flex: 1; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-media-list__status { font-size: 0.8rem; color: var(--taupe); }
.hq-media-list__rm {
	background: none; border: none; cursor: pointer;
	font-size: 1.3rem; line-height: 1; color: var(--slate-mute); padding: 0 0.4rem;
}
.hq-media-list__rm:hover { color: var(--err); }

/* Map */
.hq-map { height: 320px; border-radius: 6px; overflow: hidden; margin-bottom: 0.8rem; border: 1px solid var(--line); }
.hq-geo-row { display: flex; gap: 0.8rem; }
.hq-geo-row input[type="text"] { flex: 1; }

/* Form actions */
.hq-form__actions {
	display: flex;
	justify-content: flex-end;
	gap: 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.hq-login-prompt { text-align: center; padding: 4rem 1rem; }
.hq-login-prompt p { margin-bottom: 1.5rem; color: var(--slate-soft); }
.hq-error { padding: 1rem; color: var(--err); }

@media (max-width: 620px) {
	.hq-dash__head { flex-direction: column; align-items: flex-start; }
	.hq-list__row { flex-direction: column; align-items: flex-start; }
	.hq-form__actions { flex-direction: column; }
	.hq-form__actions .hq-btn { width: 100%; text-align: center; }
}

/* ============================================================
   Dashboard 2.0 — Medien-Karten-Grid, Filter, Aktionen
   ============================================================ */
.hq-dash__cta { display: flex; gap: 0.8rem; flex-shrink: 0; }

.hq-dash__filter { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: -0.8rem 0 2.2rem; }
.hq-dash__filter .hq-chip {
	display: inline-block;
	border: 1px solid var(--line);
	background: var(--white);
	color: var(--slate);
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	padding: 0.55rem 1.1rem;
	border-radius: 100px;
	text-decoration: none;
	transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.hq-dash__filter .hq-chip:hover { border-color: var(--champagne); }
.hq-dash__filter .hq-chip.is-active { background: var(--slate); border-color: var(--slate); color: var(--cream); }

.hq-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 1.6rem;
}
.hq-card-post {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s;
}
.hq-card-post:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(44,53,49,0.08); }
.hq-card-post__media {
	position: relative;
	height: 150px;
	background: var(--sand) center/cover no-repeat;
}
.hq-card-post__media .hq-status { position: absolute; left: 10px; top: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.hq-card-post__body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.hq-card-post__t { font-size: 1.08rem; font-weight: 400; margin: 0 0 0.35rem; color: var(--slate); line-height: 1.35; }
.hq-card-post__meta { font-size: 0.76rem; color: var(--slate-mute); }
.hq-card-post__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 1rem;
}
.hq-card-post__actions .hq-btn { padding: 0.6rem 1.1rem; font-size: 0.66rem; }
.hq-del-form { display: inline; margin: 0; }
.hq-btn--danger { background: transparent; color: var(--err); border-color: #e5cccc; }
.hq-btn--danger:hover { background: #f7eaea; border-color: var(--err); }

/* ============================================================
   Partner-Meter „Meine Reichweite" (HQ_Analytics)
   Kennzahlen-Kacheln + CSS-Balkenverlauf (keine Chart-Lib)
   ============================================================ */
.hq-reach { margin: -0.6rem 0 2.6rem; }
.hq-reach__title {
	font-size: 1.05rem;
	font-weight: 400;
	color: var(--slate);
	margin: 0 0 1.1rem;
}

.hq-reach__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1rem;
}
.hq-reach__tile {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 1.1rem 1.2rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.hq-reach__num {
	font-size: 1.9rem;
	font-weight: 200;
	line-height: 1.1;
	color: var(--slate);
}
.hq-reach__lbl {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--taupe);
}
.hq-reach__period { font-size: 0.72rem; color: var(--slate-mute); }

.hq-reach__chart {
	margin-top: 1rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 1.1rem 1.2rem 1rem;
}
.hq-reach__chart-title {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--taupe);
	margin: 0 0 1rem;
}
.hq-reach__bars {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 90px;
}
.hq-reach__bar {
	flex: 1;
	min-width: 0;
	border-radius: 3px 3px 0 0;
	background: var(--sand);
	transition: background 0.3s;
}
.hq-reach__bar.has-value { background: var(--champagne); }
.hq-reach__bar:hover { background: var(--taupe); }
.hq-reach__axis {
	display: flex;
	justify-content: space-between;
	margin-top: 0.5rem;
	font-size: 0.72rem;
	color: var(--slate-mute);
}
