/* Asset Page Styles */
.asset-section {
	width: 100%;
	max-width: 1200px;
	margin-top: 8px;
	margin-bottom: 24px;
	position: relative;
}

/* Back Link */
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #ffffff80;
	text-decoration: none;
	transition: color 0.2s ease;
	margin-bottom: 24px;
}

.back-link:hover {
	color: var(--accent-color);
}

.back-link svg {
	transition: transform 0.2s ease;
}

.back-link:hover svg {
	transform: translateX(-4px);
}

/* Asset Layout */
.asset-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: start;
	position: relative;
}

/* Asset Main */
.asset-main {
	/* No background, border, or card styling - just content */
}

/* Asset Header */
.asset-header {
	margin-bottom: 32px;
}

.asset-image-container {
	position: relative;
	width: 100%;
	max-height: 200px;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 24px;
	background-color: #0c0c0c;
	border: 1px solid #ffffff08;
}

.asset-image {
	width: 100%;
	height: 200px;
	display: block;
	object-fit: cover;
}

.asset-price-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background-color: rgba(0, 0, 0, 0.8);
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
}

.asset-price-badge .robux-icon {
	width: 16px;
	height: 16px;
}

.asset-header-content {
	padding-bottom: 24px;
	border-bottom: 1px solid #ffffff14;
}

.asset-category {
	margin-bottom: 16px;
}

.category-badge {
	display: inline-block;
	padding: 6px 12px;
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background-color: var(--accent-15);
	color: var(--accent-color);
	border-radius: 6px;
}

.category-badge.free {
	background-color: rgba(85, 234, 174, 0.15);
	color: #55eaae;
}

.category-badge.premium {
	background-color: rgba(234, 154, 85, 0.15);
	color: #ea9a55;
}

.asset-title {
	font-family: 'Poppins', sans-serif;
	font-size: 36px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.2;
	margin: 0 0 24px 0;
}

.asset-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.asset-author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.author-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.author-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.author-name {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
}

.post-date {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: #ffffff60;
}

.post-date svg {
	opacity: 0.7;
}

.asset-stats {
	display: flex;
	align-items: center;
	gap: 12px;
}

.stat-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: #ffffff60;
}

.stat-item svg {
	opacity: 0.7;
}

.stat-divider {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background-color: #ffffff30;
}

/* Asset Description */
.asset-description {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid #ffffff14;
}

.asset-excerpt {
	font-family: 'Inter', sans-serif;
	font-size: 18px;
	font-weight: 500;
	color: #ffffffc0;
	line-height: 1.7;
	margin: 0;
}

/* Download Section */
.download-section {
	margin-bottom: 48px;
	padding: 24px;
	background-color: #0c0c0c;
	border-radius: 12px;
	border: 1px solid #ffffff08;
}

.download-section-title {
	font-family: 'Poppins', sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 20px 0;
}

.download-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.download-link {
	display: flex;
	align-items: center;
	padding: 16px;
	background-color: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.download-link:hover {
	background-color: rgba(255, 255, 255, 0.06);
	border-color: var(--accent-color);
}

.download-link-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 16px;
}

.download-link-info {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.download-link-label {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
}

.download-link-meta {
	display: flex;
	align-items: center;
	gap: 12px;
}

.download-link-size {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	color: #ffffff60;
}

.download-link-format {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	color: var(--accent-color);
	background-color: var(--accent-15);
	padding: 2px 8px;
	border-radius: 4px;
}

.download-link svg {
	color: var(--accent-color);
	flex-shrink: 0;
}

.purchase-btn {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 24px;
	background-color: var(--accent-color);
	color: var(--accent-text);
	border: none;
	border-radius: 8px;
	font-family: 'Poppins', sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.purchase-btn:hover {
	background-color: var(--accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(85, 97, 234, 0.3);
}

.purchase-btn svg {
	width: 14px;
	height: 14px;
}

/* Asset Content */
.asset-content {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	line-height: 1.8;
	color: #ffffffa0;
	margin-bottom: 48px;
}

.asset-content h2 {
	font-family: 'Poppins', sans-serif;
	font-size: 28px;
	font-weight: 600;
	color: #ffffff;
	margin: 48px 0 16px 0;
	line-height: 1.3;
	scroll-margin-top: 100px;
}

.asset-content h2:first-of-type {
	margin-top: 0;
}

.asset-content p {
	margin-bottom: 20px;
}

.asset-content ul,
.asset-content ol {
	margin: 20px 0;
	padding-left: 24px;
}

.asset-content li {
	margin-bottom: 12px;
	line-height: 1.7;
}

.asset-content ul {
	list-style-type: disc;
}

.asset-content ol {
	list-style-type: decimal;
}

.asset-content strong {
	color: #ffffff;
	font-weight: 600;
}


/* Purchase Modal Styles (reused from resources.css) */
.purchase-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1000;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.purchase-modal.show {
	display: flex;
}

.purchase-modal-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(4px);
}

.purchase-modal-content {
	position: relative;
	width: 100%;
	max-width: 500px;
	background-color: #0c0c0c;
	border-radius: 12px;
	border: 1px solid #ffffff08;
	overflow: hidden;
	z-index: 1;
	max-height: 90vh;
	overflow-y: auto;
}

.purchase-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(255, 255, 255, 0.1);
	border: none;
	border-radius: 8px;
	color: #ffffff;
	cursor: pointer;
	transition: all 0.2s ease;
	z-index: 2;
}

.purchase-modal-close:hover {
	background-color: rgba(255, 255, 255, 0.2);
}

.purchase-modal-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	background-color: #000;
}

.purchase-modal-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.purchase-modal-body {
	padding: 24px;
}

.purchase-modal-header h2 {
	font-family: 'Poppins', sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 8px 0;
}

.purchase-modal-header p {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #ffffff80;
	margin: 0 0 16px 0;
	line-height: 1.6;
}

.purchase-modal-author {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: #ffffff60;
	margin-bottom: 20px;
}

.purchase-modal-author span:last-child {
	color: #ffffff;
	font-weight: 600;
}

.purchase-modal-features h3 {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	margin: 0 0 12px 0;
}

.purchase-modal-features ul {
	list-style: none;
	padding: 0;
	margin: 0 0 20px 0;
}

.purchase-modal-features li {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: #ffffff80;
	padding: 6px 0;
	padding-left: 20px;
	position: relative;
	line-height: 1.5;
}

.purchase-modal-features li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	color: var(--accent-color);
	font-weight: 600;
}

.purchase-modal-price {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px;
	background-color: rgba(255, 255, 255, 0.03);
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.purchase-price-label {
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	color: #ffffff60;
}

.purchase-price-value {
	display: flex;
	align-items: center;
	gap: 6px;
	font-family: 'Poppins', sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: #ffffff;
}

.purchase-price-value .robux-icon {
	width: 18px;
	height: 18px;
}

.purchase-modal-footer {
	display: flex;
	gap: 12px;
	padding: 20px 24px;
	border-top: 1px solid #ffffff08;
}

.purchase-modal-btn {
	flex: 1;
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.purchase-modal-btn.secondary {
	background-color: rgba(255, 255, 255, 0.05);
	color: #ffffff;
}

.purchase-modal-btn.secondary:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.purchase-modal-btn.primary {
	background-color: var(--accent-color);
	color: var(--accent-text);
}

.purchase-modal-btn.primary:hover {
	background-color: var(--accent-hover);
}

/* Tablet breakpoint */
@media (max-width: 1919px) {
	.asset-section {
		max-width: calc(100% - 40px);
	}
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
	.asset-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

@media (max-width: 768px) {
	.asset-section {
		max-width: 100%;
		margin-top: 8px;
	}

	.asset-title {
		font-size: 28px;
		margin-bottom: 20px;
	}

	.asset-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.asset-content {
		font-size: 15px;
	}

	.asset-excerpt {
		font-size: 16px;
		margin-bottom: 24px;
		padding-bottom: 20px;
	}

	.asset-content h2 {
		font-size: 22px;
		margin: 32px 0 12px 0;
	}

	.asset-image-container {
		max-height: 150px;
	}

	.asset-image {
		height: 150px;
	}

	.download-section {
		padding: 20px;
	}

	.purchase-modal-content {
		max-width: 100%;
		margin: 0;
		border-radius: 0;
	}

	.purchase-modal-footer {
		flex-direction: column;
	}

	.purchase-modal-btn {
		width: 100%;
	}
}
