/* Club Lotus MOT History - public styles */

.cl-mot-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cl-mot-container h2 {
    margin: 0 0 10px 0;
    color: #224D24;
    border-bottom: 3px solid #ECD544;
    padding-bottom: 8px;
}

.cl-mot-intro {
    color: #555;
    margin-bottom: 20px;
}

.cl-mot-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.cl-mot-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.cl-mot-input-group input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #FFDF00;
    color: #000;
    font-family: "UKNumberPlate", Arial, sans-serif;
}

.cl-mot-input-group input[type="text"]:focus {
    outline: none;
    border-color: #224D24;
}

.cl-mot-input-group .cl-mot-submit {
    padding: 12px 24px;
    background: #224D24;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
}

.cl-mot-input-group .cl-mot-submit:hover {
    background: #005A2B;
}

.cl-mot-notice-small {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.cl-mot-notice {
    padding: 20px;
    background: #FFF9E6;
    border-left: 4px solid #ECD544;
    margin: 20px 0;
}

.cl-mot-loading {
    text-align: center;
    padding: 30px;
    color: #666;
}

.cl-mot-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid #f0f0f0;
    border-top-color: #224D24;
    border-radius: 50%;
    animation: cl-mot-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes cl-mot-spin {
    to { transform: rotate(360deg); }
}

.cl-mot-result,
.cl-mot-result-dvla {
    margin-top: 25px;
}

.cl-mot-vehicle-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.cl-mot-vehicle-summary h3 {
    margin: 0 0 15px 0;
    color: #224D24;
}

.cl-mot-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.cl-mot-summary-item {
    background: #fff;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.cl-mot-summary-item .label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cl-mot-summary-item .value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.cl-mot-stats {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.cl-mot-stat {
    flex: 1;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.cl-mot-stat .n {
    display: block;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.cl-mot-stat .l {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.cl-mot-stat.pass { background: #d4edda; color: #155724; }
.cl-mot-stat.fail { background: #f8d7da; color: #721c24; }
.cl-mot-stat.total { background: #e9ecef; color: #495057; }

.cl-mot-tests-list {
    margin-top: 25px;
}

.cl-mot-tests-list h3 {
    margin: 0 0 15px 0;
    color: #224D24;
}

.cl-mot-test {
    border: 1px solid #e0e0e0;
    border-left: 5px solid #ccc;
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}

.cl-mot-test.passed { border-left-color: #28a745; }
.cl-mot-test.failed { border-left-color: #dc3545; }

.cl-mot-test-header {
    padding: 15px;
    background: #fafafa;
    cursor: pointer;
    display: grid;
    grid-template-columns: 130px 110px 1fr 1fr auto;
    gap: 15px;
    align-items: center;
}

.cl-mot-test-header:hover {
    background: #f0f0f0;
}

.cl-mot-test-date {
    font-weight: 600;
    color: #333;
}

.cl-mot-test-result {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 3px;
    text-align: center;
}

.cl-mot-test-result.passed { background: #d4edda; color: #155724; }
.cl-mot-test-result.failed { background: #f8d7da; color: #721c24; }
.cl-mot-test-result.other  { background: #e9ecef; color: #495057; }

.cl-mot-test-mileage,
.cl-mot-test-expiry {
    font-size: 14px;
    color: #555;
}

.cl-mot-test-toggle {
    color: #888;
    font-size: 12px;
}

.cl-mot-test-body {
    display: none;
    padding: 15px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.cl-mot-test.expanded .cl-mot-test-body {
    display: block;
}

.cl-mot-defect {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-size: 14px;
}

.cl-mot-defect.dangerous {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.cl-mot-defect.major,
.cl-mot-defect.fail {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.cl-mot-defect.minor {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.cl-mot-defect.advisory {
    background: #e9ecef;
    color: #495057;
    border-left: 4px solid #6c757d;
}

.cl-mot-defect-type {
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 2px;
    margin-right: 8px;
    background: rgba(0,0,0,0.1);
}

.cl-mot-error {
    padding: 15px 20px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
}

.cl-mot-members-banner {
    margin-top: 15px;
    padding: 15px;
    background: #fff9e6;
    border-radius: 6px;
    border: 1px solid #ECD544;
    text-align: center;
}

.cl-mot-members-banner a {
    color: #224D24;
    font-weight: 600;
}

@media (max-width: 600px) {
    .cl-mot-input-group { flex-direction: column; }
    .cl-mot-test-header {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
}
