/**
 * Cute Broken Link Highlighter Styles
 * Version: 1.0.0
 */

/* Broken link highlighting */
.cuteblh-broken-link {
    background-color: #ffebee !important;
    border: 2px solid #f44336 !important;
    box-shadow: 0 0 5px rgba(244, 67, 54, 0.3) !important;
    position: relative;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    display: inline;
    color: #d32f2f !important;
    font-weight: bold !important;
}

/* Apply to links inside TinyMCE iframe */
iframe body a.cuteblh-broken-link {
    background-color: #ffebee !important;
    border: 2px solid #f44336 !important;
    box-shadow: 0 0 5px rgba(244, 67, 54, 0.3) !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    color: #d32f2f !important;
    font-weight: bold !important;
}

/* Apply to Gutenberg editor links */
.editor-styles-wrapper a.cuteblh-broken-link,
.block-editor-writing-flow a.cuteblh-broken-link,
.block-editor-block-list__layout a.cuteblh-broken-link,
.block-editor-rich-text__editable a.cuteblh-broken-link {
    background-color: #ffebee !important;
    border: 2px solid #f44336 !important;
    box-shadow: 0 0 5px rgba(244, 67, 54, 0.3) !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    color: #d32f2f !important;
    font-weight: bold !important;
}

/* Results display */
#cuteblh-results {
    margin-top: 10px;
}

.cuteblh-result-item {
    margin-bottom: 8px;
    padding: 8px;
    background: #fff2f2;
    border-left: 4px solid #f44336;
    font-size: 12px;
    border-radius: 3px;
}

.cuteblh-result-url {
    font-weight: bold;
    color: #f44336;
    word-break: break-all;
}

/* Gutenberg panel */
#cuteblh-gutenberg-panel {
    padding: 16px;
}

.cuteblh-gutenberg-button {
    width: 100%;
    margin-bottom: 12px;
}

/* Status messages */
.cuteblh-status-success {
    color: #4caf50;
    font-weight: bold;
}

.cuteblh-status-error {
    color: #f44336;
    font-weight: bold;
}

/* Admin page styles */
.cuteblh-status-clean {
    color: #00a32a;
    font-weight: bold;
}

.cuteblh-status-broken {
    color: #d63638;
    font-weight: bold;
}

.cuteblh-broken-count {
    background: #d63638;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.cuteblh-clean-count {
    background: #00a32a;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}

.cuteblh-post-row.hidden {
    display: none;
}

.cuteblh-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.cuteblh-summary-card {
    padding: 20px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    text-align: center;
}

.cuteblh-summary-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.cuteblh-summary-card .cuteblh-card-value {
    font-size: 24px;
    font-weight: bold;
}
