/* Admin styles for Easy AI Blog Generator */

/* Common Elements */
.easyaibloggen-feature-wrapper {
    margin-bottom: 20px;
}

.easyaibloggen-feature-instructions {
    background-color: #f8f9fa;
    border-left: 4px solid #4CAF50;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 4px 4px 0;
}

.easyaibloggen-feature-instructions.premium-feature {
    border-left-color: #FFC107;
}

.easyaibloggen-feature-instructions strong {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.easyaibloggen-feature-instructions-text {
    display: block;
    margin-bottom: 0;
    line-height: 1.5;
}

.easyaibloggen-description {
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

/* Premium Features */
.premium-badge {
    display: inline-block;
    background-color: #FFC107;
    color: #000;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    text-align: center;
    line-height: 16px;
    font-weight: bold;
    margin-right: 5px;
}

.premium-feature {
    border-left-color: #FFC107;
}

/* Keyword Analysis */
.easyaibloggen-keyword-density {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.easyaibloggen-keywords-container {
    margin-top: 10px;
}

.easyaibloggen-keywords-container textarea {
    width: 100%;
    min-height: 200px;
}

.easyaibloggen-keywords-loader {
    margin-top: 10px;
}

.easyaibloggen-density-results-main,
.easyaibloggen-density-loader-main {
    margin-top: 10px;
}

.easyaibloggen-analysis-result {
    margin-top: 15px;
    padding: 20px;
    background-color: #fff;
    border-left: 4px solid #00a0d2;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.easyaibloggen-analysis-summary {
    margin-bottom: 20px;
}

.easyaibloggen-analysis-summary h4,
.easyaibloggen-analysis-recommendations h4 {
    margin: 0 0 15px;
    color: #23282d;
    font-size: 14px;
    font-weight: 600;
}

.easyaibloggen-analysis-summary ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.easyaibloggen-analysis-summary li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.easyaibloggen-analysis-summary .optimal {
    color: #46b450;
    font-weight: 600;
}

.easyaibloggen-analysis-summary .needs-improvement {
    color: #dc3232;
    font-weight: 600;
}

.easyaibloggen-analysis-recommendations {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.easyaibloggen-analysis-recommendations ul {
    margin: 0;
    padding-left: 20px;
}

.easyaibloggen-analysis-recommendations li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.easyaibloggen-premium-instruction {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-left: 4px solid #FFC107;
    border-radius: 0 4px 4px 0;
}

/* Social Media Promotion */
.easyaibloggen-social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.easyaibloggen-social-button {
    flex: 1;
    min-width: 100px;
    text-align: center;
    margin: 0 !important;
}

.easyaibloggen-social-button .dashicons {
    margin-top: 3px;
    margin-right: 2px;
}

.easyaibloggen-social-button.twitter {
    border-color: #1DA1F2;
}

.easyaibloggen-social-button.facebook {
    border-color: #4267B2;
}

.easyaibloggen-social-button.linkedin {
    border-color: #0077B5;
}

.easyaibloggen-social-button.instagram {
    border-color: #C13584;
}

.easyaibloggen-social-button.all {
    flex-basis: 100%;
    margin-top: 5px !important;
}

.easyaibloggen-social-card {
    margin: 15px 0;
    padding: 12px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.easyaibloggen-social-textarea {
    width: 100%;
    min-height: 120px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 13px;
    resize: vertical;
}

.easyaibloggen-char-count {
    font-size: 0.9em;
    margin-top: 5px;
    color: #666;
}

.easyaibloggen-copy-social {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
}

.easyaibloggen-copy-social .dashicons {
    margin-right: 5px;
}

/* Format Conversion */
#easyaibloggen-format-style {
    width: 100%;
    margin-bottom: 10px;
}

.easyaibloggen-convert-format-btn {
    margin-bottom: 15px;
}

#easyaibloggen-apply-format {
    margin-top: 15px;
    background-color: #46b450;
    color: white;
    border-color: #46b450;
}

#easyaibloggen-apply-format:hover {
    background-color: #389a41;
    border-color: #389a41;
}

/* Utility Classes */
.hidden {
    display: none;
}

/* Preview Elements */
#easyaibloggen-update-preview {
    margin-top: 10px;
    padding: 10px;
    border: 1px dashed #999;
    max-height: 400px;
    overflow-y: auto;
}

.easyaibloggen-analysis-result .analysis-section,
.easyaibloggen-analysis-result .recommendations-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 4px;
}

.easyaibloggen-analysis-result .analysis-section h4,
.easyaibloggen-analysis-result .recommendations-section h4 {
    margin: 0 0 15px;
    color: #23282d;
    font-size: 14px;
    font-weight: 600;
}

.easyaibloggen-analysis-result .analysis-section p {
    margin: 0 0 10px;
    line-height: 1.5;
}

.easyaibloggen-analysis-result .recommendations-section ul {
    margin: 0;
    padding-left: 20px;
}

.easyaibloggen-analysis-result .recommendations-section li {
    margin-bottom: 10px;
    line-height: 1.5;
    list-style-type: disc;
    color: #444;
}

.easyaibloggen-analysis-result .recommendations-section li:last-child {
    margin-bottom: 0;
}

/* Improved Keyword Analysis Results Formatting */
.suggestions-section {
    margin-top: 20px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.summary-assessment {
    padding: 15px;
    border-bottom: 1px solid #e5e5e5;
    background-color: #f9f9f9;
}

.summary-assessment h3 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.summary-assessment p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.sentence-suggestions {
    margin: 15px 0;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
}

.sentence-suggestion {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.sentence-suggestion:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.original-sentence {
    padding: 10px;
    background-color: #f5f5f5;
    border-left: 3px solid #ddd;
    margin-bottom: 10px;
}

.revised-sentence {
    padding: 10px;
    background-color: #e7f7e3;
    border-left: 3px solid #46b450;
}

/* Keyword Metrics Table */
.keyword-metrics-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 15px 0;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    overflow: hidden;
}

.keyword-metrics-table th,
.keyword-metrics-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.keyword-metrics-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
}

.keyword-metrics-table tr:last-child td {
    border-bottom: none;
}

.keyword-metrics-table .metric-value {
    font-weight: 600;
}

.keyword-metrics-table .optimal {
    color: #46b450;
}

.keyword-metrics-table .needs-improvement {
    color: #dc3232;
}

/* Hide ALL Apply Suggestions buttons */
#easyaibloggen-main-apply-suggestions,
.apply-suggestions,
button[id$="apply-suggestions"],
input[value="Apply Suggestions"],
button:contains("Apply Suggestions"),
input[type="submit"][value="Apply Suggestions"],
.button:contains("Apply Suggestions"),
#apply-suggestions {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* jQuery-like CSS selector doesn't work, so add direct styling for common button patterns */
.suggestions-section .button,
.button.apply-suggestions,
input[type="button"].apply-suggestions,
input[type="submit"].apply-suggestions {
    display: none !important;
}

/* Image Generation Section */
.image-generation-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.image-generation-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    color: #23282d;
}

.image-generation-controls {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.image-style-help {
    margin-top: 5px;
    font-style: italic;
    color: #666;
    font-size: 13px;
}

/* Keep only the spin animation, remove the unused Engagement Booster styles */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
