/* Generator Section Styles - Override any conflicting styles */

/* Force visibility and override any conflicting styles */
.generator-section {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Reset any conflicting styles */
.generator-section * {
	box-sizing: border-box !important;
}

.generator-section .btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.5rem !important;
	padding: 0.75rem 1.5rem !important;
	border: 0.3rem solid #51253b !important;
	border-radius: 0.5rem !important;
	font-family: 'Retromeow', sans-serif !important;
	font-size: 1rem !important;
	font-weight: 500 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	text-decoration: none !important;
	position: relative !important;
	overflow: hidden !important;
	background-color: transparent !important;
	color: #51253b !important;
}

header.generator-section {
	background-color: #cd4c50 !important;
	width: 100% !important;
	position: sticky !important;
	top: 0 !important;
	min-height: 100vh !important;
	display: flex !important;
	align-items: center !important;
	position: relative !important;
	z-index: 1000 !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.generator-section {
	background-color: #cd4c50 !important;
	width: 100% !important;
	position: sticky !important;
	top: 0 !important;
	min-height: 100vh !important;
	display: flex !important;
	align-items: center !important;
	position: relative !important;
	z-index: 1000 !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Ensure all generator elements are visible */
.generator-container,
.generator-header,
.generator-title,
.generator-subtitle,
.generator-content,
.generator-preview,
.generator-img-container,
.generator-controls,
.main-actions,
.category-tabs,
.category-content,
.asset-grid {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.generator-content {
	display: grid !important;
}

.generator-preview {
	display: flex !important;
}

.generator-img-container {
	display: flex !important;
}

.main-actions {
	display: grid !important;
}

.category-tabs {
	display: flex !important;
}

.asset-grid {
	display: grid !important;
}

.generator-container {
	width: 100% !important;
	max-width: 1400px !important;
	margin: 0 auto !important;
	padding: 2rem !important;
	position: relative !important;
	z-index: 2 !important;
}

.generator-header {
	text-align: center;
	margin-bottom: 2rem;
}

.header-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.header-icon {
	font-size: 2.5rem;
	color: #51253b;
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.1);
	}
}

.generator-title {
	font-family: 'Retromeow', sans-serif;
	font-size: 3rem;
	font-weight: 700;
	color: #51253b;
	margin: 1rem 0;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.generator-subtitle {
	font-family: 'Retromeow', sans-serif;
	font-size: 1.2rem;
	font-weight: 400;
	color: #51253b;
	margin: 0;
}

.generator-content {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 3rem !important;
	align-items: start !important;
}

/* Preview Section */
.generator-preview {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

.generator-img-container {
	position: relative !important;
	width: 100% !important;
	height: 0 !important;
	padding-bottom: 100% !important;
	/* This creates 1:1 aspect ratio */
	border: 0.5rem solid #51253b !important;
	border-radius: 1rem !important;
	display: flex !important;
	justify-content: center !important;
	align-items: center !important;
	overflow: hidden !important;
	background: #fff !important;
	transition: all 0.2s ease !important;
}

.generator-img-container img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
}

.generator-img-container:hover {
	transform: translateY(-2px);
}

.generator-img-bg {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	z-index: 0 !important;
}

.generator-img-color {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	z-index: 2 !important;
}

.generator-img-eyes {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	z-index: 6 !important;
}

.generator-img-foot {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	z-index: 4 !important;
}

.generator-img-accessory {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	z-index: 1 !important;
}

.generator-img-hat {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	z-index: 5 !important;
}

/* Preview Controls */
.preview-controls {
	display: flex;
	gap: 0.5rem;
}

/* Control Panel */
.generator-controls {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	max-width: 100%;
}


/* Button Styles */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: 0.3rem solid #51253b;
	border-radius: 0.5rem;
	font-family: 'Retromeow', sans-serif;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	position: relative;
	overflow: hidden;
}

.btn:before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

.btn:hover:before {
	left: 100%;
}

.btn-primary {
	background-color: #ff6b35;
	color: white;
	border-color: #ff6b35;
}

.btn-primary:hover {
	background-color: #e55a2b;
	border-color: #e55a2b;
	transform: translateY(-2px);
}

.btn-success {
	background-color: #28a745;
	color: white;
	border-color: #28a745;
}

.btn-success:hover {
	background-color: #218838;
	border-color: #218838;
	transform: translateY(-2px);
}

.btn-warning {
	background-color: #ffc107;
	color: #212529;
	border-color: #ffc107;
}

.btn-warning:hover {
	background-color: #e0a800;
	border-color: #e0a800;
	transform: translateY(-2px);
}

.btn-outline {
	background-color: transparent;
	color: #51253b;
	border: 0.3rem solid #51253b;
}

.btn-outline:hover {
	background-color: #51253b;
	color: white;
	transform: translateY(-2px);
}

.btn-large {
	padding: 1rem 2rem;
	font-size: 1.1rem;
}

.btn-small {
	padding: 0.5rem 1rem;
	font-size: 0.9rem;
}


/* Category Tabs */
.category-tabs {
	display: flex;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.1);
	padding: 0.5rem;
	border-radius: 0.75rem;
	backdrop-filter: blur(10px);
}

.tab-btn {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	padding: 0.75rem 0.5rem;
	background: transparent;
	border: none;
	border-radius: 0.5rem;
	color: #51253b;
	font-family: 'Retromeow', sans-serif;
	font-size: 0.9rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.tab-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-1px);
}

.tab-btn.active {
	background: #51253b;
	color: white;
	box-shadow: 0 4px 12px rgba(81, 37, 59, 0.3);
}

.tab-btn i {
	font-size: 1.2rem;
}


/* Category Content */
.category-content {
	background: white !important;
	border: 0.3rem solid #51253b !important;
	border-radius: 1rem !important;
	padding: 1.5rem !important;
	min-height: 400px !important;
	max-height: 500px !important;
	overflow-y: auto !important;
}

.category-panel {
	display: none !important;
}

.category-panel.active {
	display: block !important;
}

.category-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.category-header h3 {
	font-family: 'Retromeow', sans-serif;
	font-size: 1.3rem;
	font-weight: 600;
	color: #51253b;
	margin: 0;
}

.item-counter {
	font-family: 'Retromeow', sans-serif;
	font-size: 0.9rem;
	font-weight: 500;
	color: #6c757d;
	background: #f8f9fa;
	padding: 0.25rem 0.75rem;
	border-radius: 1rem;
}

.item-controls {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.item-preview {
	width: 80px;
	height: 80px;
	border: 2px solid #e9ecef;
	border-radius: 0.5rem;
	overflow: hidden;
	background: #f8f9fa;
	display: flex;
	align-items: center;
	justify-content: center;
}

.item-preview img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Asset Grid */
.asset-grid {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
	gap: 0.75rem !important;
	margin-bottom: 1.5rem !important;
	max-height: 300px !important;
	overflow-y: auto !important;
	padding: 0.5rem !important;
	border: 2px solid #f8f9fa !important;
	border-radius: 0.75rem !important;
	background: #fafbfc !important;
}

.asset-item {
	position: relative;
	width: 80px;
	height: 80px;
	border: 0.3rem solid #51253b;
	border-radius: 0.5rem;
	overflow: hidden;
	background: white;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.asset-item:hover {
	border-color: #ff6b35;
	transform: translateY(-2px);
}

.asset-item.selected {
	border-color: #51253b;
	background: #51253b;
}

.asset-item img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	transition: all 0.2s ease !important;
}

.asset-item.selected img {
	filter: brightness(0) invert(1);
}

.asset-item .asset-number {
	position: absolute;
	top: 2px;
	right: 2px;
	background: rgba(0, 0, 0, 0.7);
	color: white;
	font-size: 0.7rem;
	font-weight: 600;
	padding: 2px 4px;
	border-radius: 3px;
	font-family: 'Retromeow', sans-serif;
}

.asset-item.selected .asset-number {
	background: rgba(255, 255, 255, 0.9);
	color: #51253b;
}

/* Category Actions */
.category-actions {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin-top: 2rem;
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
	backdrop-filter: blur(10px);
}

.randomize-category {
	text-align: center;
}


/* Responsive Design */
@media screen and (max-width: 1200px) {
	.generator-content {
		grid-template-columns: 1fr !important;
		gap: 2rem !important;
	}

	.generator-img-container {
		max-width: 400px;
		margin: 0 auto;
	}
}

@media screen and (max-width: 768px) {
	.generator-container {
		padding: 1rem !important;
	}

	.generator-title {
		font-size: 2.5rem !important;
	}

	.generator-img-container {
		max-width: 300px !important;
		margin: 0 auto !important;
	}

	.category-actions {
		flex-direction: column !important;
		gap: 0.75rem !important;
	}

	.category-tabs {
		flex-wrap: wrap !important;
		gap: 0.25rem !important;
	}

	.tab-btn {
		flex: 1 1 calc(50% - 0.125rem) !important;
		min-width: 0 !important;
	}

	.tab-btn span {
		display: none !important;
	}

	.tab-btn i {
		font-size: 1.5rem !important;
	}

	.header-icon {
		font-size: 2rem !important;
	}
}

@media screen and (max-width: 480px) {
	.generator-title {
		font-size: 2rem !important;
	}

	.generator-subtitle {
		font-size: 1rem !important;
	}

	.generator-img-container {
		max-width: 250px !important;
		margin: 0 auto !important;
	}

	.btn-large {
		padding: 0.75rem 1.5rem !important;
		font-size: 1rem !important;
	}

	.category-content {
		padding: 1rem !important;
	}

	.asset-grid {
		grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)) !important;
		gap: 0.5rem !important;
		max-height: 250px !important;
	}

	.asset-item {
		width: 60px !important;
		height: 60px !important;
	}

	.asset-item .asset-number {
		font-size: 0.6rem !important;
		padding: 1px 3px !important;
	}
}