/**
 * AI Content Signals AyudaWP - Admin Styles
 *
 * Styles for the plugin's admin settings page.
 *
 * @package AIContentSignals
 * @since   1.0.0
 */

/* ==========================================================================
   Brand variable
   ========================================================================== */

:root {
	--aics-brand: #2271b1;
}

/* ==========================================================================
   Title icon
   ========================================================================== */

.ayudawp-acs-title-icon {
	font-size: 28px;
	width: 28px;
	height: 28px;
	margin-right: 8px;
	vertical-align: middle;
	color: var(--aics-brand, #2271b1);
}

/* ==========================================================================
   Settings page layout
   ========================================================================== */

.ayudawp-acs-settings h2 {
	margin-top: 30px;
	border-bottom: 1px solid #ccc;
	padding-bottom: 10px;
}

.ayudawp-acs-settings h3 {
	margin-top: 20px;
}

/* ==========================================================================
   Bots table
   ========================================================================== */

.ayudawp-acs-bots-table {
	margin-top: 15px;
}

.ayudawp-acs-bots-table thead th {
	position: sticky;
	top: 32px;
	z-index: 5;
	box-shadow: 0 1px 0 #ccc;
}

.ayudawp-acs-bots-table th {
	font-weight: 600;
	background-color: #f6f7f7;
}

.ayudawp-acs-bots-table td {
	padding: 10px;
	vertical-align: middle;
}

.ayudawp-acs-bots-table code {
	font-size: 0.9em;
	color: #666;
}

.ayudawp-acs-bots-table select {
	width: 100%;
	max-width: 150px;
}

/* ==========================================================================
   Custom bots rows
   ========================================================================== */

.ayudawp-acs-custom-bot-row {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 10px;
	padding: 10px;
	background-color: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 3px;
}

.ayudawp-acs-custom-bot-row input[type="text"] {
	flex: 1;
	min-width: 200px;
}

.ayudawp-acs-custom-bot-row select {
	min-width: 140px;
}

.ayudawp-acs-custom-bot-row .ayudawp-acs-remove-bot {
	background-color: #dc3232;
	border-color: #dc3232;
	color: #fff;
}

.ayudawp-acs-custom-bot-row .ayudawp-acs-remove-bot:hover {
	background-color: #c62d2d;
	border-color: #c62d2d;
}

#ayudawp-acs-add-bot {
	margin-top: 10px;
	margin-bottom: 20px;
}

.ayudawp-acs-custom-bots-notice {
	margin-top: 10px;
}

/* ==========================================================================
   Submit button area
   ========================================================================== */

.ayudawp-acs-settings .submit {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #ddd;
}

/* ==========================================================================
   Preview textarea
   ========================================================================== */

.ayudawp-acs-settings textarea.code {
	font-family: Consolas, Monaco, monospace;
	font-size: 13px;
	line-height: 1.6;
	background-color: #f5f5f5;
	border: 1px solid #ddd;
	padding: 15px;
}

/* ==========================================================================
   Notice adjustments
   ========================================================================== */

.ayudawp-acs-settings .notice {
	margin: 15px 0;
}

/* ==========================================================================
   Activation notice button spacing
   ========================================================================== */

.ayudawp-acs-activation-btn {
	margin-left: 10px;
}

/* ==========================================================================
   Export / Import
   ========================================================================== */

.ayudawp-acs-export-import {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 20px;
	margin-top: 15px;
	margin-bottom: 30px;
}

.ayudawp-acs-export-box,
.ayudawp-acs-import-box,
.ayudawp-acs-restore-box {
	background: #fff;
	border: 1px solid #ccd0d4;
	padding: 20px;
	border-radius: 3px;
}

.ayudawp-acs-export-box h3,
.ayudawp-acs-import-box h3,
.ayudawp-acs-restore-box h3 {
	margin-top: 0;
}

.ayudawp-acs-import-box input[type="file"] {
	margin-bottom: 10px;
}

.ayudawp-acs-restore-btn {
	background-color: #dc3232;
	border-color: #dc3232;
	color: #fff;
}

.ayudawp-acs-restore-btn:hover,
.ayudawp-acs-restore-btn:focus {
	background-color: #c62d2d;
	border-color: #c62d2d;
	color: #fff;
}

/* ==========================================================================
   Promotional banner - Dynamic plugin/service boxes (3 columns)
   ========================================================================== */

.aics-promo-notice {
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	padding: 20px;
	margin-top: 10px;
}

.aics-promo-notice > h4 {
	margin: 0 0 20px;
	font-size: 15px;
	font-weight: 600;
	color: #1d2327;
}

.aics-promo-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 25px;
}

.aics-promo-column {
	background: #fff;
	border: 1px solid #dcdcde;
	padding: 20px;
	display: flex;
	flex-direction: column;
}

.aics-promo-column > .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: var(--aics-brand, #2271b1);
	margin-bottom: 12px;
}

.aics-promo-column h5 {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.4;
}

.aics-promo-column p {
	margin: 0 0 15px;
	color: #50575e;
	font-size: 13px;
	line-height: 1.5;
	flex-grow: 1;
}

.aics-promo-notice .aics-promo-column .button {
	align-self: flex-start;
	margin-top: auto;
	white-space: normal;
	height: auto;
	min-height: auto;
	line-height: 1.4;
	padding: 6px 12px;
	text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Promo: 2 columns on medium screens */
@media screen and (max-width: 1200px) {
	.aics-promo-columns {
		grid-template-columns: repeat(2, 1fr);
	}

	.ayudawp-acs-export-import {
		grid-template-columns: 1fr 1fr;
	}

	.ayudawp-acs-restore-box {
		grid-column: 1 / -1;
	}
}

/* Promo: 1 column on mobile */
@media screen and (max-width: 782px) {
	.aics-promo-columns {
		grid-template-columns: 1fr;
	}

	.ayudawp-acs-export-import {
		grid-template-columns: 1fr;
	}

	.ayudawp-acs-bots-table thead th {
		top: 46px;
	}

	.ayudawp-acs-custom-bot-row {
		flex-wrap: wrap;
	}

	.ayudawp-acs-custom-bot-row input[type="text"],
	.ayudawp-acs-custom-bot-row select {
		width: 100%;
		min-width: 0;
	}

	.ayudawp-acs-bots-table {
		overflow-x: auto;
		display: block;
	}
}