/**
 * Admin styles for Author Box & E-E-A-T Optimization
 */

/* Plugin Branding Header */
.eeat-plugin-header {
	background: linear-gradient(135deg, #f15b27 0%, #e54a1a 100%);
	padding: 30px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.eeat-header-content {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 0 auto;
}

.eeat-plugin-logo {
	width: 80px;
	height: 80px;
	object-fit: contain;
}

.eeat-header-text h1 {
	margin: 0;
	color: #fff;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.eeat-header-text p {
	margin: 5px 0 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 16px;
	font-weight: 400;
}

/* Adjust wrap padding for header */
.wrap.eeat-author-box-settings {
	padding: 0;
}

.eeat-settings-container {
	display: flex;
	gap: 20px;
	/* margin: 20px; */
	background: #fff;
	border: 1px solid #ccd0d4;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

/* Tabs */
.eeat-settings-tabs {
	width: 200px;
	background: #f3f4f5;
	border-right: 1px solid #dcdcde;
}

.eeat-tabs-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.eeat-tab {
	margin: 0;
	border-bottom: 1px solid #dcdcde;
}

.eeat-tab a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 20px;
	text-decoration: none;
	color: #50575e;
	transition: all 0.2s ease;
}

.eeat-tab a:hover {
	background: #fff;
	color: #f15b27;
}

.eeat-tab.active a {
	background: #fff;
	color: #f15b27;
	font-weight: 600;
	position: relative;
	margin-right: -1px;
}

.eeat-tab svg {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* Settings Content */
.eeat-settings-content {
	flex: 1;
	padding: 20px;
}

.eeat-settings-content h2 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
}

/* Preview Container */
.eeat-preview-container {
	width: 55%;
	padding: 20px;
	margin: 0 auto;
}

.eeat-preview-container h3 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
}

.eeat-preview-box {
	margin-top: 15px;
	overflow: hidden;
}

/* Preview Box Styles - Override some frontend styles for admin context */
.eeat-preview-box .eeat-author-box {
	margin: 0;
	font-size: 14px;
}

/* Form Table Adjustments */
.eeat-settings-content .form-table {
	margin-top: 20px;
}

.eeat-settings-content .form-table th {
	width: 200px;
	font-weight: 600;
}

/* Radio and Checkbox Styling */
.eeat-settings-content input[type="radio"],
.eeat-settings-content input[type="checkbox"] {
	margin-right: 5px;
}

.eeat-settings-content fieldset label {
	display: block;
	margin-bottom: 5px;
}

/* Description Text */
.eeat-settings-content .description {
	font-style: normal;
	color: #646970;
	margin-top: 5px;
}

/* Submit Button */
.eeat-settings-content .submit {
	padding: 20px 0 0;
	margin: 20px 0 0;
	border-top: 1px solid #dcdcde;
}

/* Plugin Footer Branding */
.eeat-plugin-footer {
	background: #f6f7f7;
	border-top: 1px solid #dcdcde;
	margin: 20px -20px -20px -20px;
	padding: 20px 30px;
}

.eeat-footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0 auto;
	font-size: 12px;
	color: #50575e;
}

.eeat-footer-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.eeat-company-logo {
	height: 24px;
	width: auto;
	object-fit: contain;
}

.eeat-footer-separator {
	color: #dcdcde;
	font-weight: 300;
}

.eeat-footer-left strong {
	color: #f15b27;
	font-weight: 600;
}

.eeat-footer-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.eeat-review-link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #f15b27;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.2s ease;
}

.eeat-review-link:hover {
	color: #d94f1e;
	text-decoration: underline;
}

.eeat-review-link svg {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #ffb900;
}

/* Footer link */
.eeat-footer-links {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 2%;
    padding: 10px 30px;
    margin: 20px -20px -20px -20px;
}
.eeat-footer-links a{
	text-decoration: none;
}
.eeat-footer-anchor {
	display: flex;
    color: #444444;
    font-size: 14px;
}

.eeat-popup-content-hidden {
	display: none;
}

.eeat-settings-section {
	margin: 30px 0;
	padding: 20px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 6px;
}

.eeat-settings-section h3 {
	margin-top: 0;
	color: #333;
	border-bottom: 2px solid #f15b27;
	padding-bottom: 8px;
}

.eeat-notice {
	padding: 12px;
	margin: 20px 0;
	border-left: 4px solid #f15b27;
	background: #f8f9fa;
	border-radius: 0 4px 4px 0;
}

.eeat-notice p {
	margin: 0;
	color: #555;
}

.eeat-notice strong {
	color: #333;
}

.eeat-plugin-logo {
	background: url('../images/author-box-for-eeat-optimization-white-trim.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}
.eeat-plugin-footer .eeat-company-logo {
	background: url('../images/ignitemarketing-logo.webp');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	width: 86px;
}

/* Appearance Style */
/* Toggle Switch Styles */
.eeat-toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

.eeat-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.eeat-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.eeat-toggle-slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.eeat-toggle-switch input:checked+.eeat-toggle-slider {
    background-color: #f15b27;
}

.eeat-toggle-switch input:focus+.eeat-toggle-slider {
    box-shadow: 0 0 1px #f15b27;
}

.eeat-toggle-switch .eeat-toggle-slider:before {
    /*transform: translateX(16px);*/
    transform: translate(-2px, 2px);
}

.eeat-toggle-switch input:checked+.eeat-toggle-slider:before {
    /*transform: translateX(16px);*/
    transform: translate(15px, 2px);
}

/* Settings Group Title */
.eeat-settings-group-title {
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dcdcde;
    color: #23282d;
    font-size: 16px;
    font-weight: 600;
}

/* Color Picker */
.eeat-color-picker {
    width: 100px;
}

/* Advanced Schema Style */
.eeat-testing-tools {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.eeat-testing-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.eeat-testing-buttons .button {
    flex: 0 0 auto;
}

.eeat-schema-preview {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Form styling improvements */
.form-table th {
    width: 200px;
    padding: 15px 10px 15px 0;
    vertical-align: top;
}

.form-table td {
    padding: 15px 10px;
    vertical-align: top;
}

.form-table fieldset label {
    display: inline-block;
    margin-right: 15px;
    font-weight: normal;
}

.form-table .description {
    margin-top: 5px;
    font-style: italic;
    color: #666;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
	.eeat-preview-container {
		display: none;
	}
}

@media screen and (max-width: 768px) {
    .eeat-testing-buttons {
        flex-direction: column;
    }

    .eeat-testing-buttons .button {
        width: 100%;
        text-align: center;
    }

    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    .form-table th {
        border-bottom: none;
        padding-bottom: 5px;
	}
}

@media screen and (max-width: 782px) {
	.eeat-plugin-header {
		padding: 20px;
	}

	.eeat-header-content {
		flex-direction: column;
		text-align: center;
	}

	.eeat-plugin-logo {
		width: 60px;
		height: 60px;
	}

	.eeat-header-text h1 {
		font-size: 24px;
	}

	.eeat-header-text p {
		font-size: 14px;
	}

	.eeat-settings-container {
		flex-direction: column;
		margin: 15px;
	}

	.eeat-settings-tabs {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid #dcdcde;
	}

	.eeat-tabs-list {
		display: flex;
		overflow-x: auto;
	}

	.eeat-tab {
		border-bottom: none;
		border-right: 1px solid #dcdcde;
		flex-shrink: 0;
	}

	.eeat-plugin-footer {
		padding: 15px 20px;
	}

	.eeat-footer-content {
		flex-direction: column;
		gap: 15px;
		text-align: center;
	}

	.eeat-footer-left {
		flex-wrap: wrap;
		justify-content: center;
	}

	.eeat-footer-right {
		flex-direction: column;
		gap: 5px;
	}
}

/* Primary Brand Color Usage */
.button-primary {
	background: #f15b27;
	border-color: #d94f1e;
}

.button-primary:hover,
.button-primary:focus {
	background: #d94f1e;
	border-color: #c24518;
}