/**
 * Certificate Verification Styles
 * Mobile-first responsive design
 */

/* Base - Mobile First */
.aat-verify-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.aat-verify-header {
    text-align: center;
    margin-bottom: 24px;
}

.aat-verify-logo {
    height: 50px;
    width: auto;
    margin-bottom: 16px;
}

.aat-verify-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e3a5f;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.aat-verify-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* Form Container */
.aat-verify-form-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.aat-verify-form {
    margin: 0;
}

/* Input Group - Stacked on Mobile */
.aat-verify-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aat-verify-input {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.aat-verify-input:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.aat-verify-input::placeholder {
    color: #94a3b8;
    text-transform: uppercase;
    font-size: 14px;
}

/* Button - Full Width on Mobile */
.aat-verify-button {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.aat-verify-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.aat-verify-button:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #162d4a 0%, #1e3a5f 100%);
}

.aat-spinner {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

/* Result Styles */
.aat-verify-result {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.aat-verify-result-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.aat-verify-result-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(239, 68, 68, 0.1) 100%);
    border: 2px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
    text-align: center;
    font-size: 15px;
    padding: 24px 20px;
}

/* Success Header */
.aat-verify-success-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.aat-verify-success-icon {
    width: 24px;
    height: 24px;
    color: #10b981;
    flex-shrink: 0;
}

/* Details - Mobile Optimized */
.aat-verify-details {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.aat-verify-detail-row {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
    gap: 4px;
}

.aat-verify-detail-row:last-child {
    border-bottom: none;
}

.aat-verify-detail-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aat-verify-detail-value {
    font-size: 16px;
    color: #0f172a;
    font-weight: 600;
    word-break: break-word;
}

/* Status Badges */
.aat-status-valid {
    display: inline-block;
    color: #059669;
    background: rgba(16, 185, 129, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.aat-status-revoked {
    display: inline-block;
    color: #dc2626;
    background: rgba(239, 68, 68, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Footer Note */
.aat-verify-footer-note {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(16, 185, 129, 0.2);
    text-align: center;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.aat-verify-footer {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    padding: 16px 0;
}

.aat-verify-footer strong {
    color: #1e3a5f;
}

/* Tablet and up */
@media (min-width: 480px) {
    .aat-verify-container {
        padding: 30px 20px;
    }

    .aat-verify-header {
        margin-bottom: 32px;
    }

    .aat-verify-logo {
        height: 60px;
        margin-bottom: 20px;
    }

    .aat-verify-title {
        font-size: 26px;
    }

    .aat-verify-subtitle {
        font-size: 15px;
    }

    .aat-verify-form-container {
        padding: 28px;
    }

    .aat-verify-input {
        font-size: 16px;
        padding: 14px 18px;
    }

    .aat-verify-input::placeholder {
        font-size: 16px;
    }

    .aat-verify-detail-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    .aat-verify-detail-value {
        text-align: right;
    }
}

/* Desktop */
@media (min-width: 600px) {
    .aat-verify-container {
        padding: 40px;
        margin: 40px auto;
    }

    .aat-verify-header {
        margin-bottom: 40px;
    }

    .aat-verify-title {
        font-size: 28px;
    }

    .aat-verify-subtitle {
        font-size: 16px;
    }

    .aat-verify-form-container {
        padding: 30px;
        margin-bottom: 30px;
    }

    .aat-verify-input-group {
        flex-direction: row;
        gap: 12px;
    }

    .aat-verify-input {
        flex: 1;
        text-align: left;
    }

    .aat-verify-button {
        width: auto;
        min-width: 140px;
    }

    .aat-verify-result {
        padding: 24px;
        margin-bottom: 30px;
    }

    .aat-verify-success-header {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .aat-verify-success-icon {
        width: 28px;
        height: 28px;
    }
}

/* Safe area for notched devices */
@supports (padding: max(0px)) {
    .aat-verify-container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }
}
