.resources_wrapper
{
	padding: 60px 40px;
	max-width: 1400px;
	margin: 0 auto;
}

/* Section Headers */
.section_header
{
	margin-bottom: 40px;
	display: flex;
	align-items: center;
	gap: 2rem;
}

.section_title
{
	font-size: 3rem;
	color: var(--primary-orange);
	white-space: nowrap;
	letter-spacing: 2px;
}

.header_line
{
	height: 2px;
	background: #333;
	flex-grow: 1;
}

/* DEVRAW DOCs Section */
.docs_section
{
	margin-bottom: 80px;
}

.docs_card
{
	background: rgba(20, 20, 20, 0.7);
	border: 1px solid #222;
	border-radius: var(--std-border-radius);
	padding: 40px;
	text-align: center;
	backdrop-filter: blur(var(--std-blur-val));
	box-shadow: var(--secondary-shadow);
	transition: all 0.3s ease;
}

.docs_card:hover
{
	border-color: var(--primary-orange);
	transform: translateY(-5px);
	box-shadow: var(--primary-shadow);
}

.docs_title
{
	font-size: 2rem;
	color: var(--primary-orange);
	margin-bottom: 20px;
}

.docs_description
{
	color: #ccc;
	font-size: 1.1rem;
	line-height: 1.6;
	margin-bottom: 30px;
}

.docs_link_btn
{
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: var(--primary-orange);
	color: white;
	padding: 15px 30px;
	border-radius: var(--std-border-radius);
	text-decoration: none;
	font-weight: bold;
	font-size: 1.1rem;
	transition: all 0.3s ease;
}

.docs_link_btn:hover
{
	background-color: var(--off-orange);
	transform: scale(1.05);
}

.external_link_icon
{
	width: 16px;
	height: 16px;
	filter: brightness(0) invert(1);
}

/* Tools Section */
.tools_section
{
	margin-bottom: 40px;
}

/* Admin Panel */
.admin_tools_panel
{
	background: rgba(20, 20, 20, 0.8);
	border: 2px solid var(--primary-orange);
	border-radius: var(--std-border-radius);
	padding: 30px;
	margin-top: 60px;
	margin-bottom: 40px;
	backdrop-filter: blur(var(--std-blur-val));
}

.admin_panel_title
{
	font-size: 1.5rem;
	color: var(--primary-orange);
	margin-bottom: 20px;
	text-align: center;
}

.admin_form
{
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form_group
{
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form_label
{
	color: var(--light-text);
	font-weight: 500;
	font-size: 1rem;
}

.form_input,
.form_textarea
{
	background: rgba(30, 30, 30, 0.8);
	border: 1px solid #333;
	border-radius: var(--std-border-radius);
	padding: 12px 15px;
	color: var(--light-text);
	font-family: inherit;
	font-size: 1rem;
	transition: all 0.3s ease;
}

.form_input:focus,
.form_textarea:focus
{
	outline: none;
	border-color: var(--primary-orange);
	box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.form_textarea
{
	resize: vertical;
	min-height: 100px;
}

.form_actions
{
	display: flex;
	gap: 15px;
	align-items: center;
}

.btn_submit
{
	background-color: var(--primary-orange);
	color: white;
	border: none;
	padding: 12px 30px;
	border-radius: var(--std-border-radius);
	font-weight: bold;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn_submit:hover:not(:disabled)
{
	background-color: var(--off-orange);
	transform: scale(1.05);
}

.btn_submit:disabled
{
	opacity: 0.6;
	cursor: not-allowed;
}

.btn_cancel
{
	background-color: transparent;
	color: var(--light-text);
	border: 1px solid #666;
	padding: 12px 30px;
	border-radius: var(--std-border-radius);
	font-weight: bold;
	font-size: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn_cancel:hover
{
	border-color: var(--light-text);
	background-color: rgba(255, 255, 255, 0.1);
}

.error_message
{
	color: #ff4444;
	font-size: 0.9rem;
	margin-top: 10px;
}

.success_message
{
	color: #44ff44;
	font-size: 0.9rem;
	margin-top: 10px;
}

/* Loading State */
.loading_state
{
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 60px;
}

/* Tools Grid */
.tools_grid
{
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	background: var(--element-bg-primary);
	border-radius: var(--std-border-radius);
	backdrop-filter: blur(var(--std-blur-val));
	padding: 10px;
	min-height: 15rem;
	box-shadow: var(--primary-shadow);
}

.tool_card
{
	background: #151515;
	border: 1px solid #222;
	border-radius: var(--std-border-radius);
	overflow: hidden;
	position: relative;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	/* Animation setup - start hidden */
	animation: none;
	opacity: 0;
	transform: translateY(0) scale(1);
	box-shadow: var(--secondary-shadow);
}

/* Staggered animation when cards are loaded */
.tool_card.animate-in
{
	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;
}

/* Keyframes for pop/rise animation */
@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;
	}

	100%
	{
		opacity: 1;
	}
}

.tool_card:hover
{
	transform: translateY(-10px);
	border-color: var(--primary-orange);
	box-shadow: var(--primary-shadow);
}

.tool_thumbnail
{
	width: 100%;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: #1a1a1a;
	position: relative;
}

.tool_image
{
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	background-color: #1a1a1a;
	background-image: url('/static/tool_default.webp');
	background-size: cover;
	background-position: center;
}

.tool_card:hover .tool_image
{
	transform: scale(1.1);
}

.tool_content
{
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.tool_name
{
	font-size: 1.3rem;
	color: var(--primary-orange);
	margin: 0 0 15px 0;
	font-weight: 600;
	text-decoration: none;
}

.tool_description
{
	color: #ccc;
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 20px;
	flex-grow: 1;
}

.tool_link_btn
{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: transparent;
	color: var(--primary-orange);
	border: 1px solid var(--primary-orange);
	padding: 10px 20px;
	border-radius: var(--std-border-radius);
	text-decoration: none;
	font-weight: bold;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	width: fit-content;
}

.tool_link_btn:hover
{
	background-color: var(--primary-orange);
	color: white;
}

.tool_link_btn .external_link_icon
{
	filter: brightness(0) saturate(100%) invert(48%) sepia(100%) saturate(2000%) hue-rotate(0deg) brightness(1.2);
	width: 14px;
	height: 14px;
}

.tool_link_btn:hover .external_link_icon
{
	filter: brightness(0) invert(1);
}

/* Admin Actions on Tool Cards */
.tool_admin_actions
{
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	gap: 8px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.tool_card:hover .tool_admin_actions
{
	opacity: 1;
}

.admin_action_btn
{
	background: rgba(0, 0, 0, 0.8);
	border: 1px solid #444;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 1.2rem;
	transition: all 0.3s ease;
	backdrop-filter: blur(5px);
}

.admin_action_btn.edit:hover
{
	background: rgba(255, 193, 7, 0.3);
	border-color: #ffc107;
}

.admin_action_btn.delete:hover
{
	background: rgba(255, 68, 68, 0.3);
	border-color: #ff4444;
}

/* Empty State */
.empty_state
{
	text-align: center;
	padding: 60px 20px;
	color: #888;
	font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px)
{
	.resources_wrapper
	{
		padding: 40px 20px;
	}

	.section_title
	{
		font-size: 2rem;
	}

	.docs_card
	{
		padding: 30px 20px;
	}

	.tools_grid
	{
		grid-template-columns: 1fr;
	}

	.admin_tools_panel
	{
		padding: 20px;
	}

	.form_actions
	{
		flex-direction: column;
	}

	.btn_submit,
	.btn_cancel
	{
		width: 100%;
	}
}