.auth_loader
{
	justify-self: center;
}

/* Layout Wrapper */
.approvals_wrapper
{
	display: block;
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px;
}

.approvals_section
{
	margin-bottom: 40px;
}


/* --- Feed & Toolbar --- */

.feed_toolbar
{
	display: flex;
	flex-direction: column;
	/* justify-content: center; */
	align-items: center;
	margin-bottom: 20px;
	background: var(--element-bg-primary);
	padding: 15px;
	border-radius: var(--std-border-radius);
	/* border-bottom: 4px solid rgba(26, 26, 26, 0.5); */
	box-shadow: var(--primary-shadow);
}

.result_count
{
	color: var(--primary-orange);
	font-size: 1.5rem;
	text-transform: uppercase;
	font-weight: bold;
}


/* --- The Grid --- */
.asset_grid
{
	display: grid;
	/* Auto-fit magic: cards will resize but never get smaller than 250px */
	grid-template-columns: repeat(auto-fill, minmax(250px, .8fr));
	gap: 20px;
	background: var(--element-bg-primary);
	border-radius: var(--std-border-radius);
	backdrop-filter: blur(var(--std-blur-val));
	padding: 10px;
	box-shadow: var(--primary-shadow);
}

.asset_card
{
	/* background: var(--element-bg-secondary); */
	/* border: var(--element-border-primary); */
	border-radius: var(--std-border-radius);
	overflow: hidden;
	/* remove the old generic fade animation and start cards hidden */
	animation: none;
	opacity: 0;
	transform: translateY(0) scale(1);
	box-shadow: var(--secondary-shadow);
	transition: all 300ms ease, opacity 480ms cubic-bezier(.2, .9, .3, 1);
}

/* New staggered "pop & rise" animation.
   Uses --delay (e.g. 0.08s, 0.16s...) to stagger each card. */
.asset_card.animate-in
{
	/* Have to have the fade as a separate animation so we can  */
	animation: card_pop 480ms cubic-bezier(.2, .9, .3, 1) var(--delay, 0s), fade_in 480ms cubic-bezier(.2, .9, .3, 1) var(--delay, 0s) both;
	opacity: 1;
}

/* Slight secondary hover polish (keeps existing behavior) */
.asset_card:hover
{
	transform: translateY(-5px) scale(1.02);
	/* background-color: var(--element-bg-secondary); */
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
	border-color: var(--off-orange);
}

/* Keyframes for pop/rise */
@keyframes card_pop
{
	0%
	{
		transform: translateY(18px) scale(0.8);
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	}

	30%
	{
		transform: translateY(-6px);
		box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
	}

	100%
	{
		transform: translateY(0) scale(1);
		box-shadow: var(--secondary-shadow);
	}
}

@keyframes fade_in
{
	0%
	{
		opacity: 0;
	}

	30%
	{
		opacity: 1;
	}
}

.card_thumb
{
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 1/1;
	overflow: hidden;
	cursor: pointer;
}

.card_thumb img
{
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
}

.card_type_badge
{
	position: absolute;
	top: 10px;
	left: 10px;
	background: rgba(0, 0, 0, 0.4);
	color: var(--primary-orange);
	padding: 4px 8px;
	font-size: .8rem;
	font-weight: bold;
	border-radius: var(--std-border-radius);
	border: 1px solid var(--primary-orange);
	backdrop-filter: blur(var(--std-blur-val));
}

.card_body
{
	padding: 15px;
	background-color: var(--secondary-orange);
}

.asset_card:hover .card_body
{
	border-color: var(--element-bg-primary);
}

.card_title
{
	margin: 0 0 10px 0;
	font-size: 1rem;
	color: white;
	/* Truncate text if too long */
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.card_title a:hover
{
	text-decoration: underline;
}

.card_meta
{
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.85rem;
	color: var(--gray-text);
}

.card_author
{
	text-overflow: ellipsis;
}

.card_author a:hover
{
	text-decoration: underline;
}

.highlight
{
	color: var(--primary-orange);
	font-weight: 650;
}

.card_stats
{
	display: flex;
	gap: 10px;
}

.manage_actions
{
	display: flex;
	gap: 10px;
}

.action_btn
{
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--element-bg-primary);
	border: 1px solid #444;
	color: #aaa;
	text-decoration: none;
	cursor: pointer;
	border-radius: 4px;
	transition: all .2s ease;
	box-shadow: var(--secondary-shadow);
	margin: 0;
	padding: 3px;
}

.action_btn:hover
{
	background-color: var(--off-orange);
	border-color: var(--secondary-orange);
}

.action_btn.delete:hover
{
	background-color: #880000;
	border-color: red;
}

.action_btn img
{
	width: 32px;
	height: 32px;
}

.action_btn.view
{
	width: 40px;
	height: 40px;
	font-size: 26px;
	padding: 4px 8px 8px;
	vertical-align: center;
}