/* STL Blocks - Clean and Simple Layout */

/* General block wrapper */
.stl-block {
    margin: 1.2em 0;
    font-family: inherit;
    color: #212529;
    background: none;
    border: none;
    padding: 0;
}

/* Credits/Courtesy blocks */
.stl-credit {
    font-size: 1em;
    color: #212529;
    margin: 0.5em 0;
    padding: 0;
    background: none;
    border: none;
    display: block;
}

.stl-credit .source-label {
    font-weight: 400;
    color: #212529;
    margin-right: 0.3em;
}

.stl-credit .source-content,
.stl-credit .source-link {
    color: #212529;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 3px;
    padding: 0 2px;
}

.stl-credit .source-link:hover,
.stl-credit .source-link:focus,
.stl-credit .source-content:active {
    background: #e3ecfa;
    color: #032d5a;
    outline: none;
}

/* Also Read block */
.stl-also-read {
    margin: 1.5em 0;
    padding: 0;
    background: none;
    border: none;
    display: block;
}

.stl-also-read .read_head {
    font-size: 0.8em;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.2em;
    display: inline;
    margin-right: 0.4em;
}

.stl-also-read .also-read-link {
    color: #064588;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-radius: 3px;
    padding: 0 2px;
}

.stl-also-read .also-read-link:hover,
.stl-also-read .also-read-link:focus,
.stl-also-read .also-read-link:active {
    background: #e3ecfa;
    color: #032d5a;
    outline: none;
}

/* Remove clearfix if not needed */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* URL Validation Styles */
.stl-url-input-wrapper {
    margin-bottom: 1em;
}

.stl-url-validation {
    display: flex;
    align-items: center;
    margin-top: 0.3em;
    font-size: 0.9em;
}

.stl-validation-icon {
    margin-right: 0.5em;
    font-weight: bold;
}

.stl-validation-icon.valid {
    color: #4caf50;
}

.stl-validation-icon.invalid {
    color: #f44336;
}

.stl-validation-message {
    color: #666;
}

.stl-fetch-button {
    margin-top: 0.5em;
}

/* Update/Correction Block */
.stl-update-correction {
    margin: 1.5em 0;
    padding: 1em 1em 1em 1.2em;
    border-left: 4px solid;
    background: #f8f9fa;
    border-radius: 0 4px 4px 0;
}

.stl-update-correction.update {
    border-left-color: #2196f3;
    background: #e3f2fd;
}

.stl-update-correction.correction {
    border-left-color: #ff9800;
    background: #fff3e0;
}

.stl-update-correction .update-label {
    font-weight: 700;
    font-size: 0.65em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5em;
}

.stl-update-correction.update .update-label {
    color: #1565c0;
}

.stl-update-correction.correction .update-label {
    color: #e65100;
}

.stl-update-correction .update-content {
    color: #212529;
    line-height: 1.6;
    margin-bottom: 0.5em;
    font-size: 0.75em;
}

.stl-update-correction .update-timestamp {
    font-size: 0.55em;
    color: #666;
    font-style: italic;
    margin-top: 0.5em;
}

/* Editor-specific styles */
.stl-block-editor {
    padding: 1em;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
}

.stl-block-preview {
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid #ddd;
}