/*
Theme/Plugin: FoodOrd
Description: Shortcodes admin page styles.
Author: FoodOrd Team
*/

/* General Layout */
:root {
    --background-color: #f7f7f7;
    --primary-color: #ea004b;
    --primary-hover: #c70040;
    --text-color: #323232;
    --text-hover: #313131;
    --secondary-text: #6b6b6b;
    --button-bg: #ea004b;
    --button-text-color: #ffffff;
    --button-on-hover: #c70040;
    --header-bg: #ffffff;
    --footer-bg: #ffffff;
    --footer-bottom-bg: #ffffff;
    --border-color: #f4f4f4;
}

.foodord-shortcodes h1 {
	margin-bottom: 6px;
}

.foodord-shortcodes .page-description {
	margin-top: 6px;
	margin-bottom: 18px;
}

/* Shortcode Groups */
.shortcode-group {
	margin-bottom: 40px;
}

.shortcode-group .group-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
}/* Grid Layout */
.shortcode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(560px, 1fr));
    gap: 20px;
}

/* Shortcode Cards */
.shortcode-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	overflow: visible;
	transition: all 0.2s ease;
	position: relative;
}

.shortcode-card:hover {
	border-color: #2271b1;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.shortcode-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 15px;
	background: #f6f7f7;
	border-bottom: 1px solid #dcdcde;
}

.shortcode-header h3.shortcode-card-title {
	margin: 0;
}

/* Hidden temp input for clipboard */
.temp-clipboard-input {
	position: absolute;
	left: -9999px;
	opacity: 0;
}

/* Badges */
.shortcode-badge {
	display: inline-block;
	padding: 2px 8px;
	text-transform: uppercase;
	font-size: 12px;
	font-weight: 400;
	border-radius: 3px;
	background: #2271b1;
	color: #ffffff;
}

/* Card Content */
.shortcode-content {
	padding: 15px;
	position: relative;
}

.shortcode-code {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f0f0f1;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 8px 12px;
	margin-bottom: 12px;
}

.shortcode-code code {
	font-family: 'SF Mono', Monaco, monospace;
	background: transparent;
	padding: 0;
}

/* Copy Button */
.copy-btn {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 4px;
	transition: color 0.2s;
}/* Description */
.shortcode-desc {
	margin: 0;
}

/* Parameters Details */
.shortcode-params {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #f0f0f1;
	isolation: isolate;
}

.shortcode-params .params-content {
	padding-top: 8px;
}

.shortcode-params summary {
	cursor: pointer;
	margin-bottom: 8px;
	user-select: none;
}

.shortcode-params summary:hover {
	text-decoration: underline;
}

.shortcode-params ul {
	margin: 8px 0 0 0;
	padding-left: 20px;
}

.shortcode-params li {
	margin-bottom: 4px;
}

.shortcode-params li code {
	background: #f0f0f1;
	padding: 1px 4px;
	border-radius: 2px;
}

.example-code {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #dcdcde;
}

.example-code code {
	background: #fff;
	border: 1px solid #dcdcde;
	padding: 2px 6px;
	border-radius: 3px;
}

/* Responsive */
@media screen and (max-width: 782px) {
	.shortcode-grid {
		grid-template-columns: 1fr;
	}

	.foodord-shortcodes {
		margin: 10px;
	}
}