/**
 * Adcaver Ad Helper Admin Styles
 *
 * Styles for the plugin's settings page in the WordPress admin.
 *
 * @package    Adcaver_Ad_Helper
 * @subpackage Adcaver_Ad_Helper/admin/assets/css
 * @author     Edu Brazeal, Adcaver Team <https://edubrazeal.com>
 * @version    1.0.0
 */

/*
== Table of Contents ==

1.0 - General Page Styles
    1.1 - Main Wrapper (.adcaver-helper-settings-wrap)
    1.2 - Page Title (h1)

2.0 - Admin Notices
    2.1 - General Notice (.notice)
    2.2 - Success/Error Notices (.updated, .error)

3.0 - Instructions Box
    3.1 - Box Styles (.adcaver-instructions)
    3.2 - List Styles (ol, li)
    3.3 - Links (a)

4.0 - Section Headings
    4.1 - Gradient Heading (h2)

5.0 - Settings Tables
    5.1 - Main Form Table (.form-table, th, td)
    5.2 - Shortcode Table (.adcaver-shortcode-table)

6.0 - Form Elements
    6.1 - Text, Number, & Select Inputs
    6.2 - Checkboxes
    6.3 - Description Text (p.description)
    6.4 - Utility Classes (.regular-text, .readonly)

7.0 - Submit Button
    7.1 - Button Styles (.button-primary)

8.0 - Responsive Styles
    8.1 - Mobile Styles (@media screen and (max-width: 782px))

9.0 - Animations
    9.1 - Keyframes (@keyframes fadeIn)
    9.2 - Animation Application
*/

.adcaver-helper-settings-wrap {
	max-width: 1000px;
	margin: 20px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.adcaver-helper-settings-wrap h1 {
	font-size: 28px;
	font-weight: 600;
	color: #1e1e1e;
	margin-bottom: 25px;
	padding-bottom: 15px;
	border-bottom: 2px solid #e5e7eb;
	display: flex;
	align-items: center;
	gap: 12px;
}

.adcaver-helper-settings-wrap h1:before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 32px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 2px;
}

.adcaver-helper-settings-wrap .notice {
	margin-top: 20px;
	margin-bottom: 30px;
	border: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	padding: 0;
	background: #ffffff;
}

.adcaver-instructions {
	padding: 25px 30px;
	margin-bottom: 35px;
	border-left: 4px solid #667eea;
	background: linear-gradient(135deg, #f8f9ff 0%, #faf5ff 100%);
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(102, 126, 234, 0.1);
}

.adcaver-instructions h2 {
	margin-top: 0;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(102, 126, 234, 0.2);
	font-size: 20px;
	font-weight: 600;
	color: #1e1e1e;
	display: flex;
	align-items: center;
	gap: 10px;
}

.adcaver-instructions h2:before {
	content: "📋";
	font-size: 24px;
}

.adcaver-instructions ol {
	margin: 0 0 0 24px;
	padding: 0;
	counter-reset: instruction-counter;
	list-style: none;
}

.adcaver-instructions li {
	margin-bottom: 16px;
	line-height: 1.7;
	color: #374151;
	position: relative;
	padding-left: 40px;
	counter-increment: instruction-counter;
}

.adcaver-instructions li:before {
	content: counter(instruction-counter);
	position: absolute;
	left: 0;
	top: 0;
	width: 28px;
	height: 28px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 13px;
	box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.adcaver-instructions li strong {
	color: #1e1e1e;
	font-weight: 600;
}

.adcaver-instructions a {
	color: #667eea;
	text-decoration: none;
	font-weight: 500;
	border-bottom: 1px solid transparent;
	transition: all 0.2s ease;
}

.adcaver-instructions a:hover {
	color: #764ba2;
	border-bottom-color: #764ba2;
}

.adcaver-helper-settings-wrap h2 {
	margin-top: 45px;
	margin-bottom: 15px;
	padding: 18px 25px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	font-size: 18px;
	font-weight: 600;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
	position: relative;
	overflow: hidden;
}

.adcaver-helper-settings-wrap h2:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
}

.adcaver-helper-settings-wrap .form-table {
	margin-top: 0;
	background: #ffffff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	margin-bottom: 30px;
}

.adcaver-helper-settings-wrap .form-table th,
.adcaver-helper-settings-wrap .form-table td {
	padding: 20px 25px;
	border-bottom: 1px solid #f3f4f6;
}

.adcaver-helper-settings-wrap .form-table tr:last-child th,
.adcaver-helper-settings-wrap .form-table tr:last-child td {
	border-bottom: none;
}

.adcaver-helper-settings-wrap .form-table th {
	width: 280px;
	font-weight: 600;
	color: #1e1e1e;
	font-size: 14px;
	vertical-align: middle;
	background: #f9fafb;
}

.adcaver-helper-settings-wrap .form-table td {
	background: #ffffff;
}

.adcaver-helper-settings-wrap .form-table tr:hover td {
	background: #fafbfc;
}

.adcaver-helper-settings-wrap input[type="text"],
.adcaver-helper-settings-wrap input[type="number"],
.adcaver-helper-settings-wrap select {
	padding: 10px 14px;
	border: 2px solid #e5e7eb;
	border-radius: 6px;
	font-size: 14px;
	transition: all 0.2s ease;
	background: #ffffff;
	color: #1e1e1e;
}

.adcaver-helper-settings-wrap input[type="text"]:focus,
.adcaver-helper-settings-wrap input[type="number"]:focus,
.adcaver-helper-settings-wrap select:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
	outline: none;
}

.adcaver-helper-settings-wrap select {
	padding: 10px 35px 10px 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 12px;
	appearance: none;
	cursor: pointer;
	min-width: 250px;
}

.adcaver-helper-settings-wrap input[type="checkbox"] {
	width: 20px;
	height: 20px;
	border: 2px solid #e5e7eb;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	appearance: none;
	background: #ffffff;
}

.adcaver-helper-settings-wrap input[type="checkbox"]:checked {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-color: #667eea;
}

.adcaver-helper-settings-wrap input[type="checkbox"]:checked:after {
	content: "✓";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #ffffff;
	font-size: 14px;
	font-weight: bold;
}

.adcaver-helper-settings-wrap input[type="checkbox"]:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.adcaver-helper-settings-wrap input[type="checkbox"] + label {
	margin-left: 10px;
	cursor: pointer;
	user-select: none;
}

.adcaver-helper-settings-wrap .form-table p.description {
	font-style: normal;
	color: #6b7280;
	margin: 8px 0 0 0;
	font-size: 13px;
	line-height: 1.6;
}

.adcaver-helper-settings-wrap input[type="checkbox"] + label span.description {
	display: inline;
	margin-left: 0;
	vertical-align: middle;
	color: #6b7280;
	font-size: 14px;
}

.adcaver-shortcode-table {
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.adcaver-shortcode-table th {
	background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
	font-weight: 600;
	color: #1e1e1e;
	width: 280px;
}

.adcaver-shortcode-table input.readonly {
	background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
	cursor: text;
	font-family: "Courier New", Courier, monospace;
	font-size: 13px;
	color: #667eea;
	font-weight: 500;
	border: 2px solid #e5e7eb;
	transition: all 0.2s ease;
}

.adcaver-shortcode-table input.readonly:focus {
	background: #ffffff;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.adcaver-helper-settings-wrap .submit {
	padding: 0;
	margin-top: 30px;
}

.adcaver-helper-settings-wrap .submit .button-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	color: #ffffff;
	padding: 12px 32px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}

.adcaver-helper-settings-wrap .submit .button-primary:before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s ease;
}

.adcaver-helper-settings-wrap .submit .button-primary:hover:before {
	left: 100%;
}

.adcaver-helper-settings-wrap .submit .button-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.adcaver-helper-settings-wrap .submit .button-primary:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.adcaver-helper-settings-wrap .submit .button-primary:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3), 0 4px 12px rgba(102, 126, 234, 0.3);
}

@media screen and (max-width: 782px) {
	.adcaver-helper-settings-wrap .form-table th,
	.adcaver-helper-settings-wrap .form-table td {
		display: block;
		width: 100%;
		padding: 15px 20px;
	}

	.adcaver-helper-settings-wrap .form-table th {
		border-bottom: none;
		padding-bottom: 8px;
	}

	.adcaver-helper-settings-wrap .form-table td {
		padding-top: 8px;
	}

	.adcaver-shortcode-table th {
		width: 100%;
	}

	.adcaver-helper-settings-wrap select {
		min-width: 100%;
		width: 100%;
	}

	.adcaver-instructions li {
		padding-left: 35px;
	}

	.adcaver-instructions li:before {
		width: 24px;
		height: 24px;
		font-size: 12px;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.adcaver-helper-settings-wrap .form-table {
	animation: fadeIn 0.4s ease;
}

.adcaver-helper-settings-wrap h2 {
	animation: fadeIn 0.3s ease;
}

.adcaver-instructions {
	animation: fadeIn 0.5s ease;
}

.adcaver-helper-settings-wrap input[type="text"].regular-text,
.adcaver-helper-settings-wrap input[type="number"].regular-text {
	width: 100%;
	max-width: 500px;
}

.adcaver-helper-settings-wrap .updated,
.adcaver-helper-settings-wrap .error {
	border-left: 4px solid;
	border-radius: 6px;
	padding: 15px 20px;
	margin: 20px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.adcaver-helper-settings-wrap .updated {
	border-left-color: #10b981;
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.adcaver-helper-settings-wrap .error {
	border-left-color: #ef4444;
	background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.adcaver-helper-settings-wrap .updated p,
.adcaver-helper-settings-wrap .error p {
	margin: 0;
	font-weight: 500;
}