/**
 * Admin styles for Some Plus Content Reactions
 *
 * @package SomePlusContentReactions
 */

/* Settings page wrapper */
.spcr-settings-wrap {
	max-width: 800px;
}

/* Reactions container */
.spcr-reactions-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* Reaction row */
.spcr-reaction-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.spcr-reaction-row:hover {
	background: #f0f0f0;
}

.spcr-reaction-row.ui-sortable-helper {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.spcr-reaction-row.ui-sortable-placeholder {
	visibility: visible !important;
	background: #e0e0e0;
	border: 2px dashed #999;
}

/* Drag handle */
.spcr-drag-handle {
	cursor: move;
	color: #999;
	transition: color 0.2s ease;
}

.spcr-reaction-row:hover .spcr-drag-handle {
	color: #666;
}

/* Emoji input */
.spcr-emoji-input {
	width: 60px !important;
	text-align: center;
	font-size: 20px;
}

/* Label input */
.spcr-label-input {
	flex: 1;
}

/* Remove button */
.spcr-remove-reaction {
	color: #a00;
}

.spcr-remove-reaction:hover {
	color: #dc3232;
	border-color: #dc3232;
}

/* Add button styling */
#spcr-add-reaction {
	margin-top: 15px;
}

/* Shortcode display */
.spcr-settings-wrap code {
	display: inline-block;
	padding: 5px 10px;
	background: #f1f1f1;
	border-radius: 3px;
	font-family: Consolas, Monaco, monospace;
}

/* Section styling */
.spcr-settings-wrap h2 {
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid #ddd;
}

.spcr-settings-wrap h2:first-of-type {
	border-top: none;
	padding-top: 0;
}

/* Form table adjustments */
.spcr-settings-wrap .form-table th {
	width: 200px;
}

/* Responsive */
@media screen and (max-width: 782px) {
	.spcr-reaction-row {
		flex-wrap: wrap;
	}

	.spcr-emoji-input {
		width: 50px !important;
	}

	.spcr-label-input {
		flex: none;
		width: calc(100% - 150px);
	}

	.spcr-remove-reaction {
		margin-left: auto;
	}
}
