/* Frontend CSS for AI Prompt Cards */

.ai-prompt-cards-wrapper {
	width: 100%;
}

.ai-prompt-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.ai-prompt-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	box-shadow: 0 4px 6px rgba(0,0,0,0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.ai-prompt-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

.ai-prompt-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #ff3366;
	color: #fff;
	padding: 4px 8px;
	font-size: 12px;
	font-weight: bold;
	border-radius: 4px;
	z-index: 2;
}

.ai-prompt-card-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.ai-prompt-placeholder-img {
	width: 100%;
	height: 200px;
	background: #f5f5f5;
}

.ai-prompt-card-content {
	padding: 20px;
	flex-grow: 1;
}

.ai-prompt-category {
	font-size: 12px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
}

.ai-prompt-title {
	font-size: 18px;
	margin: 0 0 10px 0;
	line-height: 1.4;
}

.ai-prompt-title a {
	color: #333;
	text-decoration: none;
}

.ai-prompt-title a:hover {
	color: #0073aa;
}

.ai-prompt-preview {
	font-size: 14px;
	color: #555;
	margin-bottom: 15px;
	line-height: 1.6;
}

.ai-prompt-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
}

.ai-prompt-copy-btn {
	background: #f0f0f1;
	border: 1px solid #ccc;
	color: #333;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: all 0.2s;
}

.ai-prompt-copy-btn:hover {
	background: #e5e5e5;
}

.ai-prompt-copy-btn.copied {
	background: #46b450;
	border-color: #46b450;
	color: #fff;
}

.ai-prompt-read-more {
	font-size: 14px;
	color: #0073aa;
	text-decoration: none;
	font-weight: 500;
}

.ai-prompt-card-footer {
	padding: 15px 20px;
	border-top: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: #777;
	background: #fafafa;
}

.ai-prompt-stat {
	display: flex;
	align-items: center;
	gap: 5px;
}

.ai-prompt-like-btn {
	background: none;
	border: none;
	color: #777;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 0;
}

.ai-prompt-like-btn:hover {
	color: #ff3366;
}

.ai-prompt-load-more-wrapper {
	text-align: center;
	margin-top: 30px;
}

.ai-prompt-load-more-btn {
	background: #0073aa;
	color: #fff;
	border: none;
	padding: 10px 20px;
	font-size: 16px;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.3s;
}

.ai-prompt-load-more-btn:hover {
	background: #005177;
}

/* Single Prompt Page */
.ai-prompt-single-area {
	max-width: 800px;
	margin: 0 auto;
	padding: 40px 20px;
}

.ai-prompt-single-cats {
	margin-bottom: 15px;
}

.ai-prompt-cat {
	background: #eee;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	text-transform: uppercase;
	margin-right: 5px;
}

.ai-prompt-single-meta {
	display: flex;
	gap: 20px;
	color: #777;
	margin-bottom: 20px;
	font-size: 14px;
}

.ai-prompt-single-image {
	margin-bottom: 30px;
	border-radius: 8px;
	overflow: hidden;
}

.ai-prompt-single-image img {
	width: 100%;
	height: auto;
	display: block;
}

.ai-prompt-box {
	background: #f8f9fa;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	margin: 30px 0;
	overflow: hidden;
}

.ai-prompt-box-header {
	background: #edf2f7;
	padding: 15px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #e2e8f0;
}

.ai-prompt-box-header h3 {
	margin: 0;
	font-size: 18px;
}

.ai-prompt-copy-btn.primary {
	background: #0073aa;
	color: #fff;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
}

.ai-prompt-copy-btn.primary:hover {
	background: #005177;
}

.ai-prompt-copy-btn.primary.copied {
	background: #46b450;
}

.ai-prompt-text-display {
	padding: 20px;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	white-space: pre-wrap;
	word-break: break-word;
}

.ai-prompt-social-share {
	margin: 40px 0;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.ai-prompt-social-share h4 {
	margin-top: 0;
	margin-bottom: 15px;
}

.share-btn {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 4px;
	color: #fff;
	text-decoration: none;
	margin-right: 10px;
	margin-bottom: 10px;
	font-size: 14px;
	border: none;
	cursor: pointer;
}

.share-btn.fb { background: #3b5998; }
.share-btn.tw { background: #1da1f2; }
.share-btn.wa { background: #25d366; }
.share-btn.in { background: #0077b5; }
.share-btn.native-share { background: #333; }

.share-btn:hover {
	opacity: 0.9;
	color: #fff;
}

.ai-prompt-tags {
	margin-top: 20px;
}

.ai-prompt-tags a {
	background: #eee;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 13px;
	text-decoration: none;
	color: #333;
	margin-right: 5px;
}

/* Responsive */
@media (max-width: 768px) {
	.ai-prompt-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.ai-prompt-grid {
		grid-template-columns: 1fr;
	}
}
