/* Host Clan — Clan owners 1.1.0: clan website, games, Clans by game.
   Buttons follow the site rule: gold #e6c200 with black text,
   hover/focus green #0a863c with white text. */

/* Gold website / game link buttons (also inside dark clan cards) */
a.button.hostclan-site-btn,
.hcg-clan a.button.hostclan-site-btn,
.hcg-clan a.button.hostclan-site-btn:link,
.hcg-clan a.button.hostclan-site-btn:visited {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	background: #e6c200 !important;
	border: 2px solid #e6c200 !important;
	color: #000000 !important;
	text-decoration: none !important;
	font-weight: 600;
	white-space: nowrap;
}
a.button.hostclan-site-btn .icon,
.hcg-clan a.button.hostclan-site-btn .icon {
	color: inherit !important;
}
a.button.hostclan-site-btn:hover,
a.button.hostclan-site-btn:focus-visible,
.hcg-clan a.button.hostclan-site-btn:hover,
.hcg-clan a.button.hostclan-site-btn:focus-visible {
	background: #0a863c !important;
	border-color: #0a863c !important;
	color: #ffffff !important;
	text-decoration: none !important;
}
a.button.hostclan-site-btn:focus-visible,
a.button.hostclan-btn-ghost:focus-visible {
	outline: 2px solid #ffffff !important;
	box-shadow: 0 0 0 4px #000000 !important;
}
a.button.hostclan-site-btn--small {
	padding: 2px 8px;
	font-size: 0.85rem;
	min-height: 0;
	line-height: 1.5;
}

/* Outline (ghost) buttons: gold border. Black text on light pages, gold text on dark cards. */
a.button.hostclan-btn-ghost,
a.button.hostclan-btn-ghost:link,
a.button.hostclan-btn-ghost:visited {
	background: #ffffff !important;
	border: 2px solid #e6c200 !important;
	color: #000000 !important;
	text-decoration: none !important;
}
.hcg-clan a.button.hostclan-btn-ghost--dark,
.hcg-clan a.button.hostclan-btn-ghost--dark:link,
.hcg-clan a.button.hostclan-btn-ghost--dark:visited {
	background: transparent !important;
	border: 2px solid #e6c200 !important;
	color: #e6c200 !important;
	text-decoration: none !important;
}
a.button.hostclan-btn-ghost:hover,
a.button.hostclan-btn-ghost:focus-visible,
.hcg-clan a.button.hostclan-btn-ghost--dark:hover,
.hcg-clan a.button.hostclan-btn-ghost--dark:focus-visible {
	background: #0a863c !important;
	border-color: #0a863c !important;
	color: #ffffff !important;
}
a.button.hostclan-btn-ghost .icon { color: inherit !important; }

/* Game badges */
.hostclan-game-badges {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px 6px;
	vertical-align: middle;
}
.hostclan-game-badge {
	display: inline-block;
	padding: 2px 9px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.5;
	text-transform: uppercase;
	color: #e6c200;
	background: #000000;
	border: 1px solid #e6c200;
	border-radius: 2px;
	text-decoration: none;
	white-space: nowrap;
}
.hcg-clan .hostclan-game-badge,
.hcg-clan a.hostclan-game-badge,
.hcg-clan a.hostclan-game-badge:link,
.hcg-clan a.hostclan-game-badge:visited {
	color: #0d0f0e;
	background: var(--hcg-accent, #e6c200);
	border-color: var(--hcg-accent, #e6c200);
	text-decoration: none;
}
.hcg-clan a.hostclan-game-badge:hover,
.hcg-clan a.hostclan-game-badge:focus-visible {
	color: #ffffff;
	background: #0a863c;
	border-color: #0a863c;
}

/* Clans list (index and Clans category) */
.hostclan-clan-list-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-top: 6px;
}

/* Clan board / topic header card */
.hcg-clan.hostclan-clan-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin: 0.6rem 0 1rem;
	padding: 0.85rem 1.1rem;
}
.hostclan-clan-header__games {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	min-width: 0;
}
.hostclan-clan-header__label {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hcg-accent, #e6c200);
}
.hostclan-clan-header__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.hostclan-clan-header__list li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}
.hostclan-clan-header__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.hcg-clan .hostclan-muted { color: var(--hcg-muted, #c5ccc7); }
.hostclan-muted { color: #555555; }

.hostclan-clans-hub { margin: 0.4rem 0 1rem; }

/* Clans by game */
.hostclan-game-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 12px;
	margin: 1rem 0;
	padding: 0;
	list-style: none;
}
.hcg-clan.hostclan-game-tile {
	display: block;
	margin: 0;
	padding: 0;
}
.hcg-clan.hostclan-game-tile a,
.hcg-clan.hostclan-game-tile a:link,
.hcg-clan.hostclan-game-tile a:visited {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0.9rem 1rem;
	color: var(--hcg-text, #e8ece9);
	text-decoration: none;
	min-height: 74px;
}
.hcg-clan.hostclan-game-tile a:hover,
.hcg-clan.hostclan-game-tile a:focus-visible {
	color: #ffffff;
	background: rgba(10, 134, 60, 0.55);
	outline: none;
	box-shadow: inset 0 0 0 2px #0a863c;
}
.hostclan-game-tile__name { font-size: 1.05rem; font-weight: 700; }
.hostclan-game-tile__count {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--hcg-accent, #e6c200);
}
.hcg-clan.hostclan-game-tile.is-empty { opacity: 0.72; }

.hostclan-game-clans { margin: 1rem 0; padding: 0; list-style: none; }
.hcg-clan.hostclan-game-clan {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	margin: 0 0 12px;
	padding: 0.9rem 1.1rem;
}
.hostclan-game-clan__main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.hcg-clan.hostclan-game-clan .hcg-clan-name { padding: 0; font-size: 1.3rem; text-transform: none; letter-spacing: 0; }
.hcg-clan.hostclan-game-clan .hcg-clan-name a { color: var(--hcg-text, #e8ece9); text-decoration: none; }
.hcg-clan.hostclan-game-clan .hcg-clan-name a:hover,
.hcg-clan.hostclan-game-clan .hcg-clan-name a:focus-visible { color: var(--hcg-link-hover, #e6c200); text-decoration: underline; }
.hostclan-game-clan__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hostclan-note { font-size: 0.8rem; flex-basis: 100%; text-align: right; }

/* Settings form */
.hostclan-games-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0; }
.hostclan-games-table th,
.hostclan-games-table td { padding: 6px 8px; border-bottom: 1px solid #dddddd; text-align: left; vertical-align: middle; }
.hostclan-games-table th:last-child,
.hostclan-games-table td:last-child { text-align: center; width: 6rem; }
.hostclan-url-input { width: 100%; max-width: 32rem; box-sizing: border-box; }
.hostclan-game-check { font-weight: 600; white-space: nowrap; }
.hostclan-form-note { font-size: 0.85rem; color: #444444; }

@media (max-width: 700px) {
	.hostclan-games-table thead { display: none; }
	.hostclan-games-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid #dddddd; }
	.hostclan-games-table td { border: 0; padding: 2px 0; }
	.hostclan-games-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
	.hostclan-games-table td:last-child { grid-column: 2; grid-row: 1; width: auto; }
	.hostclan-note { text-align: left; }
	.hcg-clan.hostclan-clan-header,
	.hcg-clan.hostclan-game-clan { flex-direction: column; align-items: flex-start; }
}
