/**
 * Admin Bar & Pro Notice Styling for AI Blog
 */

/* ============================================
   PRO UPGRADE NOTICE
   ============================================ */
.ai-blog-pro-notice {
	margin: 20px 0 0;
	padding: 0;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	animation: ai-blog-pro-slide-in 0.4s ease forwards;
	opacity: 0;
	transform: translateY(-10px);
	position: relative;
}

@keyframes ai-blog-pro-slide-in {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Gradient top bar */
.ai-blog-pro-notice::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #f97316, #ef4444, #ec4899, #8b5cf6);
	background-size: 200% 100%;
	animation: ai-blog-pro-gradient 3s linear infinite;
}

@keyframes ai-blog-pro-gradient {
	0% { background-position: 0% 0%; }
	100% { background-position: 200% 0%; }
}

.ai-blog-pro-notice-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 16px 40px 16px 20px;
	position: relative;
}

/* Content */
.ai-blog-pro-notice-content {
	flex: 1;
	min-width: 0;
}

.ai-blog-pro-notice-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 4px;
}

.ai-blog-pro-greeting {
	font-size: 13px;
	color: #6b7280;
}

.ai-blog-pro-badge {
	display: inline-block;
	padding: 2px 8px;
	background: linear-gradient(135deg, #f97316, #ef4444);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	border-radius: 4px;
	letter-spacing: 0.5px;
}

.ai-blog-pro-notice-title {
	margin: 0 0 4px;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	color: #111827;
	line-height: 1.3;
}

.ai-blog-pro-notice-desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #6b7280;
}

.ai-blog-pro-notice-desc strong {
	color: #f97316;
}

/* Changelog */
.ai-blog-pro-changelog {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	padding: 4px 10px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 4px;
	font-size: 11px;
	line-height: 1.4;
}

.ai-blog-pro-changelog-badge {
	padding: 1px 6px;
	background: #22c55e;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	border-radius: 3px;
}

.ai-blog-pro-changelog-text {
	color: #166534;
}

/* Actions */
.ai-blog-pro-notice-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.ai-blog-pro-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 16px;
	border: none;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	white-space: nowrap;
	line-height: 1.4;
}

/* Primary - Upgrade */
.ai-blog-pro-btn-primary {
	background: linear-gradient(135deg, #f97316, #ef4444);
	color: #fff;
	box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.ai-blog-pro-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
	color: #fff;
}

/* Secondary - View */
.ai-blog-pro-btn-secondary {
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #e5e7eb;
}

.ai-blog-pro-btn-secondary:hover {
	background: #e5e7eb;
	color: #111827;
}

/* Dismiss */
.ai-blog-pro-btn-dismiss {
	background: transparent;
	color: #9ca3af;
	font-size: 11px;
	padding: 6px 12px;
}

.ai-blog-pro-btn-dismiss:hover {
	color: #6b7280;
}

/* Close X */
.ai-blog-pro-notice-close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 4px;
	color: #9ca3af;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ai-blog-pro-notice-close svg {
	width: 12px;
	height: 12px;
}

.ai-blog-pro-notice-close:hover {
	background: #f3f4f6;
	color: #ef4444;
}

/* Exit animation */
.ai-blog-pro-notice.ai-blog-pro-exit {
	animation: ai-blog-pro-slide-out 0.3s ease forwards;
}

@keyframes ai-blog-pro-slide-out {
	to {
		opacity: 0;
		transform: translateY(-10px);
		max-height: 0;
		margin: 0;
		padding: 0;
		overflow: hidden;
	}
}

/* Responsive */
@media screen and (max-width: 782px) {
	.ai-blog-pro-notice-inner {
		flex-direction: column;
		align-items: flex-start;
		padding: 14px 36px 14px 14px;
		gap: 12px;
	}

	.ai-blog-pro-notice-actions {
		width: 100%;
		flex-wrap: wrap;
	}

	.ai-blog-pro-btn {
		flex: 1;
		justify-content: center;
		min-width: 80px;
	}
}

/* ============================================
   ADMIN BAR STYLES
   ============================================ */

/* Cache Clear Link */
#wp-admin-bar-ai_blog_clear_cache .ab-item {
	color: #0073aa !important;
}

#wp-admin-bar-ai_blog_clear_cache:hover .ab-item {
	color: #005177 !important;
	background-color: rgba(0, 115, 170, 0.1) !important;
}

/* Upgrade Pro Link */
#wp-admin-bar-ai_blog_upgrade_pro .ab-item {
	background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
	color: #ffffff !important;
	font-weight: 600 !important;
	border-radius: 4px !important;
	margin: 2px 5px !important;
	box-shadow: 0 2px 8px rgba(238, 90, 36, 0.3) !important;
	transition: all 0.3s ease !important;
	animation: ai-blog-admin-pulse 3s ease-in-out infinite;
}

#wp-admin-bar-ai_blog_upgrade_pro:hover .ab-item {
	background: linear-gradient(135deg, #ee5a24, #d63031) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 4px 12px rgba(238, 90, 36, 0.5) !important;
	animation: none;
}

#wp-admin-bar-ai_blog_upgrade_pro .ab-item:before {
	content: none !important;
}

@keyframes ai-blog-admin-pulse {
	0%, 100% { box-shadow: 0 2px 8px rgba(238, 90, 36, 0.3); }
	50% { box-shadow: 0 4px 15px rgba(238, 90, 36, 0.6); }
}

@media screen and (max-width: 782px) {
	#wp-admin-bar-ai_blog_upgrade_pro .ab-item {
		margin: 1px 2px !important;
		font-size: 14px !important;
	}
}
