/**
 * Frontend CSS für Accessibility Checker
 */

/* Shortcode Styling */
.accessibility-checker-shortcode {
    max-width: 600px;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
}

.accessibility-checker-shortcode[data-style="widget"] {
    max-width: 100%;
    margin: 10px 0;
    padding: 15px;
    background: #fff;
}

/* Formular */
.accessibility-test-form {
    margin-bottom: 15px;
}

.url-input-group {
    margin-bottom: 10px;
}

.accessibility-test-form input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.accessibility-test-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.accessibility-test-button:hover {
    background: #005a87;
}

/* Ergebnisse */
.accessibility-test-results {
    margin-top: 20px;
}

.results-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.results-content {
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Ergebnis-Header */
.results-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.results-header h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.results-header a {
    color: #0073aa;
    text-decoration: none;
}

.results-header a:hover {
    text-decoration: underline;
}

/* Score */
.score {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.score-excellent {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.score-good {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.score-needs.improvement,
.score-needs {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.score-critical {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Probleme */
.issues-section {
    margin: 20px 0;
}

.issues-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #333;
}

.issues-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.issue {
    padding: 8px 12px;
    margin: 5px 0;
    border-left: 4px solid;
    background: #f8f9fa;
}

.issue-high {
    border-left-color: #dc3545;
    background: #f8d7da;
}

.issue-medium {
    border-left-color: #ffc107;
    background: #fff3cd;
}

.issue-low {
    border-left-color: #17a2b8;
    background: #d1ecf1;
}

.issue-severity {
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}

.issue-message {
    margin-left: 5px;
}

.issue-wcag {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Keine Probleme */
.no-issues {
    text-align: center;
    padding: 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

/* Footer */
.results-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.timestamp {
    font-size: 12px;
    color: #666;
    margin: 0 0 10px 0;
}

.test-again-btn,
.retry-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.test-again-btn:hover,
.retry-btn:hover {
    background: #545b62;
}

/* Fehler */
.accessibility-error {
    text-align: center;
    padding: 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

.accessibility-error h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 600px) {
    .accessibility-checker-shortcode {
        padding: 15px;
        margin: 15px 0;
    }
    
    .accessibility-test-form input[type="url"] {
        margin-bottom: 10px;
    }
    
    .accessibility-test-button {
        width: 100%;
        padding: 12px;
    }
    
    .results-header h3 {
        font-size: 14px;
        word-break: break-all;
    }
}

