/**
 * SEO Meta Editor Pro - Settings Page Styles
 * Tailwind-like styling scoped to the plugin settings page
 */

/* Scope all styles to prevent affecting other admin areas */
.semp-settings-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1f2937;
    max-width: 1200px;
    margin: 0 auto;
}
.semp-logo-image {
    border-radius: 50%;
    border: orange solid 2px;
}
/* Header styling */
.semp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.semp-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.semp-logo img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 2px solid #FF6B00;
}

.semp-logo span {
    font-size: 1.25rem;
    font-weight: 600;
    color: #374151;
}

.semp-active-integration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #f3f4f6;
    border-radius: 0.375rem;
}

.semp-integration-label {
    font-size: 0.875rem;
    color: #6b7280;
}

.semp-integration-name {
    font-weight: 600;
    color: #4f46e5;
}

.semp-no-integration {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    background-color: #fee2e2;
    color: #b91c1c;
    border-radius: 0.375rem;
}

/* Tabs styling */
.nav-tab-wrapper {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.nav-tab {
    margin-left: 0;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-bottom: none;
    background-color: #f9fafb;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-tab:hover {
    background-color: #ffffff;
    color: #4f46e5;
}

.nav-tab-active {
    background-color: #ffffff;
    color: #4f46e5;
    border-bottom: 2px solid #4f46e5;
    margin-bottom: -1px;
}

/* Content styling */
.semp-settings-content {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.semp-settings-section {
    margin-bottom: 2rem;
}

.semp-settings-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: #111827;
    font-weight: 600;
}

.semp-settings-field {
    margin-bottom: 1.5rem;
}

.semp-settings-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.semp-settings-field input[type="text"],
.semp-settings-field input[type="number"],
.semp-settings-field select {
    width: 100%;
    max-width: 25rem;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.semp-settings-field input[type="checkbox"] {
    margin-right: 0.5rem;
}

.semp-settings-field .description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Post types grid */
.semp-post-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.semp-post-type-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #ffffff;
    overflow: hidden;
    transition: all 0.2s ease;
}

.semp-post-type-enabled {
    border-color: #4f46e5;
    box-shadow: 0 1px 3px 0 rgba(79, 70, 229, 0.2);
}

.semp-post-type-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.semp-post-type-enabled .semp-post-type-header {
    background-color: #eff6ff;
    border-bottom-color: #dbeafe;
}

.semp-post-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    background-color: #e5e7eb;
    color: #6b7280;
}

.semp-post-type-enabled .semp-post-type-icon {
    background-color: #dbeafe;
    color: #4f46e5;
}

.semp-post-type-label {
    font-weight: 600;
    color: #374151;
}

.semp-post-type-details {
    padding: 1rem;
    flex-grow: 1;
}

.semp-post-type-details p {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.semp-post-type-details p:last-child {
    margin-bottom: 0;
}

.semp-post-type-toggle {
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
}

/* Toggle switch */
.semp-switch {
    position: relative;
    display: inline-block;
    width: 3rem;
    height: 1.5rem;
}

.semp-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.semp-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 1.5rem;
}

.semp-slider:before {
    position: absolute;
    content: "";
    height: 1.125rem;
    width: 1.125rem;
    left: 0.1875rem;
    bottom: 0.1875rem;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.semp-switch input:checked + .semp-slider {
    background-color: #4f46e5;
}

.semp-switch input:checked + .semp-slider:before {
    transform: translateX(1.5rem);
}

/* Advanced tab */
.semp-advanced-info {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
}

.semp-advanced-info h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.semp-advanced-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.semp-advanced-info li {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.semp-advanced-info li:last-child {
    margin-bottom: 0;
}

/* Submit button styling */
.semp-settings-wrap .submit .button-primary {
    background-color: #4f46e5;
    border-color: #4338ca;
    color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 0.5rem 1rem;
    height: auto;
    font-size: 0.875rem;
    line-height: 1.25;
    text-shadow: none;
}

.semp-settings-wrap .submit .button-primary:hover {
    background-color: #4338ca;
    border-color: #3730a3;
}

/* Responsive adjustments */
@media (max-width: 782px) {
    .semp-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .semp-active-integration,
    .semp-no-integration {
        margin-top: 1rem;
        align-self: stretch;
    }
    
    .semp-post-types-grid {
        grid-template-columns: 1fr;
    }
}