/* Trends Branding Solutions Modal Styles */

.trends-branding-container {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.trends-branding-btn {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.trends-branding-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.trends-branding-modal {
	display: none;
	position: fixed;
	z-index: 9999999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(5px);
	animation: fadeIn 0.3s ease;
}

/* Handle WordPress admin bar */
.admin-bar .trends-branding-modal {
	top: 32px;
	height: calc(100% - 32px);
}

@media (max-width: 782px) {
	.admin-bar .trends-branding-modal {
		top: 46px;
		height: calc(100% - 46px);
	}
}

/* Force modal above all other elements */
.trends-branding-modal {
	z-index: 9999999 !important;
}

.trends-branding-modal-content {
	z-index: 9999999 !important;
	position: relative;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.trends-branding-modal-content {
	background-color: #fff;
	margin: 2% auto;
	padding: 20px;
	border-radius: 12px;
	width: 98%;
	max-width: 1600px;
	max-height: 92vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: slideIn 0.3s ease;
}

@keyframes slideIn {
	from {
		transform: translateY(-50px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.trends-branding-close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	position: absolute;
	top: 15px;
	right: 20px;
	transition: color 0.3s ease;
}

.trends-branding-close:hover,
.trends-branding-close:focus {
	color: #000;
}

.trends-branding-modal h2 {
	margin: 0 0 15px 0;
	color: #333;
	font-size: 22px;
	font-weight: 700;
	text-align: center;
	border-bottom: 2px solid #667eea;
	padding-bottom: 10px;
}

.trends-branding-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
	margin-top: 15px;
}

.trends-branding-item {
	background: #fff;
	border-radius: 6px;
	padding: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 1px solid #f0f0f0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.trends-branding-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	border-color: #667eea;
}

.trends-branding-item-image {
	width: 100%;
	height: 80px;
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	border-radius: 4px;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.trends-branding-item-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
	transition: transform 0.3s ease;
}

.trends-branding-item:hover .trends-branding-item-image img {
	transform: scale(1.05);
}

.trends-branding-item h3 {
	margin: 0 0 4px 0;
	color: #333;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.1;
}

.trends-branding-item p {
	margin: 0;
	color: #666;
	font-size: 10px;
	line-height: 1.2;
}

/* Solution Detail Modal */
.solution-detail-content {
	max-width: 1600px;
	width: 98%;
}

.back-button {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.back-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
	background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.back-button::before {
	content: "←";
	font-size: 16px;
	font-weight: bold;
}

.solution-detail-content h2 {
	text-align: left;
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 20px;
}

.solution-detail-content h3 {
	color: #333;
	font-size: 22px;
	font-weight: 600;
	margin: 25px 0 15px 0;
	padding-bottom: 8px;
	border-bottom: 2px solid #667eea;
}

.solution-detail-content p {
	color: #555;
	line-height: 1.6;
	margin-bottom: 15px;
}

.solution-detail-content ul {
	margin: 15px 0;
	padding-left: 20px;
}

.solution-detail-content li {
	color: #555;
	line-height: 1.6;
	margin-bottom: 8px;
}

.solution-detail-content .advantages {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	border-left: 4px solid #28a745;
	margin: 20px 0;
}

.solution-detail-content .limitations {
	background: #fff5f5;
	padding: 20px;
	border-radius: 8px;
	border-left: 4px solid #dc3545;
	margin: 20px 0;
}

.solution-detail-content .artwork-requirements {
	background: #f0f8ff;
	padding: 20px;
	border-radius: 8px;
	border-left: 4px solid #007bff;
	margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
	.trends-branding-modal-content {
		margin: 5% auto;
		padding: 15px;
		width: 98%;
		max-width: 98%;
	}

	.trends-branding-grid {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
		gap: 10px;
	}

	.trends-branding-modal h2 {
		font-size: 20px;
		margin-bottom: 15px;
	}

	.trends-branding-item {
		padding: 8px;
	}

	.trends-branding-item-image {
		height: 80px;
	}

	.trends-branding-item h3 {
		font-size: 12px;
	}

	.trends-branding-item p {
		font-size: 10px;
	}
}

@media (max-width: 480px) {
	.trends-branding-modal-content {
		margin: 5% auto;
		padding: 15px;
	}

	.trends-branding-modal h2 {
		font-size: 20px;
		margin-bottom: 20px;
	}

	.trends-branding-item h3 {
		font-size: 18px;
	}

	.trends-branding-item p {
		font-size: 13px;
	}
}

/* Loading state */
.trends-branding-loading {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 200px;
}

.trends-branding-loading::after {
	content: '';
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #667eea;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
