/**
 * AI Marketing Notice - Admin Styles (Clean)
 *
 * @package Ai_Blog
 */

/* ============================================
   NOTICE CONTAINER
   ============================================ */
.ai-blog-marketing-notice {
	position: relative;
	margin: 20px 0 0;
	padding: 24px 30px 20px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-left: 4px solid #22c55e;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	animation: ai-blog-notice-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
	opacity: 0;
	transform: translateY(-12px);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

/* ============================================
   CLOSE BUTTON
   ============================================ */
.ai-blog-notice-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: #9ca3af;
	cursor: pointer;
	padding: 0 4px;
	transition: color 0.2s;
}

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

/* ============================================
   TOP GREETING
   ============================================ */
.ai-blog-notice-top {
	margin-bottom: 4px;
}

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

.ai-blog-wave {
	display: inline-block;
	animation: ai-blog-wave 1.5s ease-in-out infinite;
	transform-origin: 70% 70%;
}

@keyframes ai-blog-wave {
	0%, 100% { transform: rotate(0deg); }
	15% { transform: rotate(14deg); }
	30% { transform: rotate(-8deg); }
	40% { transform: rotate(14deg); }
	50% { transform: rotate(-4deg); }
	60% { transform: rotate(10deg); }
	70% { transform: rotate(0deg); }
}

/* ============================================
   TITLE
   ============================================ */
.ai-blog-notice-title {
	margin: 0 0 6px;
	padding: 0;
	font-size: 18px;
	font-weight: 700;
	color: #111827;
	line-height: 1.3;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ai-blog-notice-rocket {
	font-size: 20px;
	animation: ai-blog-rocket-bounce 2s ease-in-out infinite;
}

@keyframes ai-blog-rocket-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-3px); }
}

/* ============================================
   TEXT
   ============================================ */
.ai-blog-notice-text {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.6;
	color: #4b5563;
	max-width: 700px;
}

/* Inline check icons */
.ai-blog-check-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 15px;
	height: 15px;
	background: #dcfce7;
	border-radius: 50%;
	vertical-align: middle;
	margin: 0 1px;
	position: relative;
	top: -1px;
}

.ai-blog-check-icon svg {
	width: 9px;
	height: 9px;
	color: #16a34a;
}

/* ============================================
   HIGHLIGHT STRIP (one line)
   ============================================ */
.ai-blog-notice-highlight {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 12px 20px;
	margin-bottom: 16px;
	background: linear-gradient(90deg, #f0fdf4 0%, #ecfdf5 50%, #f0fdf4 100%);
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	font-size: 13px;
	color: #166534;
	font-weight: 500;
	flex-wrap: wrap;
}

.ai-blog-highlight-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.ai-blog-highlight-icon {
	font-size: 16px;
}

.ai-blog-highlight-divider {
	color: #86efac;
	font-weight: 300;
}

/* ============================================
   MODULES (pills)
   ============================================ */
.ai-blog-notice-modules {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.ai-blog-module {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 500;
	color: #374151;
	background: #f3f4f6;
	border-radius: 20px;
	transition: background 0.2s;
}

.ai-blog-module:hover {
	background: #e5e7eb;
}

/* ============================================
   BUTTONS (small, one line)
   ============================================ */
.ai-blog-notice-buttons {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.ai-blog-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	border: none;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1;
	white-space: nowrap;
	padding: 8px 14px;
}

.ai-blog-btn-primary {
	background: linear-gradient(135deg, #22c55e, #16a34a);
	color: #fff;
	box-shadow: 0 2px 6px rgba(34, 197, 94, 0.25);
}

.ai-blog-btn-primary:hover {
	background: linear-gradient(135deg, #16a34a, #15803d);
	box-shadow: 0 3px 10px rgba(34, 197, 94, 0.35);
	transform: translateY(-1px);
}

.ai-blog-btn-primary:active {
	transform: translateY(0);
}

/* Loading state */
.ai-blog-btn-primary.loading {
	background: #9ca3af;
	box-shadow: none;
	pointer-events: none;
}

.ai-blog-btn-primary .ai-blog-btn-loading {
	display: none;
}

.ai-blog-btn-primary.loading .ai-blog-btn-label {
	display: none;
}

.ai-blog-btn-primary.loading .ai-blog-btn-loading {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

/* Success state */
.ai-blog-btn-primary.success {
	background: linear-gradient(135deg, #3b82f6, #2563eb);
	box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

/* Text/secondary button */
.ai-blog-btn-text {
	padding: 8px 14px;
	background: none;
	color: #6b7280;
	font-weight: 500;
	border: 1px solid #e5e7eb;
	border-radius: 5px;
}

.ai-blog-btn-text:hover {
	color: #374151;
	background: #f9fafb;
	border-color: #d1d5db;
}

/* Spinner */
.ai-blog-spinner {
	display: inline-block;
	width: 12px;
	height: 12px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: ai-blog-spin 0.7s linear infinite;
}

@keyframes ai-blog-spin {
	to { transform: rotate(360deg); }
}

/* ============================================
   TRUST LINE
   ============================================ */
.ai-blog-notice-trust {
	margin: 0;
	font-size: 11px;
	color: #9ca3af;
}

/* ============================================
   EXIT ANIMATION
   ============================================ */
.ai-blog-marketing-notice.ai-blog-notice-exit {
	animation: ai-blog-notice-slide-out 0.3s ease forwards;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 782px) {
	.ai-blog-marketing-notice {
		padding: 18px 20px 16px;
	}

	.ai-blog-notice-title {
		font-size: 16px;
	}

	.ai-blog-notice-modules {
		gap: 6px;
	}

	.ai-blog-notice-buttons {
		flex-wrap: wrap;
		gap: 8px;
	}

	.ai-blog-btn-primary {
		width: 100%;
	}

	.ai-blog-notice-highlight {
		flex-direction: column;
		gap: 8px;
	}

	.ai-blog-highlight-divider {
		display: none;
	}
}
