/* Base Utilities */
.ui-mt { margin-top: 1rem; }

.ui-mb { margin-bottom: 1rem; }

.ui-pc { padding: 1rem; }

.ui-w100 { width: 100%; }

/* Flex Utilities */
.ui-fcc {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}

.ui-mlc { margin-left: 0.5rem; }

/* Box Component */
.ui-box {
	--box-bg: #484f5b;
	--header-bg: #1e2b35;
	--border-color: rgba(255, 255, 255, 0.12);
	--header-icon-color: #f59e0b;

	background-color: var(--box-bg);
	border: 1px solid var(--border-color);
	border-radius: 0.5rem;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ui-box:hover {
	/*transform: translateY(-2px);*/
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Box Variants */
.ui-box--yellow {
	--box-bg: #b27f08;
	--header-bg: #8c6405;
}

.ui-box--red {
	--box-bg: #533131;
	--header-bg: #2d1011;
}

.ui-box--black {
	--box-bg: #353535;
	--header-bg: #1e1e1e;
}

/* Box Header */
.ui-box__header {
	display: flex;
	align-items: center;
	background-color: var(--header-bg);
	padding: 0.65rem 1.25rem;
	gap: 0.75rem;
}

.ui-box__header .fa {
	color: var(--header-icon-color);
	font-size: 1.25rem;
	transition: color 0.2s ease;
}

.ui-box__header:hover .fa {
	color: #ffa500;
}

.ui-box__header h2 {
	color: white;
	font-weight: 200;
	font-size: 1.1rem;
	margin: 0;
	line-height: 1.4;
}

/* Box Content */
.ui-box__content {
	flex: 1;
	position: relative;
}

.ui-box__content a {
	color: #ffa500;
	text-decoration: none;
	transition: color 0.2s ease;
}

.ui-box__content a:hover {
	color: #ffb52e;
	text-decoration: underline;
}

/* Box Button */
.ui-box__button {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 1rem;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	transition: all 0.2s ease;
	border: 1px solid var(--border-color);
	gap: 0.5rem;
	margin-top: 1rem;
}

.ui-box__button:hover {
	background-color: var(--ls-bg-grey);
	color: #fff;
	border-color: #ffa500;
}

.ui-box__button.ls-bg-red:hover {
	background-color: var(--ls-red);
	color: #fff;
	border-color: var(--ls-bg-red);
}

.ui-box__button.ls-bg-grey:hover {
	background-color: var(--ls-bg-grey);
	color: #fff;
	border-color: var(--ls-grey);
}

.ui-box__button.ls-bg-yellow:hover {
	background-color: var(--ls-yellow);
	color: #fff;
	border-color: var(--ls-bg-yellow);
}

/* Head Button */
.ui-box__headbutton {
	margin-left: auto;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	color: white;
	background-color: rgba(8, 8, 8, 0.3);
	border: 1px solid rgba(255, 165, 0, 0.3);
	border-radius: 0.25rem;
	transition: all 0.2s ease;
}

.ui-box__headbutton:hover {
	background-color: rgba(255, 165, 0, 0.15);
	border-color: rgba(255, 165, 0, 0.5);
}

.ui-box__headbutton i {
	color: #ffa500;
}

/* Action Link */
.ui-action {
	position: relative;
	text-decoration: none;
	font-weight: 600;
	padding: 0.5rem 1.5rem;
	color: white;
	transition: color 0.2s ease;
}

.ui-action::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: #ffa500;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease;
}

.ui-action:hover {
	color: #ffa500;
}

.ui-action:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* Responsive */
@media screen and (max-width: 700px) {
	.ui-mlc {
		margin-left: 0;
	}

	.ui-box__halfs > * {
		width: 100%;
	}
}