/* ADA Wave Scanner Styles */

/* Container */
.ada-wave-scanner-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Form */
.ada-wave-scanner-form {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.ada-wave-scanner-form .form-group {
    margin-bottom: 15px;
}

.ada-wave-scanner-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.ada-wave-scanner-form input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.ada-wave-scanner-form input[type="url"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.ada-wave-scanner-form button {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ada-wave-scanner-form button:hover {
    background-color: #005f8b;
}

/* Loader */
.ada-wave-scanner-loader {
    text-align: center;
    padding: 30px;
}

.ada-wave-scanner-loader .spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ada-wave-scanner-loader p {
    font-size: 16px;
    color: #fff;
}

/* Results */
.ada-wave-scanner-results {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.ada-wave-results-summary {
    padding: 0;
}

.ada-wave-summary {
    background-color: #f8f8f8;
    padding: 20px;
    border-bottom: 1px solid #eeeeee;
}

.ada-wave-summary h2 {
    margin-top: 0;
    color: #333;
    font-size: 22px;
    margin-bottom: 15px;
}

.ada-wave-summary p {
    margin: 8px 0;
    font-size: 15px;
    color: #555;
}

.ada-wave-summary a {
    color: #0073aa;
    text-decoration: none;
}

.ada-wave-summary a:hover {
    text-decoration: underline;
}

.ada-wave-categories {
    padding: 0;
}

.ada-wave-category {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.ada-wave-category:last-child {
    border-bottom: none;
}

.ada-wave-category h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.ada-wave-category ul {
    margin: 0;
    padding: 0 0 0 20px;
}

.ada-wave-category li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Categories */
.ada-wave-error {
    background-color: #FFF8F8;
}

.ada-wave-error h3 {
    color: #d63638;
}

.ada-wave-contrast {
    background-color: rgba(255, 165, 0, 0.03);
}

.ada-wave-contrast h3 {
    color: #b75c00;
}

.ada-wave-alert {
    background-color: rgba(255, 193, 7, 0.03);
}

.ada-wave-alert h3 {
    color: #975e00;
}

/* Positive features */
.ada-wave-positive {
    background-color: rgba(40, 167, 69, 0.03);
    /*border-left: 4px solid #28a745;*/
}

.ada-wave-positive h3 {
    color: #28a745;
}

/* Error message */
.ada-wave-scanner-error {
    background-color: #fbeaea;
    color: #d63638;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #d63638;
}

/* hCaptcha container */
.ada-wave-scanner-form .h-captcha {
    margin: 15px 0;
}

/* CTA Button */
.ada-wave-cta {
    padding: 30px 20px;
    text-align: center;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.ada-wave-cta-button,
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white !important;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none !important;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.ada-wave-cta-button::before,
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.ada-wave-cta-button:hover,
.cta-button:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea87a 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.ada-wave-cta-button:hover::before,
.cta-button:hover::before {
    left: 100%;
}

.ada-wave-cta-button:active,
.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.ada-wave-cta-button:focus,
.cta-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.25);
}

/* Email field styling */
.ada-wave-scanner-form input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.ada-wave-scanner-form input[type="email"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.ada-wave-scanner-form input[type="email"]:invalid {
    border-color: #dc3545;
}

.ada-wave-scanner-form input[type="email"]:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 1px #dc3545;
}

/* Admin Interface Styling */
.error-badge {
    background: #dc3232;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 5px;
}

.contrast-badge {
    background: #ff8c00;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 5px;
}

.alert-badge {
    background: #ffb900;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-right: 5px;
}

.scan-results-details {
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid #0073aa;
    margin: 10px 0;
}

.scan-results-details h4 {
    margin-top: 0;
    color: #23282d;
    font-size: 16px;
}

.scan-results-details h5 {
    color: #23282d;
    font-size: 14px;
    margin: 10px 0 5px 0;
}

.result-category {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
}

.error-category {
    background: rgba(220, 50, 50, 0.1);
    border-left: 3px solid #dc3232;
}

.contrast-category {
    background: rgba(255, 140, 0, 0.1);
    border-left: 3px solid #ff8c00;
}

.alert-category {
    background: rgba(255, 185, 0, 0.1);
    border-left: 3px solid #ffb900;
}

.result-category ul {
    margin: 5px 0;
    padding-left: 20px;
}

.result-category li {
    margin-bottom: 3px;
    font-size: 13px;
}

.button-link {
    background: none;
    border: none;
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}

.button-link:hover {
    color: #005a87;
}

.button-small {
    font-size: 11px;
    padding: 3px 8px;
    margin-right: 5px;
}

.submission-details td {
    border-top: none !important;
}

#ada-wave-submissions-list .wp-list-table td {
    vertical-align: top;
    padding: 8px;
}

.email-stats {
    background: #f0f6fc;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #2271b1;
    padding: 12px;
    margin: 15px 0;
}

.email-stats strong {
    color: #1d2327;
}

/* Credits Display */
.credits-display {
    font-size: 18px !important;
    font-weight: bold !important;
    padding: 5px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    display: inline-block;
    margin-right: 10px;
}

.credits-high {
    color: #28a745 !important;
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.credits-medium {
    color: #ffc107 !important;
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.credits-low {
    color: #dc3545 !important;
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

/* Admin form styling improvements */
.form-table .credits-display + .description {
    margin-top: 10px;
}

/* Export button styling */
.export-csv-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.export-csv-button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* Settings page improvements */
.ada-wave-settings .form-table th {
    font-weight: 600;
    color: #23282d;
}

.ada-wave-settings .regular-text:focus,
.ada-wave-settings .small-text:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

/* Accessibility Score Styling */
.ada-wave-score {
    background-color: #F8F8F8;
    border-bottom: 1px solid #eeeeee;
    /*border-radius: 8px;*/
    padding: 0 20px 20px 20px;
    /*margin: 20px 0;*/
    text-align: center;
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);*/
}

.score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.score-number {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
    background: linear-gradient(45deg, #0073aa, #005a87);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
}

.score-breakdown {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.score-breakdown strong {
    color: #333;
}

.score-tier {
    font-size: 18px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Score tier colors */
.score-tier-excellent {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.score-tier-good {
    background: linear-gradient(45deg, #17a2b8, #28a745);
    color: white;
}

.score-tier-fair {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
    color: #212529;
}

.score-tier-poor {
    background: linear-gradient(45deg, #fd7e14, #dc3545);
    color: white;
}

.score-tier-critical {
    background: linear-gradient(45deg, #dc3545, #721c24);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive design */
/* Standalone Results Page Body */
body.ada-wave-results-page {
    margin: 0;
    padding: 0;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    background: url('https://werankhigher.com/wp-content/uploads/2025/02/Rectangle-707.png') no-repeat center center/cover;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Public Results Page Styles */
.ada-wave-public-result {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ada-wave-public-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100%;
}

.ada-wave-public-container h1 {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 30px;
    margin: 0;
    font-size: 32px;
    text-align: center;
}

.scan-meta {
    background-color: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.scan-meta p {
    margin: 8px 0;
    font-size: 15px;
    color: #495057;
}

.scan-meta strong {
    color: #212529;
    font-weight: 600;
}

.scan-meta a {
    color: #0073aa;
    text-decoration: none;
}

.scan-meta a:hover {
    text-decoration: underline;
}

.scan-error {
    padding: 40px 30px;
    text-align: center;
}

.scan-error p {
    color: #dc3545;
    font-size: 18px;
}

/* Score circle styles for public page */
.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 30px auto 20px;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.score-circle::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, #0073aa, #00a0d2);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.score-circle.excellent {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.score-circle.excellent::before {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.score-circle.good {
    background: linear-gradient(135deg, #17a2b8 0%, #28a745 100%);
}

.score-circle.good::before {
    background: linear-gradient(45deg, #17a2b8, #28a745);
}

.score-circle.fair {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.score-circle.fair::before {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
}

.score-circle.poor {
    background: linear-gradient(135deg, #fd7e14 0%, #dc3545 100%);
}

.score-circle.poor::before {
    background: linear-gradient(45deg, #fd7e14, #dc3545);
}

.score-circle.critical {
    background: linear-gradient(135deg, #dc3545 0%, #721c24 100%);
}

.score-circle.critical::before {
    background: linear-gradient(45deg, #dc3545, #721c24);
}

.score-value {
    font-size: 64px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.score-max {
    font-size: 14px;
    font-weight: 500;
    color: white;
    line-height: 1;
    text-transform: uppercase;
}

.score-label {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 15px;
}

.score-info {
    text-align: center;
    padding: 0 30px 30px;
}

.score-info h3 {
    color: #212529;
    font-size: 24px;
    margin: 0 0 10px 0;
}

.score-info p {
    color: #212529;
    font-size: 16px;
    margin: 0;
}

.score-info .detailed-score-info {
    text-align: left;
    background-color: #f8f9fa;
    padding: 20px;
    margin-top: 30px;
    border-radius: 4px;
}

.score-info .detailed-score-info p:not(:last-of-type),
.score-info .detailed-score-info ol {
    padding-bottom: 10px;
}

.score-info .detailed-score-info a {
    color: #0073aa;
}

/* Results grid for public page */
.results-grid {
    padding: 20px 30px;
    display: grid;
    gap: 20px;
}

.feature-category {
    background-color: rgba(40, 167, 69, 0.05);
    border-left: 4px solid #28a745;
}

.feature-category h3 {
    color: #28a745;
}

/* Responsive adjustments for public page */
@media screen and (max-width: 768px) {
    .ada-wave-public-container h1 {
        font-size: 24px;
        padding: 20px;
    }

    .scan-meta {
        padding: 15px 20px;
    }

    .score-circle {
        width: 150px;
        height: 150px;
        margin: 20px auto 15px;
    }

    .score-value {
        font-size: 48px;
    }

    .score-max {
        font-size: 12px;
    }

    .score-label {
        font-size: 14px;
        margin-top: 7px;
    }

    .score-info {
        padding: 0 20px 20px;
    }

    .score-info h3 {
        font-size: 20px;
    }

    .score-info p {
        font-size: 14px;
    }

    .results-grid {
        padding: 15px 20px;
    }

    .ada-wave-public-result {
        margin: 20px auto;
    }
}

@media screen and (max-width: 600px) {
    .ada-wave-scanner-container {
        padding: 10px;
    }

    .ada-wave-scanner-form {
        padding: 15px;
    }

    .ada-wave-summary h2 {
        font-size: 18px;
    }

    .ada-wave-category {
        padding: 15px;
    }

    .ada-wave-cta {
        padding: 20px 15px;
    }

    .ada-wave-cta-button {
        font-size: 16px;
        padding: 12px 25px;
    }

    .wp-list-table th,
    .wp-list-table td {
        font-size: 12px;
        padding: 6px 4px;
    }

    .button-small {
        font-size: 10px;
        padding: 2px 6px;
    }

    .score-number {
        font-size: 36px;
    }

    .score-tier {
        font-size: 14px;
        padding: 6px 16px;
        letter-spacing: 0.5px;
    }
}
