/* Admin Meta Box Tabs & General Styles for Easy AI SEO */

/* SEO Scorecard Styles */
#easy-ai-seo-scorecard {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    position: relative;
    z-index: 10;
    border: 1px solid #ddd;
}

#easy-ai-seo-scorecard h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #23282d;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 10px;
    font-size: 16px;
}

.scorecard-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
}

.score-meter {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f0f0f0;
    border: 4px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.score-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #4CAF50 0%, 
        #8BC34A 35%, 
        #FFEB3B 60%, 
        #FF9800 75%, 
        #F44336 100%
    );
    clip: rect(0, 50px, 100px, 0);
    transition: all 0.5s ease;
}

/* Add second half circle for progress visualization */
.second-half-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    clip: rect(0, 100px, 100px, 50px);
    background: transparent;
    transform-origin: center right;
    transform: rotate(0deg);
    transition: transform 0.5s ease;
}

.score-value {
    position: relative;
    z-index: 3;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    text-shadow: 0 0 3px rgba(255,255,255,0.8);
}

.scorecard-metrics {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.metric-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 5px;
    transition: background 0.3s ease;
}

.metric-item:hover {
    background: rgba(255,255,255,0.9);
}

.metric-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: background-color 0.3s ease;
}

.metric-icon.incomplete {
    background-color: #ccc;
}

.metric-icon.complete {
    background-color: #4CAF50;
}

.metric-icon.complete::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.metric-icon.partial {
    background-color: #FFC107;
}

.metric-label {
    font-size: 13px;
    color: #555;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.metric-details {
    font-size: 12px;
    color: #707070;
    margin-left: 3px;
    font-style: italic;
}

.metric-details.clickable {
    color: #0073aa;
    cursor: pointer;
    text-decoration: underline;
    font-weight: normal;
}

.metric-details.clickable:hover {
    color: #00a0d2;
}

/* Color coding for different statuses */
.metric-icon.incomplete + .metric-label .metric-details {
    color: #d63638;
}

.metric-icon.partial + .metric-label .metric-details {
    color: #dba617;
}

.metric-icon.complete + .metric-label .metric-details {
    color: #00a32a;
}

.scorecard-tips {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: rgba(0,0,0,0.03);
    border-left: 3px solid #4CAF50;
    border-radius: 0 3px 3px 0;
    font-style: italic;
}

.scorecard-tips p {
    margin: 0;
    color: #555;
    font-size: 13px;
}

/* Tabs container */
#easy-ai-seo-tabs {
    margin-top: 20px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Tabs header list */
#easy-ai-seo-tabs ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    display: flex;
    border-bottom: 2px solid #e0e0e0;
}

#easy-ai-seo-tabs ul li {
    margin-right: 15px;
}

#easy-ai-seo-tabs ul li a {
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    color: #555;
    border: 2px solid transparent;
    border-radius: 5px 5px 0 0;
    transition: background-color 0.3s, border-color 0.3s;
}

#easy-ai-seo-tabs ul li a:hover,
#easy-ai-seo-tabs ul li.ui-tabs-active a {
    background-color: #f7f7f7;
    border-color: #ddd;
    color: #333;
}

/* Tabs content area */
#easy-ai-seo-tabs .tab-content {
    border: 2px solid #ddd;
    border-top: none;
    padding: 20px;
    background: #fff;
    border-radius: 0 5px 5px 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Suggestion container */
.ea-suggestion-container {
    min-height: 80px;
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: auto;
}

/* Plus badge */
.plus-badge {
    background: #ff9800;
    color: #fff;
    padding: 3px 8px;
    font-size: 0.8em;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 6px;
}

/* External Link Suggestions */
.ea-link-suggestions {
    margin-top: 15px;
}

.ea-link-item {
    background: #f7f7f7;
    border-left: 3px solid #0073aa;
    margin-bottom: 15px;
    padding: 12px 15px;
    border-radius: 3px;
}

.ea-link-anchor {
    margin-bottom: 5px;
    font-size: 14px;
}

.ea-link-url {
    margin-bottom: 8px;
}

.ea-link-url a {
    color: #0073aa;
    text-decoration: none;
    word-break: break-all;
}

.ea-link-url a:hover {
    text-decoration: underline;
}

.ea-link-reason {
    font-size: 13px;
    color: #666;
    font-style: italic;
}

/* Voice Search Styling */
.easy-ai-seo-suggestions-list {
    margin: 15px 0;
    padding: 0;
    list-style: none;
}

.easy-ai-seo-suggestion-item {
    background: #f9f9f9;
    border-left: 3px solid #0073aa;
    padding: 10px 15px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.easy-ai-seo-suggestion-item:hover {
    background: #f0f7fb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Enhanced Error Messages */
.notice-error.inline {
    border-left-color: #dc3232;
    background-color: #fbeaea;
    padding: 10px 15px;
}

.notice-info.inline {
    border-left-color: #00a0d2;
    background-color: #e5f5fa;
    padding: 10px 15px;
}

.notice-success.inline {
    border-left-color: #46b450;
    background-color: #ecf7ed;
    padding: 10px 15px;
}

/* Troubleshooting sections */
.notice-error ol, 
.notice-error ul {
    margin-left: 20px;
    padding-left: 0;
}

.notice-error li {
    margin-bottom: 5px;
}

/* Diagnostic Styling */
.diagnostic-section {
    margin-bottom: 20px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
}

.diagnostic-section h5 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 14px;
}

.result-success {
    color: #46b450;
}

.result-error {
    color: #dc3232;
}

.result-warning {
    color: #ffb900;
}

#easy-ai-seo-diagnostic-output ul,
#easy-ai-seo-diagnostic-output ol {
    margin-left: 20px;
}

#easy-ai-seo-diagnostic-output li {
    margin-bottom: 8px;
}

#voice-search-test-results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ccc;
}

/* Suggestions Grid Layout */
.ea-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.ea-suggestion-card {
    background: #f0f9ff;
    border-left: 3px solid #0073aa;
    padding: 15px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.ea-suggestion-card:hover {
    background: #e0f0fa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.ea-suggestion-card a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.ea-suggestion-card a:hover {
    text-decoration: underline;
}

.ea-card-subtitle {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    font-style: italic;
}

/* Status change animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.metric-icon.status-changed {
    animation: pulse 1s ease;
}

.metric-item.active {
    background: rgba(255,255,255,1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Refresh button for SEO scorecard */
#refresh-image-alt-status {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f0f8ff;
    border-color: #0073aa;
    color: #0073aa;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: normal;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#refresh-image-alt-status:hover {
    background-color: #e6f3ff;
    border-color: #0073aa;
    color: #0073aa;
}
