/**
 * WP LLM Ready - Copy Button Styles
 *
 * Styles for the [wp_llm_ready_copy] shortcode button
 */

.wp-llm-ready-copy-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 24px;
	margin: 20px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wp-llm-ready-copy-content {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1;
	min-width: 0;
}

.wp-llm-ready-copy-icon-wrapper {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background-color: hsla(15, 98%, 44%, 0.2);
	border-radius: 12px;
}

.wp-llm-ready-copy-brand-icon {
	color: #F04B0E;
	flex-shrink: 0;
}

.wp-llm-ready-copy-text-wrapper {
	flex: 1;
	min-width: 0;
}

.wp-llm-ready-copy-title {
	margin: 0 0 4px 0 !important;
	padding: 0;
	color: #000000;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}
[data-theme='dark'] {
	.wp-llm-ready-copy-title {
		color: #ffffff;
	}
}
.wp-llm-ready-copy-description {
	margin: 0 !important;
	padding: 0;
	color: #333333;
	font-size: 14px;
	line-height: 1.4;
}
[data-theme='dark'] {
	.wp-llm-ready-copy-description {
		color: #9ca3af;
	}
}
.wp-llm-ready-copy-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	background: transparent;
	border: 1px solid #3d4158;
	border-radius: 10px;
	color: #000000;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	flex-shrink: 0;
}

.wp-llm-ready-copy-button:hover {
	background: rgba(0, 0, 0, 0.05);
	border-color: #4d5268;
}
[data-theme='dark'] {
	.wp-llm-ready-copy-button {
		border: 1px solid #3d4158;
		color: #ffffff;
	}

	.wp-llm-ready-copy-button:hover {
		background: rgba(255, 255, 255, 0.05);
		border-color: #4d5268;
	}
}
.wp-llm-ready-copy-button:active {
	transform: scale(0.98);
}

.wp-llm-ready-copy-button:focus {
	outline: 2px solid #6366f1;
	outline-offset: 2px;
}

.wp-llm-ready-copy-button.copying {
	background: #0dbaac26;
	border-color: #0f7068;
	color: #0f7068;
}
[data-theme='dark'] {
	.wp-llm-ready-copy-button.copying {
		background: #03fcc233;
		border-color: #4efdd4;
		color: #4efdd4;
	}
}
.wp-llm-ready-copy-button.error {
	background: rgba(220, 38, 38, 0.15);
	border-color: #ef4444;
	color: #ef4444;
}

.wp-llm-ready-copy-button-icon {
	flex-shrink: 0;
	transition: color 0.2s ease;
}

.wp-llm-ready-copy-button-text {
	display: inline-block;
	transition: opacity 0.2s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.wp-llm-ready-copy-container {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.wp-llm-ready-copy-content {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.wp-llm-ready-copy-button {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.wp-llm-ready-copy-container {
		padding: 16px 20px;
	}

	.wp-llm-ready-copy-icon-wrapper {
		width: 40px;
		height: 40px;
	}

	.wp-llm-ready-copy-brand-icon {
		width: 24px;
		height: 24px;
	}

	.wp-llm-ready-copy-title {
		font-size: 16px;
	}

	.wp-llm-ready-copy-description {
		font-size: 13px;
	}

	.wp-llm-ready-copy-button {
		padding: 10px 16px;
		font-size: 14px;
	}
}

/* Animation for success state */
@keyframes wpLlmReadyPulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.02);
	}
}

.wp-llm-ready-copy-button.copying {
	animation: wpLlmReadyPulse 0.3s ease-in-out;
}

/* Loading state (if needed) */
.wp-llm-ready-copy-button.loading {
	opacity: 0.7;
	cursor: wait;
}

.wp-llm-ready-copy-button.loading .wp-llm-ready-copy-button-icon {
	animation: wpLlmReadySpin 1s linear infinite;
}

@keyframes wpLlmReadySpin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.wp-llm-ready-copy-container {
		border-width: 2px;
	}

	.wp-llm-ready-copy-button {
		border-width: 2px;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	.wp-llm-ready-copy-button,
	.wp-llm-ready-copy-button-icon,
	.wp-llm-ready-copy-button-text {
		transition: none;
	}

	.wp-llm-ready-copy-button:active {
		transform: none;
	}

	.wp-llm-ready-copy-button.copying {
		animation: none;
	}

	.wp-llm-ready-copy-button.loading .wp-llm-ready-copy-button-icon {
		animation: none;
	}
}
