/**
 * @package SMF Post Prefix
 * @version 4.2
 * @author Diego Andrés <diegoandres_cortes@outlook.com>
 * @copyright Copyright (c) 2023, SMF Tricks
 * @license https://www.mozilla.org/en-US/MPL/2.0/
 */

/* Prefix */
span.postprefix-all,
.postprefix-all {
	padding-inline: 5px !important;
	min-height: 24px;
	display: inline-flex;
	border-radius: 4px;
	line-height: normal;
	justify-content: center;
	align-items: center;
	text-shadow: none;
	gap: 5px;
	font-size: 0.9em;
	margin-inline-end: 3px;
}
span.postprefix-all.text-default {
	color: #fff !important;
}
span.postprefix-all.text-inverted {
	color: #000 !important;
}
span.bold_text span.postprefix-all {
	font-weight: normal;
}

/* Prefix icon */
span.postprefix-all i,
.postprefix-all i {
	font-size: 0.85em;
	width: auto !important;
	height: 13px;
	scale: 0.8;
}

/* input styles */   73 in jos
@media (max-width: 767px)
{
	#select_prefixes label {
		display: inline-block;
		width: 100%;
	}
	#select_prefixes label input {
		width: auto;
	}
}

/* Board 73: Mu Online Server Advertisement (custom layout)
------------------------------------------------------- */
body.board_73 #display_head.information {
	background: linear-gradient(to bottom right, #ffffff, #f8fafc);
	border: 1px solid #e2e8f0;
	color: #1e293b;
	padding: 24px;
	border-radius: 8px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	margin-bottom: 20px;
}
body.board_73 #display_head.information .display_title {
	color: #0f172a;
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.025em;
	margin-bottom: 0.5rem;
}
body.board_73 #display_head.information p {
	color: #64748b;
	font-size: 1rem;
	line-height: 1.5;
}
body.board_73 #display_head .ad_board_actions {
	margin-top: 16px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
body.board_73 #display_head .ad_board_actions .button {
	border: 1px solid #cbd5e1;
	background: #f8fafc;
	color: #334155;
	text-shadow: none;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	padding: 8px 16px;
	font-weight: 600;
	border-radius: 6px;
	transition: all 0.2s;
}
body.board_73 #display_head .ad_board_actions .button:hover,
body.board_73 #display_head .ad_board_actions .button:focus {
	background: #fff;
	border-color: #94a3b8;
	color: #0f172a;
	transform: translateY(-1px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.board_73 #messageindex.ad_board_index {
	margin-top: 20px;
}

body.board_73 .ad_prefix_nav {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 16px;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
	margin-bottom: 20px;
}
body.board_73 .ad_cat_pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}
body.board_73 .ad_prefix_nav_label {
	font-weight: 600;
	color: #475569;
	margin-right: 4px;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
body.board_73 .ad_prefix_pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #475569;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9rem;
	transition: all 0.2s;
}
body.board_73 .ad_prefix_pill:hover {
	background: #f1f5f9;
	border-color: #cbd5e1;
	color: #1e293b;
	text-decoration: none;
}
body.board_73 .ad_prefix_pill.is_active {
	background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
	border-color: #1d4ed8;
	color: #ffffff;
}
body.board_73 .ad_prefix_pill.is_active:hover {
	background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
	border-color: #1e40af;
	color: #ffffff;
}
body.board_73 .ad_prefix_pill .amt {
	background: #e2e8f0;
	color: #475569;
	border-radius: 4px;
	padding: 2px 6px;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
}
body.board_73 .ad_prefix_pill.is_active .amt {
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
}

body.board_73 .ad_prefix_sections {
	margin-top: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

body.board_73 .ad_prefix_section {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
	margin-bottom: 20px;
	width: 100%;
}
body.board_73 .ad_prefix_header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}
body.board_73 .ad_prefix_title {
	margin: 0;
	font-size: 1.1rem;
	color: #1e293b;
	font-weight: 700;
}
body.board_73 .ad_prefix_header .amt {
	margin-left: auto;
	background: #fff;
	color: #64748b;
	border: 1px solid #e2e8f0;
	border-radius: 20px;
	padding: 4px 10px;
	font-size: 0.8rem;
	font-weight: 600;
}

body.board_73 .ad_topic_cards {
	padding: 20px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	background: #fff;
}
body.board_73 .ad_topic_card {
	position: relative;
	border: 1px solid #f1f5f9;
	border-radius: 16px;
	padding: 24px;
	background: #ffffff;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}
body.board_73 .ad_topic_rank {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border-radius: 999px;
	background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
	color: #fff;
	font-weight: 800;
	font-size: 0.9rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	z-index: 2;
}
body.board_73 .ad_topic_card_top {
	padding-right: 56px;
}
body.board_73 .ad_topic_card:hover {
	border-color: #e2e8f0;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
	transform: translateY(-4px);
	z-index: 5;
}
body.board_73 .ad_topic_title_row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}
body.board_73 .ad_topic_badges {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}
body.board_73 .ad_category_badge {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px;
	border-radius: 8px;
	background: #0f172a;
	color: #fff;
	font-weight: 800;
	font-size: 0.78rem;
	letter-spacing: 0.02em;
}
body.board_73 .ad_topic_icons {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #94a3b8;
}
body.board_73 .ad_topic_title {
	margin-top: 0;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.4;
	color: #334155;
}
body.board_73 .ad_topic_title a {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.2s;
}
body.board_73 .ad_topic_title a:hover {
	color: #2563eb;
	text-decoration: none;
}
body.board_73 .ad_topic_pages {
	margin-top: 4px;
	font-size: 0.8rem;
	color: #64748b;
}
body.board_73 .ad_topic_meta {
	margin-top: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 0.85rem;
	color: #64748b;
	border-top: 1px solid #f1f5f9;
	padding-top: 12px;
}
body.board_73 .ad_topic_meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
body.board_73 .ad_topic_meta a {
	color: #475569;
	font-weight: 500;
}
body.board_73 .ad_topic_meta a:hover {
	color: #2563eb;
}
body.board_73 .ad_topic_select {
	position: absolute;
	top: 16px;
	right: 16px;
	opacity: 0.5;
}
body.board_73 .ad_topic_card:hover .ad_topic_select {
	opacity: 1;
}

body.board_73 .ad_topic_details {
	margin-top: 16px;
	padding-top: 0;
	border-top: none;
}
body.board_73 .ad_banner_hint {
	display: none;
}
body.board_73 .ad_topic_banner {
	margin-bottom: 20px;
	padding: 0;
	border: none;
	background: transparent;
	display: flex;
	justify-content: flex-start;
	position: relative;
	z-index: 1;
}
body.board_73 .ad_banner_link {
	display: flex;
	justify-content: flex-start;
	width: auto;
}
body.board_73 .ad_topic_banner img {
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	transition: transform 0.2s ease, filter 0.2s ease;
}
body.board_73 .ad_banner_link:hover img,
body.board_73 .ad_banner_link:focus img {
	transform: translateY(-1px);
	filter: saturate(1.05) brightness(1.02);
	box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Hide PostPrefix selector on board 73 (category is handled by MUAD fields) */
body.board_73 #select_prefixes {
	display: none !important;
}
body.board_73 label[for="select_prefixes"] {
	display: none !important;
}
body.board_73 .ad_topic_kv {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	background: #f8fafc;
	border-radius: 12px;
	padding: 14px 18px;
	border: 1px solid #f1f5f9;
}
body.board_73 .ad_topic_kv .kv {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	min-width: 130px;
	flex: 1 1 auto;
	padding: 0 0 0 12px;
	border-radius: 0;
	border: none;
	border-left: 3px solid var(--ad-accent, #cbd5e1);
	background: none;
	position: relative;
}
body.board_73 .ad_topic_kv .kv::before {
	display: none;
}
body.board_73 .ad_topic_kv .kv_wide {
	/* Removed full width force so they flow normally */
}
body.board_73 .ad_topic_kv .kv_category { --ad-accent: #111827; }
body.board_73 .ad_topic_kv .kv_version { --ad-accent: #7c3aed; }
body.board_73 .ad_topic_kv .kv_rates { --ad-accent: #2563eb; }
body.board_73 .ad_topic_kv .kv_start { --ad-accent: #0ea5e9; }
body.board_73 .ad_topic_kv .kv_status { --ad-accent: #f59e0b; }
body.board_73 .ad_topic_kv .kv_website { --ad-accent: #22c55e; }
body.board_73 .ad_topic_kv .kv_discord { --ad-accent: #5865f2; }
body.board_73 .ad_topic_kv .k {
	font-size: 0.72rem;
	font-weight: 800;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	white-space: nowrap;
}
body.board_73 .ad_topic_kv .v {
	font-size: 0.95rem;
	font-weight: 800;
	color: #0f172a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
body.board_73 .ad_kv_sub {
	font-size: 0.78rem;
	font-weight: 800;
	color: #64748b;
}
body.board_73 .ad_topic_link {
	color: #2563eb;
	text-decoration: none;
}
body.board_73 .ad_topic_link:hover {
	text-decoration: underline;
}
body.board_73 .ad_topic_desc {
	margin-top: 16px;
	font-size: 0.95rem;
	color: #475569;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	padding: 0 4px;
	border-radius: 0;
	background: transparent;
	border: none;
}
body.board_73 .ad_topic_actions {
	margin-top: 20px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	position: relative;
	z-index: 3;
	padding-top: 16px;
	border-top: 1px solid #f1f5f9;
}
body.board_73 .ad_btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: 10px;
	border: 1px solid transparent;
	background: #f1f5f9;
	color: #334155;
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.8rem;
	transition: all 0.2s;
}
body.board_73 .ad_btn:hover {
	background: #e2e8f0;
	color: #0f172a;
	text-decoration: none;
	transform: translateY(-2px);
}
body.board_73 .ad_btn_primary {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
	border: none;
	color: #fff;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}
body.board_73 .ad_btn_primary:hover {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	border: none;
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}
body.board_73 .ad_btn_subtle {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #64748b;
}
body.board_73 .ad_btn_subtle:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
	color: #0f172a;
}
body.board_73 .ad_status {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 800;
	border: 1px solid transparent;
	line-height: 1.3;
}
body.board_73 .ad_status_open {
	background: #dcfce7;
	border-color: #86efac;
	color: #166534;
}
body.board_73 .ad_status_closed {
	background: #fee2e2;
	border-color: #fecaca;
	color: #991b1b;
}
body.board_73 .ad_status_cbt {
	background: #fef9c3;
	border-color: #fde047;
	color: #854d0e;
}
body.board_73 .ad_status_obt {
	background: #e0f2fe;
	border-color: #7dd3fc;
	color: #075985;
}

@media (max-width: 480px)
{
	body.board_73 #display_head.information {
		padding: 16px;
	}
	body.board_73 .ad_topic_kv {
		grid-template-columns: 1fr;
	}
	body.board_73 .ad_topic_meta {
		flex-direction: column;
		gap: 4px;
	}
}

@media (max-width: 640px)
{
	body.board_73 .ad_prefix_sections {
		grid-template-columns: 1fr;
	}
}
