/**
 * SEO Dashboard CSS for Easy AI Blog Generator
 *
 * Styles for the SEO dashboard interface including:
 * - Summary panel
 * - Checklist
 * - Keyword variants
 * - Overused sections
 * - Improvement actions
 */

/* Main container */
.easyai-seo-dashboard-wrapper {
    margin: 15px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Summary panel */
.easyai-seo-summary-panel {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.easyai-seo-summary-panel h3 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 600;
}

.easyai-seo-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.easyai-seo-summary-item {
    padding: 10px;
    background: #f9f9f9;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
}

.easyai-overall-score {
    grid-column: 1 / -1;
    background: #f5f5f5;
    padding: 15px;
    border-left: 4px solid #ccc;
}

.easyai-seo-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.easyai-seo-value {
    font-size: 16px;
    font-weight: 600;
}

.easyai-seo-value.optimal {
    color: #46b450;
}

.easyai-seo-value.warning {
    color: #ffb900;
}

.easyai-seo-value.poor {
    color: #dc3232;
}

.easyai-spinner-text {
    margin-left: 10px;
    font-style: italic;
    color: #666;
}

/* Tabs navigation */
.easyai-seo-tabs {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.easyai-seo-tab-nav {
    display: flex;
    border-bottom: 1px solid #ddd;
    background: #f7f7f7;
}

.easyai-tab-button {
    padding: 10px 15px;
    border: none;
    background: transparent;
    border-right: 1px solid #ddd;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.easyai-tab-button:last-child {
    border-right: none;
}

.easyai-tab-button:hover {
    background: #f0f0f0;
}

.easyai-tab-button.active {
    background: #fff;
    border-bottom: 2px solid #0073aa;
    font-weight: 600;
}

.easyai-tab-content {
    padding: 20px;
    display: none;
}

.easyai-tab-content.active {
    display: block;
}

.easyai-tab-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 600;
}

.easyai-placeholder-text {
    color: #666;
    font-style: italic;
}

/* SEO Checklist */
.easyai-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
}

.easyai-checklist-item {
    padding: 12px;
    border-radius: 3px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.easyai-checklist-item.checked {
    background: #f0f7e6;
}

.easyai-checklist-item.unchecked {
    background: #fef7f1;
}

.easyai-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.easyai-checkbox.checked::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 5px;
    width: 5px;
    height: 10px;
    border: solid #46b450;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.easyai-checkbox.unchecked {
    border-color: #ffb900;
}

.easyai-checklist-text {
    font-size: 13px;
}

/* Keyword Variants */
.easyai-keyword-table {
    overflow-x: auto;
}

.easyai-keyword-table table {
    width: 100%;
    border-collapse: collapse;
}

.easyai-keyword-table th {
    text-align: left;
    padding: 10px;
    background: #f7f7f7;
    font-weight: 600;
}

.easyai-keyword-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.easyai-keyword-table .count-cell {
    text-align: center;
    font-weight: 600;
}

/* Overused Sections */
.easyai-overused-sections {
    display: grid;
    gap: 20px;
}

.easyai-overused-section {
    background: #fff4f4;
    border: 1px solid #ffdddd;
    border-radius: 4px;
    overflow: hidden;
}

.easyai-overused-section h4 {
    margin: 0;
    padding: 12px 15px;
    background: #ffe9e9;
    border-bottom: 1px solid #ffdddd;
    font-size: 14px;
}

.easyai-section-content {
    padding: 15px;
}

.easyai-paragraph-excerpt {
    font-style: italic;
    margin-top: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
}

.easyai-section-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.easyai-metric {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
}

.easyai-metric-label {
    font-size: 12px;
    color: #666;
    display: block;
    margin-bottom: 3px;
}

.easyai-metric-value {
    font-size: 14px;
    font-weight: 600;
}

.easyai-suggestion {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 3px;
    border-left: 3px solid #dc3232;
}

/* Improvement Actions */
.easyai-action-list {
    display: grid;
    gap: 15px;
}

.easyai-action-item {
    background: #f9f9f9;
    border-radius: 4px;
    overflow: hidden;
}

.easyai-action-header {
    padding: 8px 15px;
    background: #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.easyai-action-priority {
    font-weight: 600;
}

.easyai-action-impact {
    color: #0073aa;
    font-weight: 600;
}

.easyai-action-content {
    padding: 15px;
}

.easyai-action-title {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.easyai-action-description {
    margin: 0;
    color: #666;
    font-size: 13px;
}

/* Priority colors */
.easyai-priority-high {
    border-left: 4px solid #dc3232;
}

.easyai-priority-high .easyai-action-header {
    background: #ffe9e9;
}

.easyai-priority-medium {
    border-left: 4px solid #ffb900;
}

.easyai-priority-medium .easyai-action-header {
    background: #fff8e5;
}

.easyai-priority-low {
    border-left: 4px solid #00a0d2;
}

.easyai-priority-low .easyai-action-header {
    background: #e5f5fa;
}

/* Responsive adjustments */
@media (max-width: 782px) {
    .easyai-seo-summary-grid,
    .easyai-checklist,
    .easyai-section-metrics {
        grid-template-columns: 1fr;
    }
    
    .easyai-seo-tab-nav {
        flex-wrap: wrap;
    }
    
    .easyai-tab-button {
        flex: 1 1 auto;
        text-align: center;
        padding: 8px 5px;
        border-bottom: 1px solid #ddd;
    }
} 